Skip to contentSkip to conversation

qemu: use Python 3 to build

PATCH New Ross Burton 1 participant 1 message Jul 11, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qemu: use Python 3 to build

As part of the mission to remove the use of Python 2, explicitly use Python 3 when building qemu.

---
 meta/recipes-devtools/qemu/qemu-native.inc | 1 -
 meta/recipes-devtools/qemu/qemu.inc        | 2 ++
 2 files changed, 2 insertions(+), 1 deletion(-)
meta/recipes-devtools/qemu/qemu-native.inc +0 -1
index 34ab8e64011..c04297cad04 100644
@@ -6,7 +6,6 @@ SRC_URI_append = " \
             file://0011-fix-libcap-header-issue-on-some-distro.patch \
             file://0012-cpus.c-Add-error-messages-when-qemi_cpu_kick_thread-.patch \
             "
-EXTRA_OECONF_append = " --python=python2.7"
 
 EXTRA_OEMAKE_append = " LD='${LD}' AR='${AR}' OBJCOPY='${OBJCOPY}' LDFLAGS='${LDFLAGS}'"
 
meta/recipes-devtools/qemu/qemu.inc +2 -0
index ac475a8e2ae..c1c99cd8683 100644
@@ -77,6 +77,8 @@ export LIBTOOL="${HOST_SYS}-libtool"
 
 B = "${WORKDIR}/build"
 
+EXTRA_OECONF_append = " --python=${HOSTTOOLS_DIR}/python3"
+
 do_configure_prepend_class-native() {
 	# Append build host pkg-config paths for native target since the host may provide sdl
 	BHOST_PKGCONFIG_PATH=$(PATH=/usr/bin:/bin pkg-config --variable pc_path pkg-config || echo "")
Signature · 1 line
2.20.1