diff options
author | Mark Hatle <mark.hatle@amd.com> | 2024-09-05 19:34:23 +0000 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2024-09-13 07:13:30 -0600 |
commit | 9a241f07f1630dac1b448765ab6d2229a75eed5b (patch) | |
tree | 9a797e72e1bde84d9b233e3b09704d27cd8673e5 /meta-xilinx-standalone-sdt/recipes-bsp/sdt-artifacts | |
parent | 85194c0b42dc13bd773c2bddc8536336a87c1c7e (diff) | |
download | meta-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.bb | 5 |
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. |
13 | SDT_URI[doc] = "URI for the System Device Tree file(s), usually a tarball bundle of files" | 13 | SDT_URI[doc] = "URI for the System Device Tree file(s), usually a tarball bundle of files" |
14 | 14 | ||
15 | SDT_URI ??= "" | 15 | # Add compatibility with previous gen-machine-conf output |
16 | SYSTEM_DTFILE_DIR ??= "" | ||
17 | |||
18 | SDT_URI ??= "${@'file://${SYSTEM_DTFILE_DIR}' if d.getVar('SYSTEM_DTFILE_DIR') else ''}" | ||
16 | 19 | ||
17 | SRC_URI = "${SDT_URI}" | 20 | SRC_URI = "${SDT_URI}" |
18 | SRC_URI[sha256sum] = "${@d.getVarFlag('SDT_URI', 'sha256sum') or 'undefined'}" | 21 | SRC_URI[sha256sum] = "${@d.getVarFlag('SDT_URI', 'sha256sum') or 'undefined'}" |