diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-10-30 09:26:34 -0400 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-11-02 09:49:01 -0400 |
commit | 995167420797c000bff1f0787ab2390ffa1a9784 (patch) | |
tree | 87f32e8f182cbbb354ff1fb91ec439fe0d578e03 /Makefile | |
parent | 076f421da5d4594d0a3e60c032ccf02ba55e868a (diff) |
kbuild: remove cc-name variable
There is one more user of $(cc-name) in the top Makefile. It is supposed
to detect Clang before invoking Kconfig, so it should still be there
in the $(shell ...) form. All the other users of $(cc-name) have been
replaced with $(CONFIG_CC_IS_CLANG). Hence, scripts/Kbuild.include does
not need to define cc-name any more.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -485,7 +485,7 @@ ifneq ($(KBUILD_SRC),) | |||
485 | $(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkmakefile $(srctree) | 485 | $(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkmakefile $(srctree) |
486 | endif | 486 | endif |
487 | 487 | ||
488 | ifeq ($(cc-name),clang) | 488 | ifneq ($(shell $(CC) --version 2>&1 | head -n 1 | grep clang),) |
489 | ifneq ($(CROSS_COMPILE),) | 489 | ifneq ($(CROSS_COMPILE),) |
490 | CLANG_TARGET := --target=$(notdir $(CROSS_COMPILE:%-=%)) | 490 | CLANG_TARGET := --target=$(notdir $(CROSS_COMPILE:%-=%)) |
491 | GCC_TOOLCHAIN_DIR := $(dir $(shell which $(LD))) | 491 | GCC_TOOLCHAIN_DIR := $(dir $(shell which $(LD))) |