package/clapack: introduce BR2_PACKAGE_CLAPACK_ARCH_SUPPORTS
authorArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Sat, 24 Jul 2021 21:45:24 +0000 (23:45 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sun, 25 Jul 2021 07:39:15 +0000 (09:39 +0200)
This makes it easier for packages that depend on clapack to get
their dependencies correct.

Since the glibc dependency only exists for PowerPC, treat it as
an architecture dependency.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/clapack/Config.in

index a912eb6c915b902ce50ef6bcb221770992b2ad4d..98f94b0e609a4e52a604989ac8a7d4fd9f8d3d88 100644 (file)
@@ -1,14 +1,19 @@
+config BR2_PACKAGE_CLAPACK_ARCH_SUPPORTS
+       bool
+       default y
+       # assembler: Error: value out of range
+       depends on !BR2_m68k_cf
+       # _fpu_control is used on PowerPC, but not available with
+       # uClibc or musl
+       depends on !BR2_powerpc || BR2_TOOLCHAIN_USES_GLIBC
+
 comment "clapack needs a glibc toolchain"
        depends on BR2_powerpc
        depends on !BR2_TOOLCHAIN_USES_GLIBC
 
 config BR2_PACKAGE_CLAPACK
        bool "cblas/clapack"
-       # _fpu_control is used on PowerPC, but not available with
-       # uClibc or musl
-       depends on !BR2_powerpc || BR2_TOOLCHAIN_USES_GLIBC
-       # assembler: Error: value out of range
-       depends on !BR2_m68k_cf
+       depends on BR2_PACKAGE_CLAPACK_ARCH_SUPPORTS
        help
          BLAS and LAPACK C implementation (f2c'ed version of).