summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMing Liu <ming.liu@toradex.com>2021-03-24 13:18:29 +0100
committerMax Krummenacher <max.krummenacher@toradex.com>2021-05-24 18:21:53 +0200
commit04887d9cde8954741dc263231e4f863c4b88eb1c (patch)
tree5f9a976923ed0c90414100cec0987b243175a637
parent3a28e6106cbfe71dd9545735141688ea5ea0f761 (diff)
toradex-fitimage.bbclass: build configuration for image tree when dtb is not present
Partly back-port commit 2d9f3c3d763e2bca704da4019add973b9a2c572f from OE upstream: [ kernel-fitimage: build configuration for image tree when dtb is not present This patch adds support for adding configuration node even when dtb is not part of the FIT image. The conf and default node number are therefore changed to point to kernel ID rather than dtb ID when dtb does not exist. ] to support fitImage for qemu machines which dont have a dtb node. Related-to: TOR-1700 Signed-off-by: Ming Liu <ming.liu@toradex.com> (cherry picked from commit 4a67680a10d7567499c15c3ffc065b5b4d05f07b)
-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 7d74d63..24fb2fc 100644
--- a/classes/toradex-fitimage.bbclass
+++ b/classes/toradex-fitimage.bbclass
@@ -115,6 +115,9 @@ fitimage_assemble() {
fi
i=`expr ${i} + 1`
done
+ else
+ defaultconfigcount=1
+ fitimage_emit_section_config ${1} "${kernelcount}" "" "${ramdiskcount}" "${setupcount}" "${defaultconfigcount}"
fi
fitimage_emit_section_maint ${1} sectend