]> code.ossystems Code Review - openembedded-core.git/commit
kernel.bbclass: fix deployment for initramfs images
authorAwais Belal <Awais_Belal@mentor.com>
Fri, 29 Jan 2021 12:42:39 +0000 (17:42 +0500)
committerAnuj Mittal <anuj.mittal@intel.com>
Sat, 6 Feb 2021 06:53:57 +0000 (14:53 +0800)
commit327317d0162940786ae62ec3da4ae0ea73c81f48
tree35c5e7cad6bbaa4b6d05df7903509f273ea21f65
parent68e17e21f59fcf763877b350cc2a1494b5f1bd91
kernel.bbclass: fix deployment for initramfs images

The do_bundle_initramfs() only processes kernel image
types that are found in KERNEL_IMAGETYPE_FOR_MAKE whereas
the build system can generate other types that are not
directly supported by the kernel build system. In which
case when we come to the deploy phase not all the images
mentioned in KERNEL_IMAGETYPES would have a respective
initramfs bundled image. An example is using vmlinux.gz
in KERNEL_IMAGETYPES and enabling initramfs and then we
see

install: cannot stat 'arch/arm64/boot/vmlinux.gz.initramfs': No such file or directory

So we align the deploy phase with bundle initramfs phase
and pick up relevant initramfs bundled images using
KERNEL_IMAGETYPE_FOR_MAKE instead of KERNEL_IMAGETYPES.

Signed-off-by: Awais Belal <awais_belal@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 526bdd88ccd758204452579333ba188e29270bde)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
meta/classes/kernel.bbclass