summaryrefslogtreecommitdiff
path: root/classes
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-26 10:42:03 +0200
commitde85e0dd59c75df5aa5d988c1078de3ce8eab0d0 (patch)
tree5e5c5187bfe954f942799af3405394ad0b13089b /classes
parent0472f407a38eaf4445e6287e70151b7c2d6add2a (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>
Diffstat (limited to 'classes')
-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