diff options
| author | Tejas Bhumkar <tejas.arvind.bhumkar@amd.com> | 2023-03-29 19:17:33 +0530 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@amd.com> | 2023-04-06 15:54:07 -0500 |
| commit | d202888210404bf5e75f851056317860da6c468e (patch) | |
| tree | fe9a14fa31f2e3ef743d3cedadd4e349d53f4ae6 | |
| parent | 6df581a08206748dc5fd3699ba533cd06bb39b7b (diff) | |
| download | meta-xilinx-d202888210404bf5e75f851056317860da6c468e.tar.gz | |
u-boot-xlnx-blob.inc:Add IMPORT_CC_UBOOT_DTBS variable
Added IMPORT_CC_UBOOT_DTBS variable in blob generate function to generate reselected dtb using uboot-device-tree.dtb when this is set to 1.
This is needed in case like VEK280-revB,because here we are using ADI-PHY ethernet which is included in uboot-device-tree.dtb.
Signed-off-by: Tejas Bhumkar <tejas.arvind.bhumkar@amd.com>
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
| -rw-r--r-- | meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-blob.inc | 12 |
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 | ||
| 8 | IMPORT_CC_DTBS ?= "" | 8 | IMPORT_CC_DTBS ?= "" |
| 9 | CC_DTBS_DUP ?= "" | 9 | CC_DTBS_DUP ?= "" |
| 10 | IMPORT_CC_UBOOT_DTBS ?= "" | ||
| 10 | 11 | ||
| 12 | DEPENDS:append:eval-brd-sc-zynqmp = " uboot-device-tree" | ||
| 11 | MKIMAGE_DTBLOB_OPTS ?= "-E -B 0x8" | 13 | MKIMAGE_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" |
