Allow the load address to remain unset if the UBOOT_DTB_LOADADDRESS variable is also unset for dtb entries in the image tree. This allows for U-Boot to decide dynamically where to load the dtb.
Signed-off-by: Thomas Perrot <[email protected]> --- meta/classes/kernel-fitimage.bbclass | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meta/classes/kernel-fitimage.bbclass b/meta/classes/kernel-fitimage.bbclass index a50f8a18ee..b9eb2e3b65 100644 --- a/meta/classes/kernel-fitimage.bbclass +++ b/meta/classes/kernel-fitimage.bbclass @@ -134,6 +134,11 @@ EOF fitimage_emit_section_dtb() { dtb_csum="sha1" + dtb_loadline="" + + if [ -n "${UBOOT_DTB_LOADADDRESS}" ]; then + dtb_loadline="load = <${UBOOT_DTB_LOADADDRESS}>;" + fi cat << EOF >> ${1} fdt@${2} { @@ -142,6 +147,7 @@ fitimage_emit_section_dtb() { type = "flat_dt"; arch = "${UBOOT_ARCH}"; compression = "none"; + ${dtb_loadline} hash@1 { algo = "${dtb_csum}"; }; -- 2.13.6 -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
