summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--python/python-native-2.3.3/cross-distutils.patch8
-rw-r--r--python/python-native_2.3.3.oe2
-rw-r--r--python/python-pycodes-1.1/no-docs.patch0
-rw-r--r--python/python-pycodes_1.1.oe0
-rw-r--r--python/python_2.3.3.oe4
5 files changed, 8 insertions, 6 deletions
diff --git a/python/python-native-2.3.3/cross-distutils.patch b/python/python-native-2.3.3/cross-distutils.patch
index db09de5cb0..76ae883c1d 100644
--- a/python/python-native-2.3.3/cross-distutils.patch
+++ b/python/python-native-2.3.3/cross-distutils.patch
@@ -11,8 +11,8 @@
# These are needed in a couple of spots, so just compute them once.
-PREFIX = os.path.normpath(sys.prefix)
-EXEC_PREFIX = os.path.normpath(sys.exec_prefix)
-+PREFIX = os.path.normpath(sys.prefix).replace( "build", "target" )
-+EXEC_PREFIX = os.path.normpath(sys.exec_prefix).replace( "build", "target" )
++PREFIX = os.path.normpath(sys.prefix).replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
++EXEC_PREFIX = os.path.normpath(sys.exec_prefix).replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
# python_build: (Boolean) if true, we're either building Python or
# building an extension with an un-installed Python, so we use
@@ -22,7 +22,7 @@
config_h = 'pyconfig.h'
- return os.path.join(inc_dir, config_h)
+ print "NOTE: sysconfig.get_config_h_filename() altered for OpenEmbedded"
-+ return os.path.join(inc_dir, config_h).replace( "build", "target" )
++ return os.path.join(inc_dir, config_h).replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
def get_makefile_filename():
@@ -32,7 +32,7 @@
lib_dir = get_python_lib(plat_specific=1, standard_lib=1)
- return os.path.join(lib_dir, "config", "Makefile")
+ print "NOTE: sysconfig.get_config_h_filename() altered for OpenEmbedded"
-+ return os.path.join(lib_dir, "config", "Makefile").replace( "build", "target" )
++ return os.path.join(lib_dir, "config", "Makefile").replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
def parse_config_h(fp, g=None):
diff --git a/python/python-native_2.3.3.oe b/python/python-native_2.3.3.oe
index 5c7509aad0..a72e2996db 100644
--- a/python/python-native_2.3.3.oe
+++ b/python/python-native_2.3.3.oe
@@ -12,7 +12,7 @@ S = "${WORKDIR}/Python-${PV}"
inherit autotools native
EXTRA_OECONF = "--with-threads --with-pymalloc --with-cyclic-gc --with-prefix=${STAGING_DIR} --with-exec-prefix=${STAGING_DIR}/${BUILD_SYS}"
-
+EXTRA_OEMAKE = 'BUILD_SYS="" HOST_SYS=""'
do_configure () {
oe_runconf
}
diff --git a/python/python-pycodes-1.1/no-docs.patch b/python/python-pycodes-1.1/no-docs.patch
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/python/python-pycodes-1.1/no-docs.patch
diff --git a/python/python-pycodes_1.1.oe b/python/python-pycodes_1.1.oe
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/python/python-pycodes_1.1.oe
diff --git a/python/python_2.3.3.oe b/python/python_2.3.3.oe
index 49567ec8d0..04d703f2d0 100644
--- a/python/python_2.3.3.oe
+++ b/python/python_2.3.3.oe
@@ -36,7 +36,9 @@ do_compile_prepend() {
do_compile() {
oe_runmake HOSTPGEN=${STAGING_BINDIR}/pgen \
HOSTPYTHON=${STAGING_BINDIR}/python \
- STAGING_DIR=${STAGING_DIR}
+ STAGING_DIR=${STAGING_DIR} \
+ BUILD_SYS=${BUILD_SYS} \
+ HOST_SYS=${HOST_SYS}
}
do_stage() {