diff options
| author | Mark Hatle <mark.hatle@amd.com> | 2023-02-09 16:53:13 -0800 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@amd.com> | 2023-02-10 09:40:13 -0600 |
| commit | 7708d3c557939d7d779a6caa8b517856ca27f135 (patch) | |
| tree | ebf3b52a63a97864242c50fdd05fc93743e52933 | |
| parent | 4327da7545dd0760f802b99983f24f8625e8d783 (diff) | |
| download | meta-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.bb | 5 | ||||
| -rw-r--r-- | meta-xilinx-core/recipes-devtools/qemu/qemu_%.bbappend | 5 |
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 | |||
| 3 | require qemu-xilinx-7.1.inc | 3 | require qemu-xilinx-7.1.inc |
| 4 | require qemu-alt.inc | 4 | require qemu-alt.inc |
| 5 | 5 | ||
| 6 | # Links to libmali-xlnx, so it becomes MACHINE_ARCH specific | ||
| 7 | DEFAULT_PACKAGE_ARCH := "${PACKAGE_ARCH}" | ||
| 8 | MALI_PACKAGE_ARCH = "${@'${MACHINE_ARCH}' if d.getVar('PREFERRED_PROVIDER_virtual/libgles1') == 'libmali-xlnx' else '${DEFAULT_PACKAGE_ARCH}'}" | ||
| 9 | PACKAGE_ARCH:class-target = "${@bb.utils.contains_any('DEPENDS', 'libepoxy virglrenderer', '${MALI_PACKAGE_ARCH}', '${DEFAULT_PACKAGE_ARCH}', d)}" | ||
| 10 | |||
| 6 | BBCLASSEXTEND = "nativesdk" | 11 | BBCLASSEXTEND = "nativesdk" |
| 7 | 12 | ||
| 8 | RDEPENDS:${PN}:class-target += "bash" | 13 | RDEPENDS:${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 @@ | |||
| 1 | require qemu-alt.inc | 1 | require qemu-alt.inc |
| 2 | |||
| 3 | # Links to libmali-xlnx, so it becomes MACHINE_ARCH specific | ||
| 4 | DEFAULT_PACKAGE_ARCH := "${PACKAGE_ARCH}" | ||
| 5 | MALI_PACKAGE_ARCH = "${@'${MACHINE_ARCH}' if d.getVar('PREFERRED_PROVIDER_virtual/libgles1') == 'libmali-xlnx' else '${DEFAULT_PACKAGE_ARCH}'}" | ||
| 6 | PACKAGE_ARCH:class-target = "${@bb.utils.contains_any('DEPENDS', 'libepoxy virglrenderer', '${MALI_PACKAGE_ARCH}', '${DEFAULT_PACKAGE_ARCH}', d)}" | ||
