[oe-commits] [openembedded-core] 45/68: qemu-native: Point python to python2 on build host

git at git.openembedded.org git at git.openembedded.org
Thu Feb 23 20:51:16 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository openembedded-core.

commit 42c32a9c8e3ca28e553a3b95089e0d51390c1758
Author: Khem Raj <raj.khem at gmail.com>
AuthorDate: Thu Feb 16 13:19:57 2017 -0800

    qemu-native: Point python to python2 on build host
    
    On buildhosts where default python has switched to using python3
    qemu-native fails configure like this
    
    | ERROR: Cannot use 'python', Python 2.6 or later is required.
    |        Note that Python 3 or later is not yet supported.
    |        Use --python=/path/to/python to specify a supported Python.
    |
    
    we still expect build host to have python2 pre-installed
    and is always available.
    
    (From OE-Core rev: 2cac9544752775262fa87517ed49fcac2fb3a574)
    
    Signed-off-by: Khem Raj <raj.khem at gmail.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/recipes-devtools/qemu/qemu.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc
index ef5d75c..cdbb7f1 100644
--- a/meta/recipes-devtools/qemu/qemu.inc
+++ b/meta/recipes-devtools/qemu/qemu.inc
@@ -29,6 +29,7 @@ SRC_URI_append_class-native = "\
 EXTRA_OECONF += "--target-list=${@get_qemu_target_list(d)} --disable-werror  --disable-bluez --disable-libiscsi --with-system-pixman --extra-cflags='${CFLAGS}'"
 
 EXTRA_OECONF_class-nativesdk = "--target-list=${@get_qemu_target_list(d)} --disable-werror"
+EXTRA_OECONF_append_class-native = " --python=${USRBINPATH}/python2"
 
 EXTRA_OEMAKE_append_class-native = " LD='${LD}' AR='${AR}' OBJCOPY='${OBJCOPY}' LDFLAGS='${LDFLAGS}'"
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list