python: use PYTHON_FOR_BUILD, don't add HOSTPYTHON

There's already a variable for "the host python to use during the build
when cross-compiling", so there's no need to add another.

(From OE-Core rev: 1ede9777478469fbdb633782e0ffb2ae68b1a578)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ross Burton
2019-11-26 11:19:49 +00:00
committed by Richard Purdie
parent d4091bc1bd
commit dfd6cd9eb6
3 changed files with 8 additions and 43 deletions

View File

@@ -1,6 +1,6 @@
require python.inc
DEPENDS = "python-native libffi bzip2 gdbm openssl \
DEPENDS = "libffi bzip2 gdbm openssl \
readline sqlite3 zlib virtual/crypt"
DISTRO_SRC_URI ?= "file://sitecustomize.py"
@@ -48,7 +48,6 @@ PACKAGECONFIG[tk] = ",,tk"
# pgen isn't needed in the current build, but use the binary from python-native just in case.
EXTRA_OEMAKE = "PGEN=${STAGING_BINDIR_NATIVE}/python-native/pgen \
HOSTPYTHON=${STAGING_BINDIR_NATIVE}/python-native/python \
CROSSPYTHONPATH=${STAGING_LIBDIR_NATIVE}/python${PYTHON_MAJMIN}/lib-dynload/ \
STAGING_LIBDIR=${STAGING_LIBDIR} \
STAGING_INCDIR=${STAGING_INCDIR} \