Skip to content

Commit 1d59822

Browse files
FlyGoattsbogend
authored andcommitted
MIPS: Remove cc-option checks for -march=octeon
Nowadays our minimal supported GCC/Clang all support -march=octeon. Remove cc-option checks to simplify code. Signed-off-by: Jiaxun Yang <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent 18ca63a commit 1d59822

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

arch/mips/Makefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,7 @@ cflags-$(CONFIG_CPU_SB1) += $(call cc-option,-mno-mdmx)
174174
cflags-$(CONFIG_CPU_SB1) += $(call cc-option,-mno-mips3d)
175175
cflags-$(CONFIG_CPU_R10000) += $(call cc-option,-march=r10000,-march=r8000) \
176176
-Wa,--trap
177-
cflags-$(CONFIG_CPU_CAVIUM_OCTEON) += $(call cc-option,-march=octeon) -Wa,--trap
178-
ifeq (,$(findstring march=octeon, $(cflags-$(CONFIG_CPU_CAVIUM_OCTEON))))
179-
cflags-$(CONFIG_CPU_CAVIUM_OCTEON) += -Wa,-march=octeon
180-
endif
177+
cflags-$(CONFIG_CPU_CAVIUM_OCTEON) += -march=octeon -Wa,--trap
181178
cflags-$(CONFIG_CAVIUM_CN63XXP1) += -Wa,-mfix-cn63xxp1
182179
cflags-$(CONFIG_CPU_BMIPS) += -march=mips32 -Wa,-mips32 -Wa,--trap
183180

0 commit comments

Comments
 (0)