Patchwork [meta-oe,V2] python-numpy: add native support

login
register
mail settings
Submitter Ross Burton
Date Nov. 18, 2013, 3:40 p.m.
Message ID <1384789220-8422-1-git-send-email-ross.burton@intel.com>
Download mbox | patch
Permalink /patch/61913/
State Accepted, archived
Headers show

Comments

Ross Burton - Nov. 18, 2013, 3:40 p.m.
The compile hack to use a correct config.h isn't needed for native builds, so
mark it as target-specific.

Signed-off-by: Ross Burton <ross.burton@intel.com>
---
 meta-oe/recipes-devtools/python/python-numpy_1.7.0.bb |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Patch

diff --git a/meta-oe/recipes-devtools/python/python-numpy_1.7.0.bb b/meta-oe/recipes-devtools/python/python-numpy_1.7.0.bb
index e6d328f..04cb2f1 100644
--- a/meta-oe/recipes-devtools/python/python-numpy_1.7.0.bb
+++ b/meta-oe/recipes-devtools/python/python-numpy_1.7.0.bb
@@ -40,7 +40,7 @@  inherit distutils
 
 # Make the build fail and replace *config.h with proper one
 # This is a ugly, ugly hack - Koen
-do_compile_prepend() {
+do_compile_prepend_class-target() {
     BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
     ${STAGING_BINDIR_NATIVE}/python-native/python setup.py build ${DISTUTILS_BUILD_ARGS} || \
     true
@@ -72,3 +72,7 @@  RDEPENDS_${PN} = "python-unittest \
                   python-subprocess \
                   python-compression \
 "
+
+RDEPENDS_${PN}_class-native = ""
+
+BBCLASSEXTEND = "native nativesdk"