Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

arm64: vdso32: Enable Clang Compilation

Enable Clang Compilation for the vdso32 library.

Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Nathan Chancellor <natechancellor@gmail.com> # build
Tested-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Nathan Chancellor <natechancellor@gmail.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Link: https://lkml.kernel.org/r/20200320145351.32292-27-vincenzo.frascino@arm.com

authored by

Vincenzo Frascino and committed by
Thomas Gleixner
a5d442f5 8c59ab83

+11
+11
arch/arm64/kernel/vdso32/Makefile
··· 10 10 11 11 # Same as cc-*option, but using CC_COMPAT instead of CC 12 12 ifeq ($(CONFIG_CC_IS_CLANG), y) 13 + COMPAT_GCC_TOOLCHAIN_DIR := $(dir $(shell which $(CROSS_COMPILE_COMPAT)elfedit)) 14 + COMPAT_GCC_TOOLCHAIN := $(realpath $(COMPAT_GCC_TOOLCHAIN_DIR)/..) 15 + 16 + CC_COMPAT_CLANG_FLAGS := --target=$(notdir $(CROSS_COMPILE_COMPAT:%-=%)) 17 + CC_COMPAT_CLANG_FLAGS += --prefix=$(COMPAT_GCC_TOOLCHAIN_DIR) 18 + CC_COMPAT_CLANG_FLAGS += -no-integrated-as -Qunused-arguments 19 + ifneq ($(COMPAT_GCC_TOOLCHAIN),) 20 + CC_COMPAT_CLANG_FLAGS += --gcc-toolchain=$(COMPAT_GCC_TOOLCHAIN) 21 + endif 22 + 13 23 CC_COMPAT ?= $(CC) 24 + CC_COMPAT += $(CC_COMPAT_CLANG_FLAGS) 14 25 else 15 26 CC_COMPAT ?= $(CROSS_COMPILE_COMPAT)gcc 16 27 endif