From de85e0dd59c75df5aa5d988c1078de3ce8eab0d0 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Mon, 4 Apr 2022 16:36:25 +0200 Subject: toradex-fitimage.bbclass: add hook to set the kernel type Allow to change the Type for the kernel section to 'kernel_noload' rather than using the default 'kernel'. Set UBOOT_KERNEL_TYPE to 'kernel_noload'. This is e.g. used for apalis-tk1 for TEZI. Related-to: ELB-4417 Signed-off-by: Max Krummenacher --- classes/toradex-fitimage.bbclass | 3 +++ 1 file changed, 3 insertions(+) (limited to 'classes') diff --git a/classes/toradex-fitimage.bbclass b/classes/toradex-fitimage.bbclass index f3ad492..de6662b 100644 --- a/classes/toradex-fitimage.bbclass +++ b/classes/toradex-fitimage.bbclass @@ -38,6 +38,9 @@ fitimage_assemble() { uboot_prep_kimage fitimage_emit_section_kernel ${1} "${kernelcount}" linux.bin "${linux_comp}" + if [ "x${UBOOT_KERNEL_TYPE}" = "xkernel_noload" ]; then + sed 's/\(^\s*type.*\kernel\)\"/\1_noload\"/' -i ${1} + fi # # Step 2: Prepare a DTB image section -- cgit v1.2.3