summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-blob.inc12
1 files changed, 12 insertions, 0 deletions
diff --git a/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-blob.inc b/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-blob.inc
index d44ab7e7..535641eb 100644
--- a/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-blob.inc
+++ b/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-blob.inc
@@ -7,7 +7,9 @@ UBOOT_BLOB_NAME ?= "${MACHINE}-fit-dtb${IMAGE_VERSION_SUFFIX}.blob"
7 7
8IMPORT_CC_DTBS ?= "" 8IMPORT_CC_DTBS ?= ""
9CC_DTBS_DUP ?= "" 9CC_DTBS_DUP ?= ""
10IMPORT_CC_UBOOT_DTBS ?= ""
10 11
12DEPENDS:append:eval-brd-sc-zynqmp = " uboot-device-tree"
11MKIMAGE_DTBLOB_OPTS ?= "-E -B 0x8" 13MKIMAGE_DTBLOB_OPTS ?= "-E -B 0x8"
12 14
13# Everything is swtiched on with UBOOT_IMAGE_BLOB = '1' 15# Everything is swtiched on with UBOOT_IMAGE_BLOB = '1'
@@ -109,6 +111,16 @@ do_blob_generate () {
109 fi 111 fi
110 done 112 done
111 113
114 for CC_DTB in ${IMPORT_CC_UBOOT_DTBS}; do
115 DTBO=$(echo $CC_DTB | cut -d: -f1)
116 OUTPUT_DTB=$(echo $CC_DTB | cut -d: -f3)
117 BASE_SYS_DTB="${RECIPE_SYSROOT}/${DTB_PATH}/${PACKAGE_UBOOT_DTB_NAME}"
118 bbnote "fdtoverlay -o ${DT_BLOB_DIR}/${OUTPUT_DTB} -i ${BASE_SYS_DTB} ${B}/arch/arm/dts/${DTBO}"
119 if [ -f ${B}/arch/arm/dts/${DTBO} ]; then
120 fdtoverlay -o ${DT_BLOB_DIR}/${OUTPUT_DTB} -i ${BASE_SYS_DTB} ${B}/arch/arm/dts/${DTBO}
121 fi
122 done
123
112 cd ${DT_BLOB_DIR} 124 cd ${DT_BLOB_DIR}
113 its_filename="dtblob.its" 125 its_filename="dtblob.its"
114 dtblob_emit_its_section "${its_filename}" "header" 126 dtblob_emit_its_section "${its_filename}" "header"