1 config BR2_PACKAGE_OPENBLAS_DEFAULT_TARGET
3 default "P2" if BR2_x86_pentium2
4 default "KATMAI" if BR2_x86_pentium3
5 default "NORTHWOOD" if BR2_x86_pentium4
6 default "PRESCOTT" if BR2_x86_prescott
7 default "BANIAS" if BR2_x86_pentium_m
8 default "CORE2" if BR2_x86_core2
9 default "NEHALEM" if BR2_x86_corei7
10 default "SANDYBRIDGE" if BR2_x86_corei7_avx
11 default "HASWELL" if BR2_x86_core_avx2
12 default "ATOM" if BR2_x86_atom
13 default "ATHLON" if BR2_x86_athlon || BR2_x86_athlon_4
14 default "OPTERON" if BR2_x86_opteron
15 default "OPTERON_SSE3" if BR2_x86_opteron_sse3
16 default "BARCELONA" if BR2_x86_barcelona
17 default "STEAMROLLER" if BR2_x86_steamroller
18 default "VIAC3" if BR2_x86_c3 || BR2_x86_c32
19 default "SSE_GENERIC" if BR2_X86_CPU_HAS_SSE
20 default "POWER4" if BR2_powerpc_power4
21 default "POWER5" if BR2_powerpc_power5
22 default "POWER6" if BR2_powerpc_power6
23 default "POWER7" if BR2_powerpc_power7
24 default "POWER8" if BR2_powerpc_power8
25 default "PPCG4" if BR2_powerpc_7400 || BR2_powerpc_7450
26 default "PPC970" if BR2_powerpc_970
27 default "PPC440" if BR2_powerpc_440
28 default "PPC440FP2" if BR2_powerpc_440fp
29 # P5600 is built with MSA support which is only available in Codescape toolchains
30 default "P5600" if BR2_mips_p5600 && BR2_TOOLCHAIN_EXTERNAL_CODESCAPE_MTI_MIPS
31 default "SICORTEX" if BR2_MIPS_CPU_MIPS64
32 # I6400 is built with MSA support which is only available in Codescape toolchains
33 default "I6400" if BR2_mips_i6400 && BR2_TOOLCHAIN_EXTERNAL_CODESCAPE_IMG_MIPS
34 default "SPARC" if BR2_sparc
35 # Cortex-A15 always have a VFPv4
36 default "CORTEXA15" if (BR2_cortex_a15 && BR2_ARM_EABIHF)
37 # Cortex-A9 have an optional VFPv3, so we need to make sure it
39 default "CORTEXA9" if (BR2_cortex_a9 && BR2_ARM_EABIHF && \
40 BR2_ARM_CPU_HAS_VFPV3)
41 default "ARMV5" if BR2_ARM_CPU_ARMV5
42 # On ARMv6, OpenBLAS assumes that a VFP is available, and
44 default "ARMV6" if (BR2_ARM_CPU_ARMV6 && BR2_ARM_EABIHF && \
45 BR2_ARM_CPU_HAS_VFPV2)
46 # On ARMv7, OpenBLAS assumes that a full VFPv3+ is available
47 # (and not the more limited D16 variant), and that EABIhf is
49 default "ARMV7" if (BR2_ARM_CPU_ARMV7A && BR2_ARM_EABIHF && \
50 BR2_ARM_CPU_HAS_VFPV3)
51 default "ARMV8" if BR2_aarch64 || BR2_aarch64_be
53 OpenBLAS target CPU. See TargetList.txt in the source tree for
54 the possible target strings. A possible value is set
55 automatically based on your Target Architecture Variant.
57 config BR2_PACKAGE_OPENBLAS_ARCH_SUPPORTS
59 default y if BR2_PACKAGE_OPENBLAS_DEFAULT_TARGET != ""
61 config BR2_PACKAGE_OPENBLAS
63 depends on BR2_PACKAGE_OPENBLAS_ARCH_SUPPORTS
65 An optimized BLAS library based on GotoBLAS2 1.13 BSD version.
67 https://www.openblas.net/
69 if BR2_PACKAGE_OPENBLAS
71 config BR2_PACKAGE_OPENBLAS_TARGET
72 string "OpenBLAS target CPU"
73 default BR2_PACKAGE_OPENBLAS_DEFAULT_TARGET