summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@amd.com>2023-04-25 18:13:18 -0700
committerMark Hatle <mark.hatle@amd.com>2023-05-13 10:20:48 -0500
commita6996cfd91c868b6570d6c8d11fe805ed3a63cdd (patch)
tree0325e75381ae3854e911555c1eb59f554bd2d817
parentcfe79c4db1155280c905166d932ebf09a6a08b67 (diff)
downloadmeta-xilinx-a6996cfd91c868b6570d6c8d11fe805ed3a63cdd.tar.gz
device-tree: Copy BASE_DTS setting from u-boot, adjust functions
BASE_DTS, and DTB_FILE_NAME default based on BASE_DTS, synced with u-boot-xlnx. This will unify the default configuration and ensure we get consistent results. Signed-off-by: Mark Hatle <mark.hatle@amd.com>
-rw-r--r--meta-xilinx-core/recipes-bsp/device-tree/device-tree.bb4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta-xilinx-core/recipes-bsp/device-tree/device-tree.bb b/meta-xilinx-core/recipes-bsp/device-tree/device-tree.bb
index a35df4ac..f403185f 100644
--- a/meta-xilinx-core/recipes-bsp/device-tree/device-tree.bb
+++ b/meta-xilinx-core/recipes-bsp/device-tree/device-tree.bb
@@ -23,6 +23,8 @@ inherit devicetree image-artifact-names
23SYSTEM_DTFILE ??= "" 23SYSTEM_DTFILE ??= ""
24CONFIG_DTFILE ??= "${SYSTEM_DTFILE}" 24CONFIG_DTFILE ??= "${SYSTEM_DTFILE}"
25 25
26BASE_DTS ?= "${@os.path.basename(d.getVar('CONFIG_DTFILE') or '').rstrip('.dtb').rstrip('.dts') or 'system-top'}"
27
26EXTRA_DT_FILES ?= "" 28EXTRA_DT_FILES ?= ""
27EXTRA_DTFILE_PREFIX ?= "system-top" 29EXTRA_DTFILE_PREFIX ?= "system-top"
28EXTRA_DTFILES_BUNDLE ?= "" 30EXTRA_DTFILES_BUNDLE ?= ""
@@ -55,7 +57,7 @@ PROVIDES = "virtual/dtb"
55# common zynq include 57# common zynq include
56SRC_URI:append:zynq = " file://zynq-7000-qspi-dummy.dtsi" 58SRC_URI:append:zynq = " file://zynq-7000-qspi-dummy.dtsi"
57 59
58DTB_FILE_NAME = "${@os.path.basename(d.getVar('CONFIG_DTFILE')).replace('.dts', '.dtb') if d.getVar('CONFIG_DTFILE') else ''}" 60DTB_FILE_NAME ?= "${BASE_DTS}.dtb"
59 61
60DTB_BASE_NAME ?= "${MACHINE}-system${IMAGE_VERSION_SUFFIX}" 62DTB_BASE_NAME ?= "${MACHINE}-system${IMAGE_VERSION_SUFFIX}"
61 63