diff options
author | Ming Liu <ming.liu@toradex.com> | 2021-03-24 13:18:29 +0100 |
---|---|---|
committer | Ming Liu <ming.liu@toradex.int> | 2021-03-26 09:40:36 +0000 |
commit | 4a67680a10d7567499c15c3ffc065b5b4d05f07b (patch) | |
tree | dd9b09e8a576f1301520a864fdc7ca680fd64144 | |
parent | efbdc6e55cbcd49c576c7c8da2b6dd55e200b6d1 (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>
-rw-r--r-- | classes/toradex-fitimage.bbclass | 3 |
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 |