mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-10 15:58:47 +00:00
15 lines
450 B
Makefile
15 lines
450 B
Makefile
|
ifneq ($(CROSS_COMPILE),)
|
||
|
CLANG_FLAGS += --target=$(notdir $(CROSS_COMPILE:%-=%))
|
||
|
endif
|
||
|
ifeq ($(LLVM_IAS),1)
|
||
|
CLANG_FLAGS += -integrated-as
|
||
|
else
|
||
|
CLANG_FLAGS += -no-integrated-as
|
||
|
GCC_TOOLCHAIN_DIR := $(dir $(shell which $(CROSS_COMPILE)elfedit))
|
||
|
CLANG_FLAGS += --prefix=$(GCC_TOOLCHAIN_DIR)$(notdir $(CROSS_COMPILE))
|
||
|
endif
|
||
|
CLANG_FLAGS += -Werror=unknown-warning-option
|
||
|
KBUILD_CFLAGS += $(CLANG_FLAGS)
|
||
|
KBUILD_AFLAGS += $(CLANG_FLAGS)
|
||
|
export CLANG_FLAGS
|