summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@amd.com>2023-04-25 13:41:51 -0700
committerMark Hatle <mark.hatle@amd.com>2023-05-13 10:20:48 -0500
commitc3461c709721fb14cc64e691e3fbda80f01cb4ca (patch)
tree5d5acf9102700b27005bf2a7f877f4f94883effd
parentb0efcddc5b3a35d143614698a39ecb5a9d134aac (diff)
downloadmeta-xilinx-c3461c709721fb14cc64e691e3fbda80f01cb4ca.tar.gz
u-boot-xlnx: Rename DTB_NAME to DTB_FILE_NAME
Match the variable naming used in device-tree recipe, functionality remains the same. Signed-off-by: Mark Hatle <mark.hatle@amd.com>
-rw-r--r--meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-blob.inc6
-rw-r--r--meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx.inc8
2 files changed, 7 insertions, 7 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 535641eb..3f32aa7e 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
@@ -101,7 +101,7 @@ do_blob_generate () {
101 BASE_DTB=$(echo $CC_DTB | cut -d: -f2) 101 BASE_DTB=$(echo $CC_DTB | cut -d: -f2)
102 OUTPUT_DTB=$(echo $CC_DTB | cut -d: -f3) 102 OUTPUT_DTB=$(echo $CC_DTB | cut -d: -f3)
103 if [ "${SYSTEM_DTB_BLOB}" == "1" ]; then 103 if [ "${SYSTEM_DTB_BLOB}" == "1" ]; then
104 BASE_SYS_DTB="${RECIPE_SYSROOT}/${DTB_PATH}/${DTB_NAME}" 104 BASE_SYS_DTB="${RECIPE_SYSROOT}/${DTB_PATH}/${DTB_FILE_NAME}"
105 else 105 else
106 BASE_SYS_DTB="${B}/arch/arm/dts/${BASE_DTB}" 106 BASE_SYS_DTB="${B}/arch/arm/dts/${BASE_DTB}"
107 fi 107 fi
@@ -125,13 +125,13 @@ do_blob_generate () {
125 its_filename="dtblob.its" 125 its_filename="dtblob.its"
126 dtblob_emit_its_section "${its_filename}" "header" 126 dtblob_emit_its_section "${its_filename}" "header"
127 dtblob_emit_its_section "${its_filename}" "imagestart" 127 dtblob_emit_its_section "${its_filename}" "imagestart"
128 for dtb in ${RECIPE_SYSROOT}/${DTB_PATH}/${DTB_NAME} $(find ${DT_BLOB_DIR} -name '*.dtb' | sort); do 128 for dtb in ${RECIPE_SYSROOT}/${DTB_PATH}/${DTB_FILE_NAME} $(find ${DT_BLOB_DIR} -name '*.dtb' | sort); do
129 dtblob_emit_dtb "${its_filename}" "$(basename $dtb .dtb)" "$dtb" 129 dtblob_emit_dtb "${its_filename}" "$(basename $dtb .dtb)" "$dtb"
130 done 130 done
131 dtblob_emit_its_section "${its_filename}" "sectend" 131 dtblob_emit_its_section "${its_filename}" "sectend"
132 dtblob_emit_its_section "${its_filename}" "confstart" 132 dtblob_emit_its_section "${its_filename}" "confstart"
133 dtbcount=1 133 dtbcount=1
134 for dtb in ${RECIPE_SYSROOT}/${DTB_PATH}/${DTB_NAME} $(find ${DT_BLOB_DIR} -name '*.dtb' | sort); do 134 for dtb in ${RECIPE_SYSROOT}/${DTB_PATH}/${DTB_FILE_NAME} $(find ${DT_BLOB_DIR} -name '*.dtb' | sort); do
135 dtblob_emit_config "${its_filename}" "$(basename $dtb .dtb)" "$(basename $dtb .dtb)" "$dtbcount" 135 dtblob_emit_config "${its_filename}" "$(basename $dtb .dtb)" "$(basename $dtb .dtb)" "$dtbcount"
136 dtbcount=`expr $dtbcount + 1` 136 dtbcount=`expr $dtbcount + 1`
137 done 137 done
diff --git a/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx.inc b/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx.inc
index 10dfbb60..4c7ea934 100644
--- a/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx.inc
+++ b/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx.inc
@@ -9,7 +9,7 @@ SYSROOT_DIRS += "/boot"
9 9
10BASE_DTS ?= "${@os.path.basename(d.getVar('CONFIG_DTFILE') or '').rstrip('.dtb').rstrip('.dts') or 'system-top'}" 10BASE_DTS ?= "${@os.path.basename(d.getVar('CONFIG_DTFILE') or '').rstrip('.dtb').rstrip('.dts') or 'system-top'}"
11DTB_PATH ?= "boot/devicetree/" 11DTB_PATH ?= "boot/devicetree/"
12DTB_NAME ?= "" 12DTB_FILE_NAME ?= ""
13 13
14# This vairable is used for U-boot user specified dts from u-boot repo path 14# This vairable is used for U-boot user specified dts from u-boot repo path
15# u-boot-xlnx/arch/arm/dts/versal-vck190-revA-x-ebm-01-revA.dts. 15# u-boot-xlnx/arch/arm/dts/versal-vck190-revA-x-ebm-01-revA.dts.
@@ -17,7 +17,7 @@ DTB_NAME ?= ""
17# Example: UBOOT_USER_SPECIFIED_DTS = "versal-vck190-revA-x-ebm-01-revA" 17# Example: UBOOT_USER_SPECIFIED_DTS = "versal-vck190-revA-x-ebm-01-revA"
18UBOOT_USER_SPECIFIED_DTS ?= "" 18UBOOT_USER_SPECIFIED_DTS ?= ""
19 19
20EXTRA_OEMAKE += "${@'EXT_DTB=${RECIPE_SYSROOT}/${DTB_PATH}/${DTB_NAME}' if (d.getVar('DTB_NAME') != '' and d.getVar('UBOOT_USER_SPECIFIED_DTS') == '') else '' }" 20EXTRA_OEMAKE += "${@'EXT_DTB=${RECIPE_SYSROOT}/${DTB_PATH}/${DTB_FILE_NAME}' if (d.getVar('DTB_FILE_NAME') != '' and d.getVar('UBOOT_USER_SPECIFIED_DTS') == '') else '' }"
21EXTRA_OEMAKE += "${@'DEVICE_TREE=${UBOOT_USER_SPECIFIED_DTS}' if (d.getVar('UBOOT_USER_SPECIFIED_DTS') != '') else '' }" 21EXTRA_OEMAKE += "${@'DEVICE_TREE=${UBOOT_USER_SPECIFIED_DTS}' if (d.getVar('UBOOT_USER_SPECIFIED_DTS') != '') else '' }"
22 22
23python __anonymous () { 23python __anonymous () {
@@ -25,8 +25,8 @@ python __anonymous () {
25 providerdtb = d.getVar("PREFERRED_PROVIDER_virtual/dtb") 25 providerdtb = d.getVar("PREFERRED_PROVIDER_virtual/dtb")
26 if providerdtb: 26 if providerdtb:
27 d.appendVarFlag('do_configure', 'depends', ' virtual/dtb:do_populate_sysroot') 27 d.appendVarFlag('do_configure', 'depends', ' virtual/dtb:do_populate_sysroot')
28 if d.getVar("DTB_NAME") is not None: 28 if d.getVar("DTB_FILE_NAME") is not None:
29 d.setVar('DTB_NAME', d.getVar('BASE_DTS')+ '.dtb') 29 d.setVar('DTB_FILE_NAME', d.getVar('BASE_DTS')+ '.dtb')
30} 30}
31 31
32do_configure:prepend () { 32do_configure:prepend () {