Skip to content

Commit fc17a9b

Browse files
luk1337npjohnson
authored andcommitted
ARM64: vdso32: Hardcode toolchain target
Fixes the following error when building with clang r530567: error: version 'kernel' in target triple 'arm-unknown-linux-androidkernel' is invalid Change-Id: I5a2d27bf0e8a22b2fe752c64efc0cc91c790b5f0
1 parent bcc1ca1 commit fc17a9b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/arm64/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ ifeq ($(CONFIG_COMPAT_VDSO), y)
6565
$(error CROSS_COMPILE_ARM32 not defined or empty, the compat vDSO will not be built)
6666
else ifeq ($(cc-name),clang)
6767
export CLANG_TRIPLE_ARM32 ?= $(CROSS_COMPILE_ARM32)
68-
export CLANG_TARGET_ARM32 := --target=$(notdir $(CLANG_TRIPLE_ARM32:%-=%))
68+
export CLANG_TARGET_ARM32 := --target=arm-linux-gnueabi
6969
export CONFIG_VDSO32 := y
7070
vdso32 := -DCONFIG_VDSO32=1
7171
else ifeq ($(shell which $(CROSS_COMPILE_ARM32)$(cc-name) 2> /dev/null),)

0 commit comments

Comments
 (0)