diff options
author | Mark Hatle <mark.hatle@amd.com> | 2025-02-03 15:28:31 -0700 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2025-03-30 14:16:15 -0600 |
commit | 2eb504cf50dc81acb0dd85667ef624d180651719 (patch) | |
tree | bedb40206c5b1668ab13571e230506130026a337 | |
parent | 9a771efc71c505e7d325ea1a47468c80946f5fa3 (diff) | |
download | meta-xilinx-2eb504cf50dc81acb0dd85667ef624d180651719.tar.gz |
meta-xilinx-core: qemu-devicetrees: Add support for nativesdk version
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
-rw-r--r-- | meta-xilinx-core/recipes-devtools/qemu/qemu-devicetrees.inc | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/meta-xilinx-core/recipes-devtools/qemu/qemu-devicetrees.inc b/meta-xilinx-core/recipes-devtools/qemu/qemu-devicetrees.inc index 26327ba3..00b2e1f9 100644 --- a/meta-xilinx-core/recipes-devtools/qemu/qemu-devicetrees.inc +++ b/meta-xilinx-core/recipes-devtools/qemu/qemu-devicetrees.inc | |||
@@ -19,7 +19,23 @@ SRC_URI += "file://0001-versal-net-Reorder-serial-port.patch" | |||
19 | 19 | ||
20 | S = "${WORKDIR}/git" | 20 | S = "${WORKDIR}/git" |
21 | 21 | ||
22 | do_install[noexec] = '1' | 22 | # Don't do anything for target or native |
23 | do_install() { | ||
24 | : | ||
25 | } | ||
26 | |||
27 | # Nativesdk bundle the device trees for the SDK | ||
28 | do_install:class-nativesdk() { | ||
29 | # single-arch dtbs | ||
30 | for DTS_FILE in ${S}/LATEST/SINGLE_ARCH/*.dtb; do | ||
31 | install -Dm 0644 $DTS_FILE ${D}/${base_prefix}/qemu-hw-devicetrees/$(basename $DTS_FILE .dtb).dtb | ||
32 | done | ||
33 | |||
34 | # multi-arch dtbs | ||
35 | for DTS_FILE in ${S}/LATEST/MULTI_ARCH/*.dtb; do | ||
36 | install -Dm 0644 $DTS_FILE ${D}/${base_prefix}/qemu-hw-devicetrees/multiarch/$(basename $DTS_FILE .dtb).dtb | ||
37 | done | ||
38 | } | ||
23 | 39 | ||
24 | do_deploy() { | 40 | do_deploy() { |
25 | # single-arch dtbs | 41 | # single-arch dtbs |
@@ -33,6 +49,8 @@ do_deploy() { | |||
33 | done | 49 | done |
34 | } | 50 | } |
35 | 51 | ||
52 | FILES:${PN}:class-nativesdk = "${base_prefix}/qemu-hw-devicetrees" | ||
53 | |||
36 | addtask deploy after do_install before do_build | 54 | addtask deploy after do_install before do_build |
37 | 55 | ||
38 | COMPATIBLE_HOST:class-target = "none" | 56 | COMPATIBLE_HOST:class-target = "none" |