MIPS: Loongson2ef: Remove unnecessary {as,cc}-option calls
authorNathan Chancellor <nathan@kernel.org>
Tue, 7 Dec 2021 17:59:51 +0000 (10:59 -0700)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Thu, 9 Dec 2021 09:27:14 +0000 (10:27 +0100)
commit13ceb48bc19c563e05f407e663aaa4105fdfd408
treeaeb6a656aca197e07d9d9a269d681ea9e28700a6
parent97ad1d89624df8f3f8f035ff3cdf24bbd9c6d7b1
MIPS: Loongson2ef: Remove unnecessary {as,cc}-option calls

When building with LLVM's integrated assembler, the build errors because
it does not implement -mfix-loongson2f-{jump,nop}:

arch/mips/loongson2ef/Platform:36: *** only binutils >= 2.20.2 have needed option -mfix-loongson2f-nop.  Stop.

The error is a little misleading because binutils are not being used in
this case.

To clear this up, remove the as-option calls because binutils 2.23 is
the minimum supported version for building the kernel. At the same time,
remove the cc-option calls for the '-march=' flags, as GCC 5.1.0 is the
minimum supported version.

This change will not fix the LLVM build for CONFIG_CPU_LOONGSON2{E,F},
as it does not implement the loongson2{e,f} march arguments (nor r4600,
so it will error prior to this change) nor the assembler flags mentioned
above but it will make the errors more obvious.

Link: https://github.com/ClangBuiltLinux/linux/issues/1529
Reported-by: Ryutaroh Matsumoto <ryutaroh@ict.e.titech.ac.jp>
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/loongson2ef/Platform