summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-standalone-sdt/recipes-bsp/sdt-artifacts
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@amd.com>2024-09-05 19:34:23 +0000
committerMark Hatle <mark.hatle@amd.com>2024-09-13 07:13:30 -0600
commit9a241f07f1630dac1b448765ab6d2229a75eed5b (patch)
tree9a797e72e1bde84d9b233e3b09704d27cd8673e5 /meta-xilinx-standalone-sdt/recipes-bsp/sdt-artifacts
parent85194c0b42dc13bd773c2bddc8536336a87c1c7e (diff)
downloadmeta-xilinx-9a241f07f1630dac1b448765ab6d2229a75eed5b.tar.gz
meta-xilinx-standalone-sdt: sdt-artifacts: Support the old format for local files
To aid the transition to the new SDT_URI, provide a compatible way to use the previous SYSTEM_DTFILE_DIR and a fallback. Note, this will only work for local files. Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-standalone-sdt/recipes-bsp/sdt-artifacts')
-rw-r--r--meta-xilinx-standalone-sdt/recipes-bsp/sdt-artifacts/sdt-artifacts.bb5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta-xilinx-standalone-sdt/recipes-bsp/sdt-artifacts/sdt-artifacts.bb b/meta-xilinx-standalone-sdt/recipes-bsp/sdt-artifacts/sdt-artifacts.bb
index 594075a5..9c45c3ef 100644
--- a/meta-xilinx-standalone-sdt/recipes-bsp/sdt-artifacts/sdt-artifacts.bb
+++ b/meta-xilinx-standalone-sdt/recipes-bsp/sdt-artifacts/sdt-artifacts.bb
@@ -12,7 +12,10 @@ inherit deploy image-artifact-names
12# they may also define SDT_URI[S] to define the unpacking path. 12# they may also define SDT_URI[S] to define the unpacking path.
13SDT_URI[doc] = "URI for the System Device Tree file(s), usually a tarball bundle of files" 13SDT_URI[doc] = "URI for the System Device Tree file(s), usually a tarball bundle of files"
14 14
15SDT_URI ??= "" 15# Add compatibility with previous gen-machine-conf output
16SYSTEM_DTFILE_DIR ??= ""
17
18SDT_URI ??= "${@'file://${SYSTEM_DTFILE_DIR}' if d.getVar('SYSTEM_DTFILE_DIR') else ''}"
16 19
17SRC_URI = "${SDT_URI}" 20SRC_URI = "${SDT_URI}"
18SRC_URI[sha256sum] = "${@d.getVarFlag('SDT_URI', 'sha256sum') or 'undefined'}" 21SRC_URI[sha256sum] = "${@d.getVarFlag('SDT_URI', 'sha256sum') or 'undefined'}"