From 9a241f07f1630dac1b448765ab6d2229a75eed5b Mon Sep 17 00:00:00 2001 From: Mark Hatle Date: Thu, 5 Sep 2024 19:34:23 +0000 Subject: 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 --- .../recipes-bsp/sdt-artifacts/sdt-artifacts.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'meta-xilinx-standalone-sdt/recipes-bsp/sdt-artifacts') 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 # they may also define SDT_URI[S] to define the unpacking path. SDT_URI[doc] = "URI for the System Device Tree file(s), usually a tarball bundle of files" -SDT_URI ??= "" +# Add compatibility with previous gen-machine-conf output +SYSTEM_DTFILE_DIR ??= "" + +SDT_URI ??= "${@'file://${SYSTEM_DTFILE_DIR}' if d.getVar('SYSTEM_DTFILE_DIR') else ''}" SRC_URI = "${SDT_URI}" SRC_URI[sha256sum] = "${@d.getVarFlag('SDT_URI', 'sha256sum') or 'undefined'}" -- cgit v1.2.3-54-g00ecf