summaryrefslogtreecommitdiff
path: root/arch/mips/Makefile
diff options
context:
space:
mode:
authorJiaxun Yang <jiaxun.yang@flygoat.com>2024-02-02 21:21:40 +0300
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2024-02-23 12:13:47 +0300
commit18ca63a2e23c5e170d2d7552b64b1f5ad019cd9b (patch)
tree6412e6f69e15203a1a44b573cda2a09bcb1c8e3d /arch/mips/Makefile
parent3c35da51f77e45f345b229df4b3adebad82ce4ef (diff)
downloadlinux-18ca63a2e23c5e170d2d7552b64b1f5ad019cd9b.tar.xz
MIPS: Probe toolchain support of -msym32
msym32 is not supported by LLVM toolchain. Workaround by probe toolchain support of msym32 for KBUILD_SYM32 feature. Link: https://github.com/ClangBuiltLinux/linux/issues/1544 Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/Makefile')
-rw-r--r--arch/mips/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index f49807e1f19b..0888074f4dfe 100644
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -299,7 +299,7 @@ drivers-$(CONFIG_PCI) += arch/mips/pci/
ifdef CONFIG_64BIT
ifndef KBUILD_SYM32
ifeq ($(shell expr $(load-y) \< 0xffffffff80000000), 0)
- KBUILD_SYM32 = y
+ KBUILD_SYM32 = $(call cc-option-yn, -msym32)
endif
endif