MIPS: Fallback CPU -march flag to ISA level if unsupported
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Fri, 2 Feb 2024 18:21:42 +0000 (18:21 +0000)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 23 Feb 2024 09:13:47 +0000 (10:13 +0100)
commitbfc0a330c1b4526b88f6f9e711484b342cb00fb5
tree57e27026bd6bd9414aa3409381c796b87f417b4e
parent1d59822a7ed152f6a253a49978890ffefa8ef40e
MIPS: Fallback CPU -march flag to ISA level if unsupported

LLVM does not implement some of -march options. However those options
are not mandatory for kernel to build for those CPUs.

Fallback -march CFLAG to ISA level if unsupported by toolchain so
we can get those kernel to build with LLVM.

Link: https://github.com/ClangBuiltLinux/linux/issues/1544
Reported-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/Makefile