Skip to content

Commit 5a9cce2

Browse files
committed
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 <[email protected]> Signed-off-by: Peter Korsgaard <[email protected]> [Retrieved from: https://git.buildroot.net/buildroot/tree/package/openblas/0001-Makefile.arm-remove-march-flags.patch] Signed-off-by: Fabrice Fontaine <[email protected]>
1 parent 6a8b426 commit 5a9cce2

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

Makefile.arm

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
11
ifeq ($(CORE), $(filter $(CORE),ARMV7 CORTEXA9 CORTEXA15))
22
ifeq ($(OSNAME), Android)
3-
CCOMMON_OPT += -mfpu=neon -march=armv7-a
4-
FCOMMON_OPT += -mfpu=neon -march=armv7-a
3+
CCOMMON_OPT += -mfpu=neon
4+
FCOMMON_OPT += -mfpu=neon
55
else
66
CCOMMON_OPT += -mfpu=vfpv3 -march=armv7-a
77
FCOMMON_OPT += -mfpu=vfpv3 -march=armv7-a
88
endif
99
endif
1010

1111
ifeq ($(CORE), ARMV6)
12-
CCOMMON_OPT += -mfpu=vfp -march=armv6
13-
FCOMMON_OPT += -mfpu=vfp -march=armv6
14-
endif
15-
16-
ifeq ($(CORE), ARMV5)
17-
CCOMMON_OPT += -march=armv5
18-
FCOMMON_OPT += -march=armv5
12+
CCOMMON_OPT += -mfpu=vfp
13+
FCOMMON_OPT += -mfpu=vfp
1914
endif

0 commit comments

Comments
 (0)