From 04887d9cde8954741dc263231e4f863c4b88eb1c Mon Sep 17 00:00:00 2001 From: Ming Liu Date: Wed, 24 Mar 2021 13:18:29 +0100 Subject: 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 (cherry picked from commit 4a67680a10d7567499c15c3ffc065b5b4d05f07b) --- 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 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 -- cgit v1.2.3