summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@amd.com>2023-02-09 16:53:13 -0800
committerMark Hatle <mark.hatle@amd.com>2023-02-10 09:40:13 -0600
commit7708d3c557939d7d779a6caa8b517856ca27f135 (patch)
treeebf3b52a63a97864242c50fdd05fc93743e52933
parent4327da7545dd0760f802b99983f24f8625e8d783 (diff)
downloadmeta-xilinx-7708d3c557939d7d779a6caa8b517856ca27f135.tar.gz
qemu: May end up depending on libmali, set PACKAGE_ARCH
If qemu ends up depending on libmali, we want to set the PACKAGE_ARCH to machine value as this version is now machine specific. Signed-off-by: Mark Hatle <mark.hatle@amd.com>
-rw-r--r--meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx_2023.1.bb5
-rw-r--r--meta-xilinx-core/recipes-devtools/qemu/qemu_%.bbappend5
2 files changed, 10 insertions, 0 deletions
diff --git a/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx_2023.1.bb b/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx_2023.1.bb
index bc7b17b2..6c1851ba 100644
--- a/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx_2023.1.bb
+++ b/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx_2023.1.bb
@@ -3,6 +3,11 @@ require recipes-devtools/qemu/qemu.inc
3require qemu-xilinx-7.1.inc 3require qemu-xilinx-7.1.inc
4require qemu-alt.inc 4require qemu-alt.inc
5 5
6# Links to libmali-xlnx, so it becomes MACHINE_ARCH specific
7DEFAULT_PACKAGE_ARCH := "${PACKAGE_ARCH}"
8MALI_PACKAGE_ARCH = "${@'${MACHINE_ARCH}' if d.getVar('PREFERRED_PROVIDER_virtual/libgles1') == 'libmali-xlnx' else '${DEFAULT_PACKAGE_ARCH}'}"
9PACKAGE_ARCH:class-target = "${@bb.utils.contains_any('DEPENDS', 'libepoxy virglrenderer', '${MALI_PACKAGE_ARCH}', '${DEFAULT_PACKAGE_ARCH}', d)}"
10
6BBCLASSEXTEND = "nativesdk" 11BBCLASSEXTEND = "nativesdk"
7 12
8RDEPENDS:${PN}:class-target += "bash" 13RDEPENDS:${PN}:class-target += "bash"
diff --git a/meta-xilinx-core/recipes-devtools/qemu/qemu_%.bbappend b/meta-xilinx-core/recipes-devtools/qemu/qemu_%.bbappend
index 9140060e..83768622 100644
--- a/meta-xilinx-core/recipes-devtools/qemu/qemu_%.bbappend
+++ b/meta-xilinx-core/recipes-devtools/qemu/qemu_%.bbappend
@@ -1 +1,6 @@
1require qemu-alt.inc 1require qemu-alt.inc
2
3# Links to libmali-xlnx, so it becomes MACHINE_ARCH specific
4DEFAULT_PACKAGE_ARCH := "${PACKAGE_ARCH}"
5MALI_PACKAGE_ARCH = "${@'${MACHINE_ARCH}' if d.getVar('PREFERRED_PROVIDER_virtual/libgles1') == 'libmali-xlnx' else '${DEFAULT_PACKAGE_ARCH}'}"
6PACKAGE_ARCH:class-target = "${@bb.utils.contains_any('DEPENDS', 'libepoxy virglrenderer', '${MALI_PACKAGE_ARCH}', '${DEFAULT_PACKAGE_ARCH}', d)}"