diff options
author | Raju Kumar Pothuraju <raju.kumar-pothuraju@xilinx.com> | 2022-06-22 16:37:34 +0530 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-06-25 00:06:08 +0100 |
commit | f7a8e22292a7881859e10bc8a941163083918379 (patch) | |
tree | 328ecc22916730f850a0ae61ae942f733c33f8db /meta | |
parent | 1238fb1dc77099551926a5aff7a91f18d674b795 (diff) | |
download | poky-f7a8e22292a7881859e10bc8a941163083918379.tar.gz |
kernel-uboot.bbclass: Use vmlinux.initramfs when INITRAMFS_IMAGE_BUNDLE set
vmlinux file doesnot have the initramfs image when INITRAMFS_IMAGE_BUNDLE was set.
Use vmlinux.initramfs in uboot_prep_kimage when INITRAMFS_IMAGE_BUNDLE set
based on the implementation in kernel.bbclass do_bundle_initramfs function,
https://github.com/openembedded/openembedded-core/blob/master/meta/classes/kernel.bbclass#L316-L317
to be able to use proper linux.bin file in creation of fitImage.
(From OE-Core rev: e0a4e45e067d9fdb67a7d223aea463f259469035)
Signed-off-by: Raju Kumar Pothuraju <raju.kumar-pothuraju@xilinx.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/kernel-uboot.bbclass | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/classes/kernel-uboot.bbclass b/meta/classes/kernel-uboot.bbclass index 2daa068298..2facade818 100644 --- a/meta/classes/kernel-uboot.bbclass +++ b/meta/classes/kernel-uboot.bbclass | |||
@@ -15,6 +15,12 @@ uboot_prep_kimage() { | |||
15 | linux_comp="none" | 15 | linux_comp="none" |
16 | else | 16 | else |
17 | vmlinux_path="vmlinux" | 17 | vmlinux_path="vmlinux" |
18 | # Use vmlinux.initramfs for linux.bin when INITRAMFS_IMAGE_BUNDLE set | ||
19 | # As per the implementation in kernel.bbclass. | ||
20 | # See do_bundle_initramfs function | ||
21 | if [ "${INITRAMFS_IMAGE_BUNDLE}" = "1" ] && [ -e vmlinux.initramfs ]; then | ||
22 | vmlinux_path="vmlinux.initramfs" | ||
23 | fi | ||
18 | linux_suffix="${FIT_KERNEL_COMP_ALG_EXTENSION}" | 24 | linux_suffix="${FIT_KERNEL_COMP_ALG_EXTENSION}" |
19 | linux_comp="${FIT_KERNEL_COMP_ALG}" | 25 | linux_comp="${FIT_KERNEL_COMP_ALG}" |
20 | fi | 26 | fi |