[OE-core] [PATCH][fido] python3-ctypes: Fix cross compilation for arm targets

Alejandro Hernandez alejandro.hernandez at linux.intel.com
Tue Jun 16 15:29:12 UTC 2015


When cross compiling for arm targets ctypes compilation fails because
it uses _sysconfigdata from the HOST, this patches makes it use the
one from TARGET fixing compilation of this module

[YOCTO #7873]

Signed-off-by: Alejandro Hernandez <alejandro.hernandez at linux.intel.com>
Signed-off-by: Jonas Göransson <jonas.goransson at qmatic.com>
---
 meta/recipes-devtools/python/python3_3.3.3.bb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/recipes-devtools/python/python3_3.3.3.bb b/meta/recipes-devtools/python/python3_3.3.3.bb
index 6147408..22ea651 100644
--- a/meta/recipes-devtools/python/python3_3.3.3.bb
+++ b/meta/recipes-devtools/python/python3_3.3.3.bb
@@ -72,6 +72,10 @@ export CROSS_COMPILE = "${TARGET_PREFIX}"
 export _PYTHON_PROJECT_BASE = "${B}"
 export _PYTHON_PROJECT_SRC = "${S}"
 
+# Fix ctypes cross compilation
+export CROSSPYTHONPATH = "${B}/build/lib.linux-${TARGET_ARCH}-${PYTHON_MAJMIN}:${S}/Lib:${S}/Lib/plat-linux"
+
+
 # No ctypes option for python 3
 PYTHONLSBOPTS = ""
 
-- 
1.8.4.5



More information about the Openembedded-core mailing list