]> code.ossystems Code Review - openembedded-core.git/commitdiff
qemu: use Python 3 to build
authorRoss Burton <ross.burton@intel.com>
Thu, 11 Jul 2019 23:54:31 +0000 (00:54 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 15 Jul 2019 08:28:37 +0000 (09:28 +0100)
As part of the mission to remove the use of Python 2, explicitly use Python 3
when building qemu.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/qemu/qemu-native.inc
meta/recipes-devtools/qemu/qemu.inc

index 34ab8e640117663bb435e21f278d74fba14bdff4..c04297cad04417311ebaea167c63db249b1264f2 100644 (file)
@@ -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}'"
 
index 32379708e4b2bfac3550923bee7992d627abc225..dfe17eed8ba4c4773b9034b22029c9f4e8b0334e 100644 (file)
@@ -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 "")