diff options
author | Ross Burton <ross.burton@intel.com> | 2019-11-26 09:04:55 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-11-29 17:43:40 +0000 |
commit | e41dac1a8e5186972f892a91cef396a02247faaa (patch) | |
tree | 439ff7e7620050e930f7f7afe748c2489c81d2b5 /meta/recipes-devtools/python/python_2.7.17.bb | |
parent | 274164d679830be0bb89498620b83ff041aa482e (diff) | |
download | poky-e41dac1a8e5186972f892a91cef396a02247faaa.tar.gz |
python: no need to add HOSTPGEN
There's no need to patch in HOSTPGEN when we can just override PGEN directly.
(From OE-Core rev: d274a3d3bd90d8726752c3a18bc15fdf6bc2f37d)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python_2.7.17.bb')
-rw-r--r-- | meta/recipes-devtools/python/python_2.7.17.bb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/meta/recipes-devtools/python/python_2.7.17.bb b/meta/recipes-devtools/python/python_2.7.17.bb index 5b856a5097..6199a5da76 100644 --- a/meta/recipes-devtools/python/python_2.7.17.bb +++ b/meta/recipes-devtools/python/python_2.7.17.bb | |||
@@ -44,6 +44,9 @@ PACKAGECONFIG ??= "bdb" | |||
44 | PACKAGECONFIG[bdb] = ",,db" | 44 | PACKAGECONFIG[bdb] = ",,db" |
45 | PACKAGECONFIG[tk] = ",,tk" | 45 | PACKAGECONFIG[tk] = ",,tk" |
46 | 46 | ||
47 | # pgen isn't needed in the current build, but use the binary from python-native just in case. | ||
48 | EXTRA_OEMAKE = "PGEN=${STAGING_BINDIR_NATIVE}/python-native/pgen" | ||
49 | |||
47 | do_configure_append() { | 50 | do_configure_append() { |
48 | rm -f ${S}/Makefile.orig | 51 | rm -f ${S}/Makefile.orig |
49 | autoreconf -Wcross --verbose --install --force --exclude=autopoint ../Python-${PV}/Modules/_ctypes/libffi | 52 | autoreconf -Wcross --verbose --install --force --exclude=autopoint ../Python-${PV}/Modules/_ctypes/libffi |
@@ -82,7 +85,7 @@ do_compile() { | |||
82 | export CROSS_COMPILE="${TARGET_PREFIX}" | 85 | export CROSS_COMPILE="${TARGET_PREFIX}" |
83 | export PYTHONBUILDDIR="${B}" | 86 | export PYTHONBUILDDIR="${B}" |
84 | 87 | ||
85 | oe_runmake HOSTPGEN=${STAGING_BINDIR_NATIVE}/python-native/pgen \ | 88 | oe_runmake \ |
86 | HOSTPYTHON=${STAGING_BINDIR_NATIVE}/python-native/python \ | 89 | HOSTPYTHON=${STAGING_BINDIR_NATIVE}/python-native/python \ |
87 | STAGING_LIBDIR=${STAGING_LIBDIR} \ | 90 | STAGING_LIBDIR=${STAGING_LIBDIR} \ |
88 | STAGING_INCDIR=${STAGING_INCDIR} \ | 91 | STAGING_INCDIR=${STAGING_INCDIR} \ |
@@ -100,7 +103,7 @@ do_install() { | |||
100 | 103 | ||
101 | # After swizzling the makefile, we need to run the build again. | 104 | # After swizzling the makefile, we need to run the build again. |
102 | # install can race with the build so we have to run this first, then install | 105 | # install can race with the build so we have to run this first, then install |
103 | oe_runmake HOSTPGEN=${STAGING_BINDIR_NATIVE}/python-native/pgen \ | 106 | oe_runmake \ |
104 | HOSTPYTHON=${STAGING_BINDIR_NATIVE}/python-native/python \ | 107 | HOSTPYTHON=${STAGING_BINDIR_NATIVE}/python-native/python \ |
105 | CROSSPYTHONPATH=${STAGING_LIBDIR_NATIVE}/python${PYTHON_MAJMIN}/lib-dynload/ \ | 108 | CROSSPYTHONPATH=${STAGING_LIBDIR_NATIVE}/python${PYTHON_MAJMIN}/lib-dynload/ \ |
106 | STAGING_LIBDIR=${STAGING_LIBDIR} \ | 109 | STAGING_LIBDIR=${STAGING_LIBDIR} \ |
@@ -108,7 +111,7 @@ do_install() { | |||
108 | STAGING_BASELIBDIR=${STAGING_BASELIBDIR} \ | 111 | STAGING_BASELIBDIR=${STAGING_BASELIBDIR} \ |
109 | DESTDIR=${D} LIBDIR=${libdir} | 112 | DESTDIR=${D} LIBDIR=${libdir} |
110 | 113 | ||
111 | oe_runmake HOSTPGEN=${STAGING_BINDIR_NATIVE}/python-native/pgen \ | 114 | oe_runmake \ |
112 | HOSTPYTHON=${STAGING_BINDIR_NATIVE}/python-native/python \ | 115 | HOSTPYTHON=${STAGING_BINDIR_NATIVE}/python-native/python \ |
113 | CROSSPYTHONPATH=${STAGING_LIBDIR_NATIVE}/python${PYTHON_MAJMIN}/lib-dynload/ \ | 116 | CROSSPYTHONPATH=${STAGING_LIBDIR_NATIVE}/python${PYTHON_MAJMIN}/lib-dynload/ \ |
114 | STAGING_LIBDIR=${STAGING_LIBDIR} \ | 117 | STAGING_LIBDIR=${STAGING_LIBDIR} \ |