summaryrefslogtreecommitdiff
path: root/upstream-layers/openembedded-core/meta/classes-recipe/kernel-fit-extra-artifacts.bbclass
blob: 385fe9895a3308a9daab922611672b012b8581eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#
# Copyright OpenEmbedded Contributors
#
# SPDX-License-Identifier: MIT
#

# Generate and deploy additional artifacts required for FIT image creation.
# To use this class, add it to the KERNEL_CLASSES variable.

inherit kernel-uboot

kernel_do_deploy:append() {
	# Provide the kernel artifacts to post processing recipes e.g. for creating a FIT image
	uboot_prep_kimage "$deployDir"
	# For x86 a setup.bin needs to be include"d in a fitImage as well
	if [ -e ${KERNEL_OUTPUT_DIR}/setup.bin ]; then
		install -D "${B}/${KERNEL_OUTPUT_DIR}/setup.bin" "$deployDir/"
	fi
}