Skip to contentSkip to conversation

arm64: vdso32: make vdso32 install conditional

PATCH Applied Frank van der Linden 2 participants 2 messages Aug 27, 2020 – Aug 28, 2020 arm64

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: vdso32: make vdso32 install conditional

vdso32 should only be installed if CONFIG_COMPAT_VDSO is enabled, since it's not even supposed to be compiled otherwise, and arm64 builds without a 32bit crosscompiler will fail.

Fixes 8d75785a8142 ("ARM64: vdso32: Install vdso32 from vdso_install")
---
 arch/arm64/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm64/Makefile +2 -1
index b45f0124cc16..100abbb19e0b 100644
@@ -165,7 +165,8 @@ zinstall install:
 PHONY += vdso_install
 vdso_install:
 	$(Q)$(MAKE) $(build)=arch/arm64/kernel/vdso $@
-	$(Q)$(MAKE) $(build)=arch/arm64/kernel/vdso32 $@
+	$(if $(CONFIG_COMPAT_VDSO),$(Q)$(MAKE) \
+		$(build)=arch/arm64/kernel/vdso32 $@)
 
 # We use MRPROPER_FILES and CLEAN_FILES now
 archclean:
Signature · 1 line
2.16.6
maintainer Applied
#1 lore raw
Quoted 3 lines · Frank van der Linden

vdso32 should only be installed if CONFIG_COMPAT_VDSO is enabled, since it's not even supposed to be compiled otherwise, and arm64 builds without a 32bit crosscompiler will fail.

Applied to arm64 (for-next/fixes), thanks!

[1/1] arm64: vdso32: make vdso32 install conditional

      https://git.kernel.org/arm64/c/5d28ba5f8a0c
Signature · 1 line
Catalin