summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-core
diff options
context:
space:
mode:
authorJohn Toomey <john.toomey@amd.com>2023-01-23 16:03:30 +0000
committerMark Hatle <mark.hatle@amd.com>2023-01-23 12:58:50 -0600
commite1f3f6a11435b91daf4f9fc13d90a6467e382cda (patch)
treece0d1f6bd13b4d5d23377629246d199e589de38f /meta-xilinx-core
parent96880d1ca5e2de0fe2184e29e97e0082ab8924c2 (diff)
downloadmeta-xilinx-e1f3f6a11435b91daf4f9fc13d90a6467e382cda.tar.gz
Modify FIT blob generation to use correct SOM DTB
The DTBs contained in the FIT image should be generated using the SOM specific DTB rather than the system-top.dtb allowing for a single image to boot on both SOM variants. Signed-off-by: John Toomey <john.toomey@amd.com> Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-core')
-rw-r--r--meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-blob.inc8
1 files changed, 4 insertions, 4 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 5f09a99f..4d9a45c0 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
@@ -96,11 +96,11 @@ do_blob_generate () {
96 install -d ${DT_BLOB_DIR} 96 install -d ${DT_BLOB_DIR}
97 for CC_DTB in ${IMPORT_CC_DTBS}; do 97 for CC_DTB in ${IMPORT_CC_DTBS}; do
98 DTBO=$(echo $CC_DTB | cut -d: -f1) 98 DTBO=$(echo $CC_DTB | cut -d: -f1)
99 DTB=$(echo $CC_DTB | cut -d: -f2) 99 BASE_DTB=$(echo $CC_DTB | cut -d: -f2)
100 bbnote "fdtoverlay -o ${DT_BLOB_DIR}/${DTB} -i ${RECIPE_SYSROOT}/${DTB_PATH}/${DTB_NAME} ${B}/arch/arm/dts/${DTBO}" 100 OUTPUT_DTB=$(echo $CC_DTB | cut -d: -f3)
101 bbnote "fdtoverlay -o ${DT_BLOB_DIR}/${OUTPUT_DTB} -i ${B}/arch/arm/dts/${BASE_DTB} ${B}/arch/arm/dts/${DTBO}"
101 if [ -f ${B}/arch/arm/dts/${DTBO} ]; then 102 if [ -f ${B}/arch/arm/dts/${DTBO} ]; then
102 fdtoverlay -o ${DT_BLOB_DIR}/${DTB} \ 103 fdtoverlay -o ${DT_BLOB_DIR}/${OUTPUT_DTB} -i ${B}/arch/arm/dts/${BASE_DTB} ${B}/arch/arm/dts/${DTBO}
103 -i ${RECIPE_SYSROOT}/${DTB_PATH}/${DTB_NAME} ${B}/arch/arm/dts/${DTBO}
104 fi 104 fi
105 done 105 done
106 106