python-numpy: disable on non-supported architectures
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 18 Jul 2014 08:00:41 +0000 (10:00 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 18 Jul 2014 08:00:41 +0000 (10:00 +0200)
The numpy/core/include/numpy/npy_cpu.h file has some
architecture-specific definitions, and not all architectures are
supported. This commit makes sure python-numpy cannot be selected on
the architectures that are not supported.

Fixes:

  http://autobuild.buildroot.org/results/327/327c85f5b1849d390fcf0727cf48e621b946571f/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/python-numpy/Config.in

index 169b91fb42754056a9c686948f04ec6850eb48d3..3145350d872ef250a3890ea3af56e0e6f700648c 100644 (file)
@@ -1,5 +1,9 @@
 config BR2_PACKAGE_PYTHON_NUMPY
        bool "python-numpy"
+       # Numpy has some CPU specific code
+       depends on BR2_aarch64 || BR2_arm || BR2_armeb || BR2_i386 \
+               || BR2_mips || BR2_mipsel || BR2_powerpc || BR2_powerpc64 \
+               || BR2_sh || BR2_sh || BR2_x86_64
        # numpy needs fenv.h. Available for all architectures in
        # glibc, but only for x86 and x86-64 in uClibc.
        depends on !BR2_TOOLCHAIN_USES_UCLIBC || BR2_i386 || BR2_x86_64