summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Martins <bgcngm@gmail.com>2023-10-20 23:29:59 +0100
committerBruno Martins <bgcngm@gmail.com>2023-10-27 15:57:43 +0100
commit18eca50308f818a5a812c7445497b35b97084cd0 (patch)
tree0eb01751a97617dec202b603900fd3ead7c6efbb
parent7c473173dd2bad7ab914693da6df3f4c236678c4 (diff)
arm64: vdso32: Allow building with LLVM integrated AS
Change-Id: I8bfc0e53b4bd347adaa298594402a2210aed3b49
-rw-r--r--arch/arm64/kernel/vdso32/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm64/kernel/vdso32/Makefile b/arch/arm64/kernel/vdso32/Makefile
index 423b3ec8d172..b8f70da2e718 100644
--- a/arch/arm64/kernel/vdso32/Makefile
+++ b/arch/arm64/kernel/vdso32/Makefile
@@ -5,7 +5,10 @@
# A mix between the arm64 and arm vDSO Makefiles.
ifeq ($(cc-name),clang)
- CC_ARM32 := $(CC) $(CLANG_TARGET_ARM32) -no-integrated-as
+ CC_ARM32 := $(CC) $(CLANG_TARGET_ARM32)
+ ifneq ($(LLVM_IAS),1)
+ CC_ARM32 += -no-integrated-as
+ endif
GCC_ARM32_TC := $(realpath $(dir $(shell which $(CROSS_COMPILE_ARM32)ld))/..)
ifneq ($(GCC_ARM32_TC),)
CC_ARM32 += --gcc-toolchain=$(GCC_ARM32_TC)