From: Gwenhael Goavec-Merou Date: Wed, 7 Oct 2015 07:43:17 +0000 (+0200) Subject: python-numpy: introduce ARCH_SUPPORTS hidden variable X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bb9014b329175b02d49db91105ba58a17b757c50;p=buildroot.git python-numpy: introduce ARCH_SUPPORTS hidden variable Some packages selects python-numpy. This package has a some CPU specific code. To simplify and avoid duplicate dependencies this patch introduce an hidden ARCH_SUPPORTS variable. [Thomas: fix the definition of the new option to make sure its value is actually 'y' when a supported architecture is used.] Signed-off-by: Gwenhael Goavec-Merou Reviewed-by: Arnout Vandecappelle (Essensium/Mind) Reviewed-by: Samuel Martin Signed-off-by: Thomas Petazzoni --- diff --git a/package/python-numpy/Config.in b/package/python-numpy/Config.in index f8170f8fd1..f7822efc79 100644 --- a/package/python-numpy/Config.in +++ b/package/python-numpy/Config.in @@ -1,9 +1,13 @@ -config BR2_PACKAGE_PYTHON_NUMPY - bool "python-numpy" +config BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS + bool # Numpy has some CPU specific code - depends on BR2_aarch64 || BR2_arm || BR2_armeb || BR2_i386 \ + default y if BR2_aarch64 || BR2_arm || BR2_armeb || BR2_i386 \ || BR2_mips || BR2_mipsel || BR2_powerpc || BR2_powerpc64 \ || BR2_sh || BR2_x86_64 + +config BR2_PACKAGE_PYTHON_NUMPY + bool "python-numpy" + depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS help NumPy is the fundamental package for scientific computing with Python.