summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@amd.com>2025-02-03 15:28:31 -0700
committerMark Hatle <mark.hatle@amd.com>2025-03-30 14:16:15 -0600
commit2eb504cf50dc81acb0dd85667ef624d180651719 (patch)
treebedb40206c5b1668ab13571e230506130026a337
parent9a771efc71c505e7d325ea1a47468c80946f5fa3 (diff)
downloadmeta-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.inc20
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
20S = "${WORKDIR}/git" 20S = "${WORKDIR}/git"
21 21
22do_install[noexec] = '1' 22# Don't do anything for target or native
23do_install() {
24 :
25}
26
27# Nativesdk bundle the device trees for the SDK
28do_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
24do_deploy() { 40do_deploy() {
25 # single-arch dtbs 41 # single-arch dtbs
@@ -33,6 +49,8 @@ do_deploy() {
33 done 49 done
34} 50}
35 51
52FILES:${PN}:class-nativesdk = "${base_prefix}/qemu-hw-devicetrees"
53
36addtask deploy after do_install before do_build 54addtask deploy after do_install before do_build
37 55
38COMPATIBLE_HOST:class-target = "none" 56COMPATIBLE_HOST:class-target = "none"