summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python3_3.3.3.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/python/python3_3.3.3.bb')
-rw-r--r--meta/recipes-devtools/python/python3_3.3.3.bb10
1 files changed, 6 insertions, 4 deletions
diff --git a/meta/recipes-devtools/python/python3_3.3.3.bb b/meta/recipes-devtools/python/python3_3.3.3.bb
index efa98c09fa..6147408937 100644
--- a/meta/recipes-devtools/python/python3_3.3.3.bb
+++ b/meta/recipes-devtools/python/python3_3.3.3.bb
@@ -39,6 +39,8 @@ SRC_URI += "\
39 file://avoid-ncursesw-include-path.patch \ 39 file://avoid-ncursesw-include-path.patch \
40 file://python3-use-CROSSPYTHONPATH-for-PYTHON_FOR_BUILD.patch \ 40 file://python3-use-CROSSPYTHONPATH-for-PYTHON_FOR_BUILD.patch \
41 file://python3-setup.py-no-host-headers-libs.patch \ 41 file://python3-setup.py-no-host-headers-libs.patch \
42 file://sysconfig.py-add-_PYTHON_PROJECT_SRC.patch \
43 file://setup.py-check-cross_compiling-when-get-FLAGS.patch \
42 " 44 "
43SRC_URI[md5sum] = "f3ebe34d4d8695bf889279b54673e10c" 45SRC_URI[md5sum] = "f3ebe34d4d8695bf889279b54673e10c"
44SRC_URI[sha256sum] = "e526e9b612f623888364d30cc9f3dfc34dcef39065c713bdbcddf47df84d8dcb" 46SRC_URI[sha256sum] = "e526e9b612f623888364d30cc9f3dfc34dcef39065c713bdbcddf47df84d8dcb"
@@ -66,6 +68,10 @@ TARGET_CC_ARCH += "-DNDEBUG -fno-inline"
66EXTRA_OEMAKE += "CROSS_COMPILE=yes" 68EXTRA_OEMAKE += "CROSS_COMPILE=yes"
67EXTRA_OECONF += "CROSSPYTHONPATH=${STAGING_LIBDIR_NATIVE}/python${PYTHON_MAJMIN}/lib-dynload/" 69EXTRA_OECONF += "CROSSPYTHONPATH=${STAGING_LIBDIR_NATIVE}/python${PYTHON_MAJMIN}/lib-dynload/"
68 70
71export CROSS_COMPILE = "${TARGET_PREFIX}"
72export _PYTHON_PROJECT_BASE = "${B}"
73export _PYTHON_PROJECT_SRC = "${S}"
74
69# No ctypes option for python 3 75# No ctypes option for python 3
70PYTHONLSBOPTS = "" 76PYTHONLSBOPTS = ""
71 77
@@ -107,8 +113,6 @@ do_compile() {
107 # then call do_install twice we get Makefile.orig == Makefile.sysroot 113 # then call do_install twice we get Makefile.orig == Makefile.sysroot
108 install -m 0644 Makefile Makefile.sysroot 114 install -m 0644 Makefile Makefile.sysroot
109 115
110 export CROSS_COMPILE="${TARGET_PREFIX}"
111 export PYTHONBUILDDIR="${B}"
112 oe_runmake HOSTPGEN=${STAGING_BINDIR_NATIVE}/python3-native/pgen \ 116 oe_runmake HOSTPGEN=${STAGING_BINDIR_NATIVE}/python3-native/pgen \
113 HOSTPYTHON=${STAGING_BINDIR_NATIVE}/python3-native/python3 \ 117 HOSTPYTHON=${STAGING_BINDIR_NATIVE}/python3-native/python3 \
114 STAGING_LIBDIR=${STAGING_LIBDIR} \ 118 STAGING_LIBDIR=${STAGING_LIBDIR} \
@@ -135,8 +139,6 @@ do_install() {
135 # go to ${D}${STAGING...}/... 139 # go to ${D}${STAGING...}/...
136 install -m 0644 Makefile.orig Makefile 140 install -m 0644 Makefile.orig Makefile
137 141
138 export CROSS_COMPILE="${TARGET_PREFIX}"
139 export PYTHONBUILDDIR="${B}"
140 install -d ${D}${libdir}/pkgconfig 142 install -d ${D}${libdir}/pkgconfig
141 install -d ${D}${libdir}/python${PYTHON_MAJMIN}/config 143 install -d ${D}${libdir}/python${PYTHON_MAJMIN}/config
142 144