diff options
Diffstat (limited to 'meta/classes-recipe/kernel-fit-extra-artifacts.bbclass')
-rw-r--r-- | meta/classes-recipe/kernel-fit-extra-artifacts.bbclass | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/meta/classes-recipe/kernel-fit-extra-artifacts.bbclass b/meta/classes-recipe/kernel-fit-extra-artifacts.bbclass new file mode 100644 index 0000000000..385fe9895a --- /dev/null +++ b/meta/classes-recipe/kernel-fit-extra-artifacts.bbclass | |||
@@ -0,0 +1,19 @@ | |||
1 | # | ||
2 | # Copyright OpenEmbedded Contributors | ||
3 | # | ||
4 | # SPDX-License-Identifier: MIT | ||
5 | # | ||
6 | |||
7 | # Generate and deploy additional artifacts required for FIT image creation. | ||
8 | # To use this class, add it to the KERNEL_CLASSES variable. | ||
9 | |||
10 | inherit kernel-uboot | ||
11 | |||
12 | kernel_do_deploy:append() { | ||
13 | # Provide the kernel artifacts to post processing recipes e.g. for creating a FIT image | ||
14 | uboot_prep_kimage "$deployDir" | ||
15 | # For x86 a setup.bin needs to be include"d in a fitImage as well | ||
16 | if [ -e ${KERNEL_OUTPUT_DIR}/setup.bin ]; then | ||
17 | install -D "${B}/${KERNEL_OUTPUT_DIR}/setup.bin" "$deployDir/" | ||
18 | fi | ||
19 | } | ||