summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python_2.7.17.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/python/python_2.7.17.bb')
-rw-r--r--meta/recipes-devtools/python/python_2.7.17.bb9
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"
44PACKAGECONFIG[bdb] = ",,db" 44PACKAGECONFIG[bdb] = ",,db"
45PACKAGECONFIG[tk] = ",,tk" 45PACKAGECONFIG[tk] = ",,tk"
46 46
47# pgen isn't needed in the current build, but use the binary from python-native just in case.
48EXTRA_OEMAKE = "PGEN=${STAGING_BINDIR_NATIVE}/python-native/pgen"
49
47do_configure_append() { 50do_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} \