diff options
| author | Mark Hatle <mark.hatle@amd.com> | 2023-04-25 18:13:18 -0700 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@amd.com> | 2023-05-13 10:20:48 -0500 |
| commit | a6996cfd91c868b6570d6c8d11fe805ed3a63cdd (patch) | |
| tree | 0325e75381ae3854e911555c1eb59f554bd2d817 | |
| parent | cfe79c4db1155280c905166d932ebf09a6a08b67 (diff) | |
| download | meta-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.bb | 4 |
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 | |||
| 23 | SYSTEM_DTFILE ??= "" | 23 | SYSTEM_DTFILE ??= "" |
| 24 | CONFIG_DTFILE ??= "${SYSTEM_DTFILE}" | 24 | CONFIG_DTFILE ??= "${SYSTEM_DTFILE}" |
| 25 | 25 | ||
| 26 | BASE_DTS ?= "${@os.path.basename(d.getVar('CONFIG_DTFILE') or '').rstrip('.dtb').rstrip('.dts') or 'system-top'}" | ||
| 27 | |||
| 26 | EXTRA_DT_FILES ?= "" | 28 | EXTRA_DT_FILES ?= "" |
| 27 | EXTRA_DTFILE_PREFIX ?= "system-top" | 29 | EXTRA_DTFILE_PREFIX ?= "system-top" |
| 28 | EXTRA_DTFILES_BUNDLE ?= "" | 30 | EXTRA_DTFILES_BUNDLE ?= "" |
| @@ -55,7 +57,7 @@ PROVIDES = "virtual/dtb" | |||
| 55 | # common zynq include | 57 | # common zynq include |
| 56 | SRC_URI:append:zynq = " file://zynq-7000-qspi-dummy.dtsi" | 58 | SRC_URI:append:zynq = " file://zynq-7000-qspi-dummy.dtsi" |
| 57 | 59 | ||
| 58 | DTB_FILE_NAME = "${@os.path.basename(d.getVar('CONFIG_DTFILE')).replace('.dts', '.dtb') if d.getVar('CONFIG_DTFILE') else ''}" | 60 | DTB_FILE_NAME ?= "${BASE_DTS}.dtb" |
| 59 | 61 | ||
| 60 | DTB_BASE_NAME ?= "${MACHINE}-system${IMAGE_VERSION_SUFFIX}" | 62 | DTB_BASE_NAME ?= "${MACHINE}-system${IMAGE_VERSION_SUFFIX}" |
| 61 | 63 | ||
