openblas: SPARC support is for Sparc v9
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 13 May 2017 14:09:53 +0000 (16:09 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 13 May 2017 14:09:53 +0000 (16:09 +0200)
Makefile.sparc in the openblas source code passes -mcpu=v9, i.e it
assumes a SPARCv9 CPU. Therefore, this commit adjusts openblas
Config.in file so that SPARC is only used for BR2_sparc_v9.

Fixes:

  http://autobuild.buildroot.net/results/805087e87b8bb7d11adb49d9eca3959a37aca3a2/

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

index de26ab3b73c5b104b9563dba92116bb0d8ef96ec..bc628960f553c5b48dd6a06b6436fdbb7a7c2e1b 100644 (file)
@@ -31,7 +31,8 @@ config BR2_PACKAGE_OPENBLAS_DEFAULT_TARGET
        default "SICORTEX"     if BR2_MIPS_CPU_MIPS64
        # I6400 is built with MSA support which is only available in Codescape toolchains
        default "I6400"        if BR2_mips_i6400 && BR2_TOOLCHAIN_EXTERNAL_CODESCAPE_IMG_MIPS
-       default "SPARC"        if BR2_sparc
+       # OpenBLAS assumes SPARC=Sparc v9
+       default "SPARC"        if BR2_sparc_v9
        # Cortex-A15 always have a VFPv4
        default "CORTEXA15"    if (BR2_cortex_a15 && BR2_ARM_EABIHF)
        # Cortex-A9 have an optional VFPv3, so we need to make sure it