summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe
diff options
context:
space:
mode:
authorAdrian Freihofer <adrian.freihofer@siemens.com>2025-06-03 10:23:30 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-06-05 11:02:22 +0100
commit18861ef0eb23d4f8823955a6bff5d3fe89e191b6 (patch)
tree935697e0fd71be4223ed5df6b727d7afd47e9194 /meta/classes-recipe
parent7114f4e07e1da60b6ec2f89d92885e653bfc8076 (diff)
downloadpoky-18861ef0eb23d4f8823955a6bff5d3fe89e191b6.tar.gz
kernel.bbclass: remove support for type fitImage
kernel.bbclass is no longer involved in FIT image creation. Whether a FIT image is built now depends entirely on whether the linux-yocto-fitimage recipe (or any other recipe capable of producing a FIT image) is selected for the build. As a result, specifying the kernel image type "fitImage" in KERNEL_IMAGETYPE or KERNEL_IMAGETYPES is no longer necessary and gets removed. (From OE-Core rev: ec606ef2879ddba750e275dae4dc8ab1e943b259) Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe')
-rw-r--r--meta/classes-recipe/kernel.bbclass18
1 files changed, 6 insertions, 12 deletions
diff --git a/meta/classes-recipe/kernel.bbclass b/meta/classes-recipe/kernel.bbclass
index 36ce659762..2d9943c8a0 100644
--- a/meta/classes-recipe/kernel.bbclass
+++ b/meta/classes-recipe/kernel.bbclass
@@ -84,6 +84,10 @@ python __anonymous () {
84 types = (alttype + ' ' + types).strip() 84 types = (alttype + ' ' + types).strip()
85 d.setVar('KERNEL_IMAGETYPES', types) 85 d.setVar('KERNEL_IMAGETYPES', types)
86 86
87 # Since kernel-fitimage.bbclass got replaced by kernel-fit-image.bbclass
88 if "fitImage" in types:
89 bb.error("fitImage is no longer supported as a KERNEL_IMAGETYPE(S). FIT images are built by the linux-yocto-fitimage recipe.")
90
87 # KERNEL_IMAGETYPES may contain a mixture of image types supported directly 91 # KERNEL_IMAGETYPES may contain a mixture of image types supported directly
88 # by the kernel build system and types which are created by post-processing 92 # by the kernel build system and types which are created by post-processing
89 # the output of the kernel build system (e.g. compressing vmlinux -> 93 # the output of the kernel build system (e.g. compressing vmlinux ->
@@ -477,17 +481,10 @@ kernel_do_install() {
477 install -d ${D}/${KERNEL_IMAGEDEST} 481 install -d ${D}/${KERNEL_IMAGEDEST}
478 482
479 # 483 #
480 # When including an initramfs bundle inside a FIT image, the fitImage is created after the install task 484 # bundle_initramfs runs after do_install before do_deploy. do_deploy does what's needed therefore.
481 # by do_assemble_fitimage_initramfs.
482 # This happens after the generation of the initramfs bundle (done by do_bundle_initramfs).
483 # So, at the level of the install task we should not try to install the fitImage. fitImage is still not
484 # generated yet.
485 # After the generation of the fitImage, the deploy task copies the fitImage from the build directory to
486 # the deploy folder.
487 # 485 #
488
489 for imageType in ${KERNEL_IMAGETYPES} ; do 486 for imageType in ${KERNEL_IMAGETYPES} ; do
490 if [ $imageType != "fitImage" ] || [ "${INITRAMFS_IMAGE_BUNDLE}" != "1" ] ; then 487 if [ "${INITRAMFS_IMAGE_BUNDLE}" != "1" ] ; then
491 install -m 0644 ${KERNEL_OUTPUT_DIR}/$imageType ${D}/${KERNEL_IMAGEDEST}/$imageType-${KERNEL_VERSION} 488 install -m 0644 ${KERNEL_OUTPUT_DIR}/$imageType ${D}/${KERNEL_IMAGEDEST}/$imageType-${KERNEL_VERSION}
492 fi 489 fi
493 done 490 done
@@ -845,9 +842,6 @@ kernel_do_deploy() {
845 842
846 if [ ! -z "${INITRAMFS_IMAGE}" -a x"${INITRAMFS_IMAGE_BUNDLE}" = x1 ]; then 843 if [ ! -z "${INITRAMFS_IMAGE}" -a x"${INITRAMFS_IMAGE_BUNDLE}" = x1 ]; then
847 for imageType in ${KERNEL_IMAGETYPES} ; do 844 for imageType in ${KERNEL_IMAGETYPES} ; do
848 if [ "$imageType" = "fitImage" ] ; then
849 continue
850 fi
851 initramfsBaseName=$imageType-${INITRAMFS_NAME} 845 initramfsBaseName=$imageType-${INITRAMFS_NAME}
852 install -m 0644 ${KERNEL_OUTPUT_DIR}/$imageType.initramfs $deployDir/$initramfsBaseName${KERNEL_IMAGE_BIN_EXT} 846 install -m 0644 ${KERNEL_OUTPUT_DIR}/$imageType.initramfs $deployDir/$initramfsBaseName${KERNEL_IMAGE_BIN_EXT}
853 if [ -n "${INITRAMFS_LINK_NAME}" ] ; then 847 if [ -n "${INITRAMFS_LINK_NAME}" ] ; then