2018-10-24 04:23:03 +01:00
|
|
|
diff --git a/Makefile b/Makefile
|
|
|
|
index 863f58503bee..b778d5023208 100644
|
|
|
|
--- a/Makefile
|
|
|
|
+++ b/Makefile
|
|
|
|
@@ -501,11 +501,9 @@ KBUILD_CFLAGS += $(call cc-option,-fno-PIE)
|
|
|
|
KBUILD_AFLAGS += $(call cc-option,-fno-PIE)
|
|
|
|
|
|
|
|
# check for 'asm goto'
|
|
|
|
-ifeq ($(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC) $(KBUILD_CFLAGS)), y)
|
|
|
|
CC_HAVE_ASM_GOTO := 1
|
|
|
|
KBUILD_CFLAGS += -DCC_HAVE_ASM_GOTO
|
|
|
|
KBUILD_AFLAGS += -DCC_HAVE_ASM_GOTO
|
|
|
|
-endif
|
|
|
|
|
|
|
|
# The expansion should be delayed until arch/$(SRCARCH)/Makefile is included.
|
|
|
|
# Some architectures define CROSS_COMPILE in arch/$(SRCARCH)/Makefile.
|
2018-01-26 22:40:40 +00:00
|
|
|
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include
|
|
|
|
index 065324a8046f..d09c67194549 100644
|
|
|
|
--- a/scripts/Kbuild.include
|
|
|
|
+++ b/scripts/Kbuild.include
|
|
|
|
@@ -216,11 +216,8 @@ cc-disable-warning = $(call try-run-cached,\
|
|
|
|
cc-name = $(call shell-cached,$(CC) -v 2>&1 | grep -q "clang version" && echo clang || echo gcc)
|
|
|
|
|
|
|
|
# cc-version
|
2018-10-24 04:23:03 +01:00
|
|
|
-cc-version = $(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-version.sh $(CC))
|
2018-01-26 22:40:40 +00:00
|
|
|
|
|
|
|
# cc-fullversion
|
2018-10-24 04:23:03 +01:00
|
|
|
-cc-fullversion = $(shell $(CONFIG_SHELL) \
|
2018-01-26 22:40:40 +00:00
|
|
|
- $(srctree)/scripts/gcc-version.sh -p $(CC))
|
|
|
|
|
|
|
|
# cc-ifversion
|
|
|
|
# Usage: EXTRA_CFLAGS += $(call cc-ifversion, -lt, 0402, -O1)
|