OpenCloudOS-Kernel/arch/mips/loongson2ef
Nathan Chancellor 13ceb48bc1 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>
2021-12-09 10:27:14 +01:00
..
common MIPS: loongson2ef: don't build serial.o unconditionally 2021-08-05 10:58:21 +02:00
fuloong-2e arch: mips: Remove CONFIG_OPROFILE support 2021-01-22 12:12:26 +05:30
lemote-2f arch: mips: Remove CONFIG_OPROFILE support 2021-01-22 12:12:26 +05:30
Kconfig mips: loongsoon2ef: remove private clk api 2020-04-16 17:34:23 +02:00
Makefile MIPS: Fork loongson2ef from loongson64 2019-11-01 14:30:52 -07:00
Platform MIPS: Loongson2ef: Remove unnecessary {as,cc}-option calls 2021-12-09 10:27:14 +01:00