summaryrefslogtreecommitdiff
path: root/packages/python/python_2.6.1.bb
diff options
context:
space:
mode:
Diffstat (limited to 'packages/python/python_2.6.1.bb')
-rw-r--r--packages/python/python_2.6.1.bb9
1 files changed, 8 insertions, 1 deletions
diff --git a/packages/python/python_2.6.1.bb b/packages/python/python_2.6.1.bb
index c0eb596c02..57c64dfa55 100644
--- a/packages/python/python_2.6.1.bb
+++ b/packages/python/python_2.6.1.bb
@@ -1,7 +1,7 @@
require python.inc
DEPENDS = "python-native db gdbm openssl readline sqlite3 tcl tk zlib"
DEPENDS_sharprom = "python-native db readline zlib gdbm openssl"
-PR = "ml1"
+PR = "ml4"
SRC_URI = "\
http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.bz2 \
@@ -11,6 +11,8 @@ SRC_URI = "\
file://03-fix-tkinter-detection.patch;patch=1 \
file://04-default-is-optimized.patch;patch=1 \
file://05-enable-ctypes-cross-build.patch;patch=1 \
+ file://06-libffi-enable-default-mips.patch;patch=1 \
+ file://99-ignore-optimization-flag.patch;patch=1 \
\
# not yet pushed forward
# sitecustomize, sitebranding
@@ -26,6 +28,11 @@ S = "${WORKDIR}/Python-${PV}"
inherit autotools
+# The 3 lines below are copied from the libffi recipe, ctypes ships its own copy of the libffi sources
+#Somehow gcc doesn't set __SOFTFP__ when passing -mfloatabi=softp :(
+TARGET_CC_ARCH_append_armv6 = " -D__SOFTFP__"
+TARGET_CC_ARCH_append_armv7a = " -D__SOFTFP__"
+
#
# copy config.h and an appropriate Makefile for distutils.sysconfig
# which laters uses the information out of these to compile extensions