diff options
author | Sai Pavan Boddu <sai.pavan.boddu@xilinx.com> | 2021-12-13 13:50:32 -0800 |
---|---|---|
committer | Mark Hatle <mark.hatle@xilinx.com> | 2021-12-20 10:28:42 -0800 |
commit | c85f3b9fb4f52077196f1b55e1ffb53d723edb8d (patch) | |
tree | 330f15defb9deb85e5c5773ea174e22e2ae07bd4 /meta-xilinx-bsp | |
parent | 8ae23b8ab4b48755df8b3257e3a37c11c9416010 (diff) | |
download | meta-xilinx-c85f3b9fb4f52077196f1b55e1ffb53d723edb8d.tar.gz |
qemu-xilinx*: Upgrade Qemu 5.1.0 -> 6.1.0
Upgrade Qemu from 5.1.0 -> 6.1.0 for 2022 release
Signed-off-by: Sai Pavan Boddu <sai.pavan.boddu@xilinx.com>
Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com>
Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
Diffstat (limited to 'meta-xilinx-bsp')
7 files changed, 73 insertions, 126 deletions
diff --git a/meta-xilinx-bsp/recipes-devtools/qemu/files/0001-Add-enable-disable-udev.patch b/meta-xilinx-bsp/recipes-devtools/qemu/files/0001-Add-enable-disable-udev.patch deleted file mode 100644 index 32c33385..00000000 --- a/meta-xilinx-bsp/recipes-devtools/qemu/files/0001-Add-enable-disable-udev.patch +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | From 4ebe009d505bf10b0d90bad081d3fe5bd1cf7441 Mon Sep 17 00:00:00 2001 | ||
2 | From: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com> | ||
3 | Date: Thu, 6 May 2021 14:33:42 -0700 | ||
4 | Subject: [PATCH] Add enable/disable libudev | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com> | ||
8 | Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com> | ||
9 | --- | ||
10 | configure | 4 ++++ | ||
11 | 1 file changed, 4 insertions(+) | ||
12 | |||
13 | diff --git a/configure b/configure | ||
14 | index c2ef164..612f987 100755 | ||
15 | --- a/configure | ||
16 | +++ b/configure | ||
17 | @@ -1633,6 +1633,10 @@ for opt do | ||
18 | ;; | ||
19 | --gdb=*) gdb_bin="$optarg" | ||
20 | ;; | ||
21 | + --enable-libudev) libudev="yes" | ||
22 | + ;; | ||
23 | + --disable-libudev) libudev="no" | ||
24 | + ;; | ||
25 | --enable-rng-none) rng_none=yes | ||
26 | ;; | ||
27 | --disable-rng-none) rng_none=no | ||
28 | -- | ||
29 | 2.7.4 | ||
30 | |||
diff --git a/meta-xilinx-bsp/recipes-devtools/qemu/files/0010-configure-Add-pkg-config-handling-for-libgcrypt.patch b/meta-xilinx-bsp/recipes-devtools/qemu/files/0010-configure-Add-pkg-config-handling-for-libgcrypt.patch index a8ab7daa..4298964d 100644 --- a/meta-xilinx-bsp/recipes-devtools/qemu/files/0010-configure-Add-pkg-config-handling-for-libgcrypt.patch +++ b/meta-xilinx-bsp/recipes-devtools/qemu/files/0010-configure-Add-pkg-config-handling-for-libgcrypt.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 5214dd4461f2090ef0965b4d2518f49927d61cbc Mon Sep 17 00:00:00 2001 | 1 | From b51e6dd833172954c718bd600d846540eeb07220 Mon Sep 17 00:00:00 2001 |
2 | From: He Zhe <zhe.he@windriver.com> | 2 | From: He Zhe <zhe.he@windriver.com> |
3 | Date: Wed, 28 Aug 2019 19:56:28 +0800 | 3 | Date: Wed, 28 Aug 2019 19:56:28 +0800 |
4 | Subject: [Qemu-devel] [PATCH] configure: Add pkg-config handling for libgcrypt | 4 | Subject: [PATCH] configure: Add pkg-config handling for libgcrypt |
5 | 5 | ||
6 | libgcrypt may also be controlled by pkg-config, this patch adds pkg-config | 6 | libgcrypt may also be controlled by pkg-config, this patch adds pkg-config |
7 | handling for libgcrypt. | 7 | handling for libgcrypt. |
@@ -9,85 +9,21 @@ handling for libgcrypt. | |||
9 | Upstream-Status: Denied [https://lists.nongnu.org/archive/html/qemu-devel/2019-08/msg06333.html] | 9 | Upstream-Status: Denied [https://lists.nongnu.org/archive/html/qemu-devel/2019-08/msg06333.html] |
10 | 10 | ||
11 | Signed-off-by: He Zhe <zhe.he@windriver.com> | 11 | Signed-off-by: He Zhe <zhe.he@windriver.com> |
12 | --- | ||
13 | configure | 48 ++++++++++++++++++++++++++++++++++++++++-------- | ||
14 | 1 file changed, 40 insertions(+), 8 deletions(-) | ||
15 | 12 | ||
16 | diff --git a/configure b/configure | 13 | --- |
17 | index e44e454..0f362a7 100755 | 14 | meson.build | 2 +- |
18 | --- a/configure | 15 | 1 file changed, 1 insertion(+), 1 deletion(-) |
19 | +++ b/configure | ||
20 | @@ -2875,6 +2875,30 @@ has_libgcrypt() { | ||
21 | return 0 | ||
22 | } | ||
23 | |||
24 | +has_libgcrypt_pkgconfig() { | ||
25 | + if ! has $pkg_config ; then | ||
26 | + return 1 | ||
27 | + fi | ||
28 | + | ||
29 | + if ! $pkg_config --list-all | grep libgcrypt > /dev/null 2>&1 ; then | ||
30 | + return 1 | ||
31 | + fi | ||
32 | + | ||
33 | + if test -n "$cross_prefix" ; then | ||
34 | + host=$($pkg_config --variable=host libgcrypt) | ||
35 | + if test "${host%-gnu}-" != "${cross_prefix%-gnu}" ; then | ||
36 | + print_error "host($host) does not match cross_prefix($cross_prefix)" | ||
37 | + return 1 | ||
38 | + fi | ||
39 | + fi | ||
40 | + | ||
41 | + if ! $pkg_config --atleast-version=1.5.0 libgcrypt ; then | ||
42 | + print_error "libgcrypt version is $($pkg_config --modversion libgcrypt)" | ||
43 | + return 1 | ||
44 | + fi | ||
45 | + | ||
46 | + return 0 | ||
47 | +} | ||
48 | |||
49 | if test "$nettle" != "no"; then | ||
50 | pass="no" | ||
51 | @@ -2902,7 +2926,14 @@ fi | ||
52 | |||
53 | if test "$gcrypt" != "no"; then | ||
54 | pass="no" | ||
55 | - if has_libgcrypt; then | ||
56 | + if has_libgcrypt_pkgconfig; then | ||
57 | + gcrypt_cflags=$($pkg_config --cflags libgcrypt) | ||
58 | + if test "$static" = "yes" ; then | ||
59 | + gcrypt_libs=$($pkg_config --libs --static libgcrypt) | ||
60 | + else | ||
61 | + gcrypt_libs=$($pkg_config --libs libgcrypt) | ||
62 | + fi | ||
63 | + elif has_libgcrypt; then | ||
64 | gcrypt_cflags=$(libgcrypt-config --cflags) | ||
65 | gcrypt_libs=$(libgcrypt-config --libs) | ||
66 | # Debian has removed -lgpg-error from libgcrypt-config | ||
67 | @@ -2912,15 +2943,16 @@ if test "$gcrypt" != "no"; then | ||
68 | then | ||
69 | gcrypt_libs="$gcrypt_libs -lgpg-error" | ||
70 | fi | ||
71 | + fi | ||
72 | |||
73 | - # Link test to make sure the given libraries work (e.g for static). | ||
74 | - write_c_skeleton | ||
75 | - if compile_prog "" "$gcrypt_libs" ; then | ||
76 | - LIBS="$gcrypt_libs $LIBS" | ||
77 | - QEMU_CFLAGS="$QEMU_CFLAGS $gcrypt_cflags" | ||
78 | - pass="yes" | ||
79 | - fi | ||
80 | + # Link test to make sure the given libraries work (e.g for static). | ||
81 | + write_c_skeleton | ||
82 | + if compile_prog "" "$gcrypt_libs" ; then | ||
83 | + LIBS="$gcrypt_libs $LIBS" | ||
84 | + QEMU_CFLAGS="$QEMU_CFLAGS $gcrypt_cflags" | ||
85 | + pass="yes" | ||
86 | fi | ||
87 | + | ||
88 | if test "$pass" = "yes"; then | ||
89 | gcrypt="yes" | ||
90 | cat > $TMPC << EOF | ||
91 | -- | ||
92 | 2.7.4 | ||
93 | 16 | ||
17 | diff --git a/meson.build b/meson.build | ||
18 | index b3e7ec0e9..4cbe715b7 100644 | ||
19 | --- a/meson.build | ||
20 | +++ b/meson.build | ||
21 | @@ -874,7 +874,7 @@ endif | ||
22 | if not gnutls_crypto.found() | ||
23 | if (not get_option('gcrypt').auto() or have_system) and not get_option('nettle').enabled() | ||
24 | gcrypt = dependency('libgcrypt', version: '>=1.8', | ||
25 | - method: 'config-tool', | ||
26 | + method: 'pkg-config', | ||
27 | required: get_option('gcrypt'), | ||
28 | kwargs: static_kwargs) | ||
29 | # Debian has removed -lgpg-error from libgcrypt-config | ||
diff --git a/meta-xilinx-bsp/recipes-devtools/qemu/files/cross.patch b/meta-xilinx-bsp/recipes-devtools/qemu/files/cross.patch new file mode 100644 index 00000000..bdb77ec7 --- /dev/null +++ b/meta-xilinx-bsp/recipes-devtools/qemu/files/cross.patch | |||
@@ -0,0 +1,40 @@ | |||
1 | From f51ece86f84c877f255746cba22a6745f37d2b7f Mon Sep 17 00:00:00 2001 | ||
2 | From: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
3 | Date: Tue, 5 Jan 2021 23:00:14 +0000 | ||
4 | Subject: [PATCH] qemu: Upgrade 5.1.0->5.2.0 | ||
5 | |||
6 | We need to be able to trigger configure's cross code but we don't want | ||
7 | to set cross_prefix as it does other things we don't want. Patch things | ||
8 | so we can do what we need in the target config case. | ||
9 | |||
10 | Upstream-Status: Inappropriate [may be rewritten in a way upstream may accept?] | ||
11 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
12 | --- | ||
13 | configure | 4 ---- | ||
14 | 1 file changed, 4 deletions(-) | ||
15 | |||
16 | diff --git a/configure b/configure | ||
17 | index 9a79a004d..563b7827f 100755 | ||
18 | --- a/configure | ||
19 | +++ b/configure | ||
20 | @@ -5128,7 +5128,6 @@ if test "$skip_meson" = no; then | ||
21 | fi | ||
22 | echo "strip = [$(meson_quote $strip)]" >> $cross | ||
23 | echo "windres = [$(meson_quote $windres)]" >> $cross | ||
24 | - if test "$cross_compile" = "yes"; then | ||
25 | cross_arg="--cross-file config-meson.cross" | ||
26 | echo "[host_machine]" >> $cross | ||
27 | if test "$mingw32" = "yes" ; then | ||
28 | @@ -5160,9 +5159,6 @@ if test "$skip_meson" = no; then | ||
29 | else | ||
30 | echo "endian = 'little'" >> $cross | ||
31 | fi | ||
32 | - else | ||
33 | - cross_arg="--native-file config-meson.cross" | ||
34 | - fi | ||
35 | mv $cross config-meson.cross | ||
36 | |||
37 | rm -rf meson-private meson-info meson-logs | ||
38 | -- | ||
39 | 2.17.1 | ||
40 | |||
diff --git a/meta-xilinx-bsp/recipes-devtools/qemu/qemu-xilinx-native_2022.1.bb b/meta-xilinx-bsp/recipes-devtools/qemu/qemu-xilinx-native_2022.1.bb index f657186f..5e6c2d28 100644 --- a/meta-xilinx-bsp/recipes-devtools/qemu/qemu-xilinx-native_2022.1.bb +++ b/meta-xilinx-bsp/recipes-devtools/qemu/qemu-xilinx-native_2022.1.bb | |||
@@ -4,3 +4,4 @@ BPN = "qemu-xilinx" | |||
4 | EXTRA_OECONF:append = " --target-list=${@get_qemu_usermode_target_list(d)} --disable-tools --disable-blobs --disable-guest-agent" | 4 | EXTRA_OECONF:append = " --target-list=${@get_qemu_usermode_target_list(d)} --disable-tools --disable-blobs --disable-guest-agent" |
5 | 5 | ||
6 | PROVIDES = "qemu-native" | 6 | PROVIDES = "qemu-native" |
7 | PACKAGECONFIG ??= "pie" | ||
diff --git a/meta-xilinx-bsp/recipes-devtools/qemu/qemu-xilinx-system-native_2022.1.bb b/meta-xilinx-bsp/recipes-devtools/qemu/qemu-xilinx-system-native_2022.1.bb index b30777d2..f5b89f05 100644 --- a/meta-xilinx-bsp/recipes-devtools/qemu/qemu-xilinx-system-native_2022.1.bb +++ b/meta-xilinx-bsp/recipes-devtools/qemu/qemu-xilinx-system-native_2022.1.bb | |||
@@ -2,16 +2,17 @@ require qemu-xilinx-native.inc | |||
2 | 2 | ||
3 | EXTRA_OECONF:append = " --target-list=${@get_qemu_system_target_list(d)}" | 3 | EXTRA_OECONF:append = " --target-list=${@get_qemu_system_target_list(d)}" |
4 | 4 | ||
5 | PACKAGECONFIG ??= "fdt alsa kvm" | 5 | PACKAGECONFIG ??= "fdt alsa kvm pie" |
6 | 6 | ||
7 | PACKAGECONFIG:remove = "${@'kvm' if not os.path.exists('/usr/include/linux/kvm.h') else ''}" | 7 | PACKAGECONFIG:remove = "${@'kvm' if not os.path.exists('/usr/include/linux/kvm.h') else ''}" |
8 | 8 | ||
9 | DEPENDS += "pixman-native qemu-xilinx-native" | 9 | DEPENDS += "pixman-native qemu-xilinx-native bison-native ninja-native meson-native" |
10 | 10 | ||
11 | do_install:append() { | 11 | do_install:append() { |
12 | # The following is also installed by qemu-native | 12 | # The following is also installed by qemu-native |
13 | rm -f ${D}${datadir}/qemu/trace-events-all | 13 | rm -f ${D}${datadir}/qemu/trace-events-all |
14 | rm -rf ${D}${datadir}/qemu/keymaps | 14 | rm -rf ${D}${datadir}/qemu/keymaps |
15 | rm -rf ${D}${datadir}/icons | 15 | rm -rf ${D}${datadir}/icons |
16 | rm -rf ${D}${includedir}/qemu-plugin.h | ||
16 | } | 17 | } |
17 | 18 | ||
diff --git a/meta-xilinx-bsp/recipes-devtools/qemu/qemu-xilinx.inc b/meta-xilinx-bsp/recipes-devtools/qemu/qemu-xilinx.inc index e1ba96e9..d268f3e7 100644 --- a/meta-xilinx-bsp/recipes-devtools/qemu/qemu-xilinx.inc +++ b/meta-xilinx-bsp/recipes-devtools/qemu/qemu-xilinx.inc | |||
@@ -8,11 +8,11 @@ LIC_FILES_CHKSUM = " \ | |||
8 | file://COPYING;md5=441c28d2cf86e15a37fa47e15a72fbac \ | 8 | file://COPYING;md5=441c28d2cf86e15a37fa47e15a72fbac \ |
9 | file://COPYING.LIB;endline=24;md5=8c5efda6cf1e1b03dcfd0e6c0d271c7f \ | 9 | file://COPYING.LIB;endline=24;md5=8c5efda6cf1e1b03dcfd0e6c0d271c7f \ |
10 | " | 10 | " |
11 | DEPENDS = "glib-2.0 zlib pixman" | 11 | DEPENDS = "glib-2.0 zlib pixman bison-native ninja-native meson-native" |
12 | 12 | ||
13 | XILINX_QEMU_VERSION ?= "v5.1.0" | 13 | XILINX_QEMU_VERSION ?= "v6.1.0" |
14 | BRANCH ?= "master" | 14 | BRANCH ?= "master" |
15 | SRCREV = "303b509ec23138c43be8a3712068347210df67fd" | 15 | SRCREV = "8dd1b8cabff3e3e5b965d7a60472278ca4e27ceb" |
16 | 16 | ||
17 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" | 17 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" |
18 | 18 | ||
@@ -22,25 +22,23 @@ REPO ?= "gitsm://github.com/Xilinx/qemu.git;protocol=https" | |||
22 | BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" | 22 | BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" |
23 | SRC_URI = "${REPO};${BRANCHARG}" | 23 | SRC_URI = "${REPO};${BRANCHARG}" |
24 | 24 | ||
25 | SRC_URI:append = " file://0010-configure-Add-pkg-config-handling-for-libgcrypt.patch \ | 25 | SRC_URI:append = " file://0010-configure-Add-pkg-config-handling-for-libgcrypt.patch" |
26 | file://0001-Add-enable-disable-udev.patch \ | ||
27 | " | ||
28 | SRC_URI:remove:class-target = " file://cross.patch" | ||
29 | SRC_URI:remove:class-nativesdk = " file://cross.patch" | ||
30 | 26 | ||
31 | S = "${WORKDIR}/git" | 27 | S = "${WORKDIR}/git" |
32 | 28 | ||
33 | # Disable KVM completely | 29 | # Disable KVM completely |
34 | PACKAGECONFIG:remove = "kvm" | 30 | PACKAGECONFIG:remove = "kvm" |
35 | PACKAGECONFIG:append = " fdt gcrypt" | 31 | PACKAGECONFIG:append = " fdt sdl gcrypt pie" |
32 | |||
33 | PACKAGECONFIG[gcrypt] = "--enable-gcrypt,--disable-gcrypt,libgcrypt," | ||
34 | PACKAGECONFIG[sdl] = "--enable-sdl,--disable-sdl,libsdl2" | ||
35 | PACKAGECONFIG[pie] = "--enable-pie,--disable-pie,," | ||
36 | 36 | ||
37 | DISABLE_STATIC:pn-${PN} = "" | 37 | DISABLE_STATIC:pn-${PN} = "" |
38 | EXTRA_OECONF:remove = " --with-git=/bin/false --with-git-submodules=ignore" | ||
38 | 39 | ||
39 | PTEST_ENABLED = "" | 40 | PTEST_ENABLED = "" |
40 | 41 | ||
41 | EXTRA_OECONF:append = " --with-git=/bin/false --disable-git-update" | ||
42 | EXTRA_OECONF:remove = " --with-suffix=${BPN} --with-git-submodules=ignore --meson=meson" | ||
43 | |||
44 | do_install:append() { | 42 | do_install:append() { |
45 | # Prevent QA warnings about installed ${localstatedir}/run | 43 | # Prevent QA warnings about installed ${localstatedir}/run |
46 | if [ -d ${D}${localstatedir}/run ]; then rmdir ${D}${localstatedir}/run; fi | 44 | if [ -d ${D}${localstatedir}/run ]; then rmdir ${D}${localstatedir}/run; fi |
diff --git a/meta-xilinx-bsp/recipes-devtools/qemu/qemu-xilinx_2022.1.bb b/meta-xilinx-bsp/recipes-devtools/qemu/qemu-xilinx_2022.1.bb index 5189595a..4983b4df 100644 --- a/meta-xilinx-bsp/recipes-devtools/qemu/qemu-xilinx_2022.1.bb +++ b/meta-xilinx-bsp/recipes-devtools/qemu/qemu-xilinx_2022.1.bb | |||
@@ -10,6 +10,7 @@ RPROVIDES:${PN}:class-nativesdk = "nativesdk-qemu" | |||
10 | 10 | ||
11 | EXTRA_OECONF:append:class-target = " --target-list=${@get_qemu_target_list(d)}" | 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)}" | 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)}" | ||
13 | 14 | ||
14 | do_install:append:class-nativesdk() { | 15 | do_install:append:class-nativesdk() { |
15 | ${@bb.utils.contains('PACKAGECONFIG', 'gtk+', 'make_qemu_wrapper', '', d)} | 16 | ${@bb.utils.contains('PACKAGECONFIG', 'gtk+', 'make_qemu_wrapper', '', d)} |