summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2022-04-04 16:36:25 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2022-04-04 17:42:54 +0200
commit0b92fd06f9f334444e2e390ff2e7c52964a757b5 (patch)
tree70e1c4b7880689d0a6546457898453eb8d387d80
parent4d2ad76efd531a274375f81a7e3e4c0da65411f9 (diff)
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 <max.krummenacher@toradex.com>
-rw-r--r--classes/toradex-fitimage.bbclass3
1 files changed, 3 insertions, 0 deletions
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