diff options
| author | Mark Hatle <mark.hatle@amd.com> | 2022-09-01 17:06:58 -0700 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@amd.com> | 2022-09-01 17:07:30 -0700 |
| commit | 91f9854aec7329863297258beabb7ae3b69a985c (patch) | |
| tree | 16e3d05e72b36100531e7b84e449af44ce669994 /meta-xilinx-core/recipes-devtools/qemu | |
| parent | b6b4360c410fe4f8b8c29d00324a59e0456c06c4 (diff) | |
| parent | 188fe2561b7dc8563f15fb06a75a8fe1bf8840cd (diff) | |
| download | meta-xilinx-91f9854aec7329863297258beabb7ae3b69a985c.tar.gz | |
Merge remote-tracking branch 'origin/rel-v2022.2' into honister
Diffstat (limited to 'meta-xilinx-core/recipes-devtools/qemu')
7 files changed, 52 insertions, 42 deletions
diff --git a/meta-xilinx-core/recipes-devtools/qemu/qemu-devicetrees.inc b/meta-xilinx-core/recipes-devtools/qemu/qemu-devicetrees.inc index 6d834297..9ee8174a 100644 --- a/meta-xilinx-core/recipes-devtools/qemu/qemu-devicetrees.inc +++ b/meta-xilinx-core/recipes-devtools/qemu/qemu-devicetrees.inc | |||
| @@ -9,9 +9,6 @@ LIC_FILES_CHKSUM = "file://Makefile;beginline=1;endline=27;md5=7348b6cbcae69912c | |||
| 9 | 9 | ||
| 10 | PV = "xilinx-${XILINX_RELEASE_VERSION}+git${SRCPV}" | 10 | PV = "xilinx-${XILINX_RELEASE_VERSION}+git${SRCPV}" |
| 11 | 11 | ||
| 12 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" | ||
| 13 | SRC_URI:append = " file://0001-Makefile-Use-python3-instead-of-python.patch" | ||
| 14 | |||
| 15 | REPO ?= "git://github.com/Xilinx/qemu-devicetrees.git;protocol=https" | 12 | REPO ?= "git://github.com/Xilinx/qemu-devicetrees.git;protocol=https" |
| 16 | 13 | ||
| 17 | BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" | 14 | BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" |
diff --git a/meta-xilinx-core/recipes-devtools/qemu/qemu-devicetrees/0001-Makefile-Use-python3-instead-of-python.patch b/meta-xilinx-core/recipes-devtools/qemu/qemu-devicetrees/0001-Makefile-Use-python3-instead-of-python.patch deleted file mode 100644 index 425145d0..00000000 --- a/meta-xilinx-core/recipes-devtools/qemu/qemu-devicetrees/0001-Makefile-Use-python3-instead-of-python.patch +++ /dev/null | |||
| @@ -1,37 +0,0 @@ | |||
| 1 | From e80324e3497e5768c9fdbde3c0660a03d0dcc3ee Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com> | ||
| 3 | Date: Mon, 8 Feb 2021 16:32:34 -0800 | ||
| 4 | Subject: [PATCH] Makefile:Use python3 instead of python | ||
| 5 | |||
| 6 | Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com> | ||
| 7 | --- | ||
| 8 | Makefile | 12 ++++++------ | ||
| 9 | 1 file changed, 6 insertions(+), 6 deletions(-) | ||
| 10 | |||
| 11 | diff --git a/Makefile b/Makefile | ||
| 12 | index a110483..fd8868c 100644 | ||
| 13 | --- a/Makefile | ||
| 14 | +++ b/Makefile | ||
| 15 | @@ -91,13 +91,13 @@ $(LQSPI_XIP_OUTDIR)/%.dts: %.dts $(DTSI_FILES) $(HEADER_FILES) | ||
| 16 | # TODO: Add support for auto-generated dependency list | ||
| 17 | versal-pmc-npi.dtsi: versal-pmc-npi-nxx.dtsi versal-h10-pmc-npi-nxx.dtsi | ||
| 18 | versal-pmc-npi-nxx.dtsi: Makefile | ||
| 19 | - @python -c 'for a in range(0, 54): print("\tGEN_NMU(" + str(a) + ")")' > $@ | ||
| 20 | - @python -c 'for a in range(0, 50): print("\tGEN_NSU(" + str(a) + ")")' >> $@ | ||
| 21 | - @python -c 'for a in range(0, 146): print("\tGEN_NPS(" + str(a) + ")")' >> $@ | ||
| 22 | + @python3 -c 'for a in range(0, 54): print("\tGEN_NMU(" + str(a) + ")")' > $@ | ||
| 23 | + @python3 -c 'for a in range(0, 50): print("\tGEN_NSU(" + str(a) + ")")' >> $@ | ||
| 24 | + @python3 -c 'for a in range(0, 146): print("\tGEN_NPS(" + str(a) + ")")' >> $@ | ||
| 25 | versal-h10-pmc-npi-nxx.dtsi: Makefile | ||
| 26 | - @python -c 'for a in range(0, 37): print("\tGEN_NMU(" + str(a) + ")")' > $@ | ||
| 27 | - @python -c 'for a in range(0, 33): print("\tGEN_NSU(" + str(a) + ")")' >> $@ | ||
| 28 | - @python -c 'for a in range(0, 135): print("\tGEN_NPS(" + str(a) + ")")' >> $@ | ||
| 29 | + @python3 -c 'for a in range(0, 37): print("\tGEN_NMU(" + str(a) + ")")' > $@ | ||
| 30 | + @python3 -c 'for a in range(0, 33): print("\tGEN_NSU(" + str(a) + ")")' >> $@ | ||
| 31 | + @python3 -c 'for a in range(0, 135): print("\tGEN_NPS(" + str(a) + ")")' >> $@ | ||
| 32 | |||
| 33 | clean: | ||
| 34 | $(RM) versal-pmc-npi-nxx.dtsi | ||
| 35 | -- | ||
| 36 | 2.7.4 | ||
| 37 | |||
diff --git a/meta-xilinx-core/recipes-devtools/qemu/qemu-devicetrees_2022.2.bb b/meta-xilinx-core/recipes-devtools/qemu/qemu-devicetrees_2022.2.bb new file mode 100644 index 00000000..43be5437 --- /dev/null +++ b/meta-xilinx-core/recipes-devtools/qemu/qemu-devicetrees_2022.2.bb | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | |||
| 2 | require qemu-devicetrees.inc | ||
| 3 | |||
| 4 | BRANCH ?= "master" | ||
| 5 | SRCREV ?= "aec07daf197f1853ee1a1d905e1eff4fe160f408" | ||
| 6 | |||
diff --git a/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx-native_2022.2.bb b/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx-native_2022.2.bb new file mode 100644 index 00000000..5e6c2d28 --- /dev/null +++ b/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx-native_2022.2.bb | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | require qemu-xilinx-native.inc | ||
| 2 | BPN = "qemu-xilinx" | ||
| 3 | |||
| 4 | EXTRA_OECONF:append = " --target-list=${@get_qemu_usermode_target_list(d)} --disable-tools --disable-blobs --disable-guest-agent" | ||
| 5 | |||
| 6 | PROVIDES = "qemu-native" | ||
| 7 | PACKAGECONFIG ??= "pie" | ||
diff --git a/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx-system-native_2022.2.bb b/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx-system-native_2022.2.bb new file mode 100644 index 00000000..f177872a --- /dev/null +++ b/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx-system-native_2022.2.bb | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | require qemu-xilinx-native.inc | ||
| 2 | |||
| 3 | PROVIDES = "qemu-system-native" | ||
| 4 | |||
| 5 | EXTRA_OECONF:append = " --target-list=${@get_qemu_system_target_list(d)}" | ||
| 6 | |||
| 7 | PACKAGECONFIG ??= "fdt alsa kvm pie" | ||
| 8 | |||
| 9 | PACKAGECONFIG:remove = "${@'kvm' if not os.path.exists('/usr/include/linux/kvm.h') else ''}" | ||
| 10 | |||
| 11 | DEPENDS += "pixman-native qemu-xilinx-native bison-native ninja-native meson-native" | ||
| 12 | |||
| 13 | do_install:append() { | ||
| 14 | # The following is also installed by qemu-native | ||
| 15 | rm -f ${D}${datadir}/qemu/trace-events-all | ||
| 16 | rm -rf ${D}${datadir}/qemu/keymaps | ||
| 17 | rm -rf ${D}${datadir}/icons | ||
| 18 | rm -rf ${D}${includedir}/qemu-plugin.h | ||
| 19 | } | ||
| 20 | |||
diff --git a/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx.inc b/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx.inc index c54e0e1a..60bc2ff3 100644 --- a/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx.inc +++ b/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx.inc | |||
| @@ -11,8 +11,8 @@ LIC_FILES_CHKSUM = " \ | |||
| 11 | DEPENDS = "glib-2.0 zlib pixman bison-native ninja-native meson-native" | 11 | DEPENDS = "glib-2.0 zlib pixman bison-native ninja-native meson-native" |
| 12 | 12 | ||
| 13 | XILINX_QEMU_VERSION ?= "v6.1.0" | 13 | XILINX_QEMU_VERSION ?= "v6.1.0" |
| 14 | BRANCH ?= "xlnx_rel_v2022.1" | 14 | BRANCH ?= "master" |
| 15 | SRCREV = "52a9b22faeb149a6b17646b1f912f06ea6c269ca" | 15 | SRCREV = "de92de0a3cef8affbf256d8930817bf8765cce21" |
| 16 | 16 | ||
| 17 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" | 17 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" |
| 18 | 18 | ||
diff --git a/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx_2022.2.bb b/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx_2022.2.bb new file mode 100644 index 00000000..4983b4df --- /dev/null +++ b/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx_2022.2.bb | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | require recipes-devtools/qemu/qemu.inc | ||
| 2 | require qemu-xilinx.inc | ||
| 3 | |||
| 4 | BBCLASSEXTEND = "nativesdk" | ||
| 5 | |||
| 6 | RDEPENDS:${PN}:class-target += "bash" | ||
| 7 | |||
| 8 | PROVIDES:class-nativesdk = "nativesdk-qemu" | ||
| 9 | RPROVIDES:${PN}:class-nativesdk = "nativesdk-qemu" | ||
| 10 | |||
| 11 | EXTRA_OECONF:append:class-target = " --target-list=${@get_qemu_target_list(d)}" | ||
| 12 | EXTRA_OECONF:append:class-nativesdk = " --target-list=${@get_qemu_target_list(d)}" | ||
| 13 | EXTRA_OECONF:append:class-target:mipsarcho32 = "${@bb.utils.contains('BBEXTENDCURR', 'multilib', ' --disable-capstone', '', d)}" | ||
| 14 | |||
| 15 | do_install:append:class-nativesdk() { | ||
| 16 | ${@bb.utils.contains('PACKAGECONFIG', 'gtk+', 'make_qemu_wrapper', '', d)} | ||
| 17 | } | ||
