diff options
| author | Mark Hatle <mark.hatle@amd.com> | 2023-10-22 18:31:29 -0600 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@amd.com> | 2023-10-22 18:40:49 -0600 |
| commit | e08eacd3b7e25d9435c742dcfb54c1e31113c047 (patch) | |
| tree | 652a04a253667124b70f335cd2ff86112162c786 /meta-xilinx-core/recipes-devtools | |
| parent | 000776e2d3ecdbf03fd3204e5879e4900f68118f (diff) | |
| parent | 05911e19d85fd98c42054238392afe95a5125265 (diff) | |
| download | meta-xilinx-e08eacd3b7e25d9435c742dcfb54c1e31113c047.tar.gz | |
Merge remote-tracking branch 'origin/rel-v2023.2' into mickledore
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-core/recipes-devtools')
8 files changed, 79 insertions, 2 deletions
diff --git a/meta-xilinx-core/recipes-devtools/qemu/qemu-devicetrees_2023.2.bb b/meta-xilinx-core/recipes-devtools/qemu/qemu-devicetrees_2023.2.bb new file mode 100644 index 00000000..d41743c1 --- /dev/null +++ b/meta-xilinx-core/recipes-devtools/qemu/qemu-devicetrees_2023.2.bb | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | |||
| 2 | require qemu-devicetrees.inc | ||
| 3 | |||
| 4 | BRANCH ?= "xlnx_rel_v2023.2" | ||
| 5 | SRCREV ?= "d1013382d9a5ef816cd020e7840813b7a2d65c51" | ||
| 6 | |||
diff --git a/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx-2023.2.inc b/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx-2023.2.inc new file mode 100644 index 00000000..db6e1528 --- /dev/null +++ b/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx-2023.2.inc | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | XILINX_QEMU_VERSION = "v7.1.0" | ||
| 2 | BRANCH = "xlnx_rel_v2023.2" | ||
| 3 | SRCREV = "23b643ba1683a47ef49447a45643fe2172d6f8ca" | ||
diff --git a/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx-native_2023.2.bb b/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx-native_2023.2.bb new file mode 100644 index 00000000..ccfa9956 --- /dev/null +++ b/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx-native_2023.2.bb | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | require qemu-xilinx-2023.2.inc | ||
| 2 | require qemu-xilinx-native-7.1.inc | ||
| 3 | require qemu-native-alt.inc | ||
| 4 | |||
| 5 | BPN = "qemu-xilinx" | ||
| 6 | |||
| 7 | EXTRA_OECONF:append = " --target-list=${@get_qemu_usermode_target_list(d)} --disable-tools --disable-blobs --disable-guest-agent" | ||
| 8 | |||
| 9 | PACKAGECONFIG ??= "pie" | ||
diff --git a/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx-system-native_%.bbappend b/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx-system-native_%.bbappend index 91b223b9..7c152d60 100644 --- a/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx-system-native_%.bbappend +++ b/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx-system-native_%.bbappend | |||
| @@ -1,2 +1,5 @@ | |||
| 1 | # Automatically enable pmu-rom-native for ZynqMP support, or warn the user | 1 | # Automatically enable pmu-rom-native for ZynqMP support |
| 2 | DEPENDS .= "${@' pmu-rom-native' if 'xilinx' in (d.getVar('LICENSE_FLAGS_ACCEPTED') or '').split() else ''}" | 2 | PMU_ROM_DEP[vardepsexclude] = "LICENSE_FLAGS_ACCEPTED" |
| 3 | PMU_ROM_DEP = "${@bb.utils.contains("LICENSE_FLAGS_ACCEPTED", "xilinx", " pmu-rom-native", "", d)}" | ||
| 4 | |||
| 5 | DEPENDS .= "${PMU_ROM_DEP}" | ||
diff --git a/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx-system-native_2023.2.bb b/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx-system-native_2023.2.bb new file mode 100644 index 00000000..21208f72 --- /dev/null +++ b/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx-system-native_2023.2.bb | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | require qemu-system-native-alt.inc | ||
| 2 | require qemu-xilinx-2023.2.inc | ||
| 3 | require qemu-xilinx-native-7.1.inc | ||
| 4 | |||
| 5 | PROVIDES = "qemu-system-native" | ||
| 6 | |||
| 7 | EXTRA_OECONF:append = " --target-list=${@get_qemu_system_target_list(d)}" | ||
| 8 | |||
| 9 | PACKAGECONFIG ??= "fdt alsa kvm gcrypt pie slirp" | ||
| 10 | |||
| 11 | PACKAGECONFIG:remove = "${@'kvm' if not os.path.exists('/usr/include/linux/kvm.h') else ''}" | ||
| 12 | |||
| 13 | DEPENDS += "pixman-native qemu-xilinx-native bison-native ninja-native meson-native" | ||
| 14 | DEPENDS += "qemu-xilinx-multiarch-helper-native" | ||
| 15 | |||
| 16 | do_install:append() { | ||
| 17 | # The following is also installed by qemu-native | ||
| 18 | rm -f ${D}${datadir}/qemu/trace-events-all | ||
| 19 | rm -rf ${D}${datadir}/qemu/keymaps | ||
| 20 | rm -rf ${D}${datadir}/icons | ||
| 21 | rm -rf ${D}${includedir}/qemu-plugin.h | ||
| 22 | |||
| 23 | # Install qmp.py to be used with testimage | ||
| 24 | install -d ${D}${libdir}/qemu-python/qmp/ | ||
| 25 | install -D ${S}/python/qemu/qmp/* ${D}${libdir}/qemu-python/qmp/ | ||
| 26 | } | ||
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 6c1851ba..3b12d161 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 | |||
| @@ -5,7 +5,9 @@ require qemu-alt.inc | |||
| 5 | 5 | ||
| 6 | # Links to libmali-xlnx, so it becomes MACHINE_ARCH specific | 6 | # Links to libmali-xlnx, so it becomes MACHINE_ARCH specific |
| 7 | DEFAULT_PACKAGE_ARCH := "${PACKAGE_ARCH}" | 7 | DEFAULT_PACKAGE_ARCH := "${PACKAGE_ARCH}" |
| 8 | MALI_PACKAGE_ARCH[vardepsexclude] = "MACHINE_ARCH" | ||
| 8 | MALI_PACKAGE_ARCH = "${@'${MACHINE_ARCH}' if d.getVar('PREFERRED_PROVIDER_virtual/libgles1') == 'libmali-xlnx' else '${DEFAULT_PACKAGE_ARCH}'}" | 9 | MALI_PACKAGE_ARCH = "${@'${MACHINE_ARCH}' if d.getVar('PREFERRED_PROVIDER_virtual/libgles1') == 'libmali-xlnx' else '${DEFAULT_PACKAGE_ARCH}'}" |
| 10 | PACKAGE_ARCH[vardepsexclude] = "MALI_PACKAGE_ARCH" | ||
| 9 | PACKAGE_ARCH:class-target = "${@bb.utils.contains_any('DEPENDS', 'libepoxy virglrenderer', '${MALI_PACKAGE_ARCH}', '${DEFAULT_PACKAGE_ARCH}', d)}" | 11 | PACKAGE_ARCH:class-target = "${@bb.utils.contains_any('DEPENDS', 'libepoxy virglrenderer', '${MALI_PACKAGE_ARCH}', '${DEFAULT_PACKAGE_ARCH}', d)}" |
| 10 | 12 | ||
| 11 | BBCLASSEXTEND = "nativesdk" | 13 | BBCLASSEXTEND = "nativesdk" |
diff --git a/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx_2023.2.bb b/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx_2023.2.bb new file mode 100644 index 00000000..e79df9d7 --- /dev/null +++ b/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx_2023.2.bb | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | require qemu-xilinx-2023.2.inc | ||
| 2 | require recipes-devtools/qemu/qemu.inc | ||
| 3 | require qemu-xilinx-7.1.inc | ||
| 4 | require qemu-alt.inc | ||
| 5 | |||
| 6 | # Links to libmali-xlnx, so it becomes MACHINE_ARCH specific | ||
| 7 | DEFAULT_PACKAGE_ARCH := "${PACKAGE_ARCH}" | ||
| 8 | MALI_PACKAGE_ARCH[vardepsexclude] = "MACHINE_ARCH" | ||
| 9 | MALI_PACKAGE_ARCH = "${@'${MACHINE_ARCH}' if d.getVar('PREFERRED_PROVIDER_virtual/libgles1') == 'libmali-xlnx' else '${DEFAULT_PACKAGE_ARCH}'}" | ||
| 10 | PACKAGE_ARCH[vardepsexclude] = "MALI_PACKAGE_ARCH" | ||
| 11 | PACKAGE_ARCH:class-target = "${@bb.utils.contains_any('DEPENDS', 'libepoxy virglrenderer', '${MALI_PACKAGE_ARCH}', '${DEFAULT_PACKAGE_ARCH}', d)}" | ||
| 12 | |||
| 13 | BBCLASSEXTEND = "nativesdk" | ||
| 14 | |||
| 15 | RDEPENDS:${PN}:class-target += "bash" | ||
| 16 | |||
| 17 | PROVIDES:class-nativesdk = "nativesdk-qemu" | ||
| 18 | RPROVIDES:${PN}:class-nativesdk = "nativesdk-qemu" | ||
| 19 | |||
| 20 | EXTRA_OECONF:append:class-target = " --target-list=${@get_qemu_target_list(d)}" | ||
| 21 | EXTRA_OECONF:append:class-nativesdk = " --target-list=${@get_qemu_target_list(d)}" | ||
| 22 | EXTRA_OECONF:append:class-target:mipsarcho32 = "${@bb.utils.contains('BBEXTENDCURR', 'multilib', ' --disable-capstone', '', d)}" | ||
| 23 | |||
| 24 | do_install:append:class-nativesdk() { | ||
| 25 | ${@bb.utils.contains('PACKAGECONFIG', 'gtk+', 'make_qemu_wrapper', '', d)} | ||
| 26 | } | ||
diff --git a/meta-xilinx-core/recipes-devtools/qemu/qemu_%.bbappend b/meta-xilinx-core/recipes-devtools/qemu/qemu_%.bbappend index 83768622..04c89b83 100644 --- a/meta-xilinx-core/recipes-devtools/qemu/qemu_%.bbappend +++ b/meta-xilinx-core/recipes-devtools/qemu/qemu_%.bbappend | |||
| @@ -2,5 +2,7 @@ require qemu-alt.inc | |||
| 2 | 2 | ||
| 3 | # Links to libmali-xlnx, so it becomes MACHINE_ARCH specific | 3 | # Links to libmali-xlnx, so it becomes MACHINE_ARCH specific |
| 4 | DEFAULT_PACKAGE_ARCH := "${PACKAGE_ARCH}" | 4 | DEFAULT_PACKAGE_ARCH := "${PACKAGE_ARCH}" |
| 5 | MALI_PACKAGE_ARCH[vardepsexclude] = "MACHINE_ARCH" | ||
| 5 | MALI_PACKAGE_ARCH = "${@'${MACHINE_ARCH}' if d.getVar('PREFERRED_PROVIDER_virtual/libgles1') == 'libmali-xlnx' else '${DEFAULT_PACKAGE_ARCH}'}" | 6 | MALI_PACKAGE_ARCH = "${@'${MACHINE_ARCH}' if d.getVar('PREFERRED_PROVIDER_virtual/libgles1') == 'libmali-xlnx' else '${DEFAULT_PACKAGE_ARCH}'}" |
| 7 | PACKAGE_ARCH[vardepsexclude] = "MALI_PACKAGE_ARCH" | ||
| 6 | PACKAGE_ARCH:class-target = "${@bb.utils.contains_any('DEPENDS', 'libepoxy virglrenderer', '${MALI_PACKAGE_ARCH}', '${DEFAULT_PACKAGE_ARCH}', d)}" | 8 | PACKAGE_ARCH:class-target = "${@bb.utils.contains_any('DEPENDS', 'libepoxy virglrenderer', '${MALI_PACKAGE_ARCH}', '${DEFAULT_PACKAGE_ARCH}', d)}" |
