diff mbox series

[3/3] kernel-fit-extra-artifacts: skip building linux.bin if unneeded

Message ID 20260723124944.69070-4-nora.schiffer@ew.tq-group.com
State New
Headers show
Series kernel-fit-image: allow replacing kernel, handle compression in FIT recipe | expand

Commit Message

Nora Schiffer July 23, 2026, 12:49 p.m. UTC
With the introduction of FIT_KERNEL_FILENAME[_COMPRESSED], building
linux.bin can be skipped if any of the two variables is set to a
non-default value, as kernel-fit-image.bbclass will handle the
compression itself.

Signed-off-by: Nora Schiffer <nora.schiffer@ew.tq-group.com>
---
 meta/classes-recipe/kernel-fit-extra-artifacts.bbclass | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/classes-recipe/kernel-fit-extra-artifacts.bbclass b/meta/classes-recipe/kernel-fit-extra-artifacts.bbclass
index 385fe9895a..02e7d1273f 100644
--- a/meta/classes-recipe/kernel-fit-extra-artifacts.bbclass
+++ b/meta/classes-recipe/kernel-fit-extra-artifacts.bbclass
@@ -11,7 +11,9 @@  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"
+	if [ -z "${FIT_KERNEL_FILENAME}" ] && [ "${FIT_KERNEL_FILENAME_COMPRESSED}" = 'linux.bin' ]; then
+		uboot_prep_kimage "$deployDir"
+	fi
 	# 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/"