summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorNathan Rossi <nathan.rossi@xilinx.com>2015-04-08 15:47:56 +1000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-05-15 18:12:41 +0100
commitec3a90915fa3f0d56a1a90cf48cf4bb2d20690bb (patch)
treed9c4f61280afbff932b6c46e6199e14610b2aed4 /meta/recipes-devtools
parent75c0781c5e862568699990d60de71ba96b1ed971 (diff)
downloadpoky-ec3a90915fa3f0d56a1a90cf48cf4bb2d20690bb.tar.gz
python: Change python 2.7.9 to use libffi from the system
Changes in python 2.7.9 from 2.7.3 cause issues when building the in tree libffi for ctypes. These issues primarily affect less common platforms (e.g. MicroBlaze) that are supported by libffi but the python overrides for the in tree libffi are not able to detect correctly. This patch changes the python 2.7.9 recipe to match how the python 3 recipe handles libffi by configuring the build to use the system libffi. This brings consistency between the libffi used for different python versions as well as with the system. (From OE-Core master rev: 4302cc20dbe0f0490a5e7b62baeb632322c40200) (From OE-Core rev: 9f7b0133b63d315703d0c44e877ae81d4a9a1692) Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/python/python_2.7.9.bb4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/recipes-devtools/python/python_2.7.9.bb b/meta/recipes-devtools/python/python_2.7.9.bb
index 0031b8f453..7918550eae 100644
--- a/meta/recipes-devtools/python/python_2.7.9.bb
+++ b/meta/recipes-devtools/python/python_2.7.9.bb
@@ -1,5 +1,5 @@
1require python.inc 1require python.inc
2DEPENDS = "python-native bzip2 db gdbm openssl readline sqlite3 zlib" 2DEPENDS = "python-native libffi bzip2 db gdbm openssl readline sqlite3 zlib"
3PR = "${INC_PR}" 3PR = "${INC_PR}"
4 4
5DISTRO_SRC_URI ?= "file://sitecustomize.py" 5DISTRO_SRC_URI ?= "file://sitecustomize.py"
@@ -32,6 +32,8 @@ S = "${WORKDIR}/Python-${PV}"
32 32
33inherit autotools multilib_header python-dir pythonnative 33inherit autotools multilib_header python-dir pythonnative
34 34
35CONFIGUREOPTS += " --with-system-ffi "
36
35# The 3 lines below are copied from the libffi recipe, ctypes ships its own copy of the libffi sources 37# The 3 lines below are copied from the libffi recipe, ctypes ships its own copy of the libffi sources
36#Somehow gcc doesn't set __SOFTFP__ when passing -mfloatabi=softp :( 38#Somehow gcc doesn't set __SOFTFP__ when passing -mfloatabi=softp :(
37TARGET_CC_ARCH_append_armv6 = " -D__SOFTFP__" 39TARGET_CC_ARCH_append_armv6 = " -D__SOFTFP__"