2017-06-30 15:13:13 +08:00
|
|
|
ifeq ($(CORE), $(filter $(CORE),ARMV7 CORTEXA9 CORTEXA15))
|
2015-05-21 10:57:27 +08:00
|
|
|
ifeq ($(OSNAME), Android)
|
2020-02-17 00:32:13 +08:00
|
|
|
CCOMMON_OPT += -mfpu=neon -march=armv7-a
|
|
|
|
|
FCOMMON_OPT += -mfpu=neon -march=armv7-a
|
2015-05-21 10:57:27 +08:00
|
|
|
else
|
2015-09-26 22:10:18 +08:00
|
|
|
CCOMMON_OPT += -mfpu=vfpv3 -march=armv7-a
|
|
|
|
|
FCOMMON_OPT += -mfpu=vfpv3 -march=armv7-a
|
2015-01-12 16:55:29 +08:00
|
|
|
endif
|
2015-05-21 10:57:27 +08:00
|
|
|
endif
|
2013-10-17 01:04:42 +08:00
|
|
|
|
2013-11-22 03:18:51 +08:00
|
|
|
ifeq ($(CORE), ARMV6)
|
Makefile.arm: remove -march flags
The provided -march flags, especially for ARMv5 and ARMv6 may not
necessarily match the needed ones: for ARMv5, it might be armv5,
armv5te, armv5t, etc. If the wrong one is used, the incorrect toolchain
sysroot can be used in a multilib toolchain.
Therefore, let the user building OpenBLAS pass the appropriate -march
flag.
The other flags, such as -mfpu=vfp or -mfloat-abi=hard are kept, as they
are actually required for the build to proceed (OpenBLAS uses VFP
instructions, and assume an EABIhf ABI).
[Peter: update for v0.2.20]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
[Retrieved from:
https://git.buildroot.net/buildroot/tree/package/openblas/0001-Makefile.arm-remove-march-flags.patch]
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2019-05-06 00:37:28 +08:00
|
|
|
CCOMMON_OPT += -mfpu=vfp
|
|
|
|
|
FCOMMON_OPT += -mfpu=vfp
|
2014-05-13 23:25:19 +08:00
|
|
|
endif
|