aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2018-04-02 17:37:03 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2018-04-02 17:37:03 -0400
commite68b4bad71e8739d79f3c9580c719aa70c42fb96 (patch)
tree797b5b3ee7fe5255e886edf0c82b09c69f039e06 /Makefile
parent5e46caf62d8910f6999fd378b743b9c0e1b21cf9 (diff)
parentd6289f36aa7d5893d091a7a0c67eee7798719f03 (diff)
Merge branch 'x86-build-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 build updates from Ingo Molnar: "The biggest change is the forcing of asm-goto support on x86, which effectively increases the GCC minimum supported version to gcc-4.5 (on x86)" * 'x86-build-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/build: Don't pass in -D__KERNEL__ multiple times x86: Remove FAST_FEATURE_TESTS x86: Force asm-goto x86/build: Drop superfluous ALIGN from the linker script
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 363dd096e46e..23d575d1ba16 100644
--- a/Makefile
+++ b/Makefile
@@ -496,6 +496,13 @@ RETPOLINE_CFLAGS_CLANG := -mretpoline-external-thunk
496RETPOLINE_CFLAGS := $(call cc-option,$(RETPOLINE_CFLAGS_GCC),$(call cc-option,$(RETPOLINE_CFLAGS_CLANG))) 496RETPOLINE_CFLAGS := $(call cc-option,$(RETPOLINE_CFLAGS_GCC),$(call cc-option,$(RETPOLINE_CFLAGS_CLANG)))
497export RETPOLINE_CFLAGS 497export RETPOLINE_CFLAGS
498 498
499# check for 'asm goto'
500ifeq ($(call shell-cached,$(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC) $(KBUILD_CFLAGS)), y)
501 CC_HAVE_ASM_GOTO := 1
502 KBUILD_CFLAGS += -DCC_HAVE_ASM_GOTO
503 KBUILD_AFLAGS += -DCC_HAVE_ASM_GOTO
504endif
505
499ifeq ($(config-targets),1) 506ifeq ($(config-targets),1)
500# =========================================================================== 507# ===========================================================================
501# *config targets only - make sure prerequisites are updated, and descend 508# *config targets only - make sure prerequisites are updated, and descend
@@ -660,12 +667,6 @@ KBUILD_CFLAGS += $(call cc-ifversion, -lt, 0409, \
660# Tell gcc to never replace conditional load with a non-conditional one 667# Tell gcc to never replace conditional load with a non-conditional one
661KBUILD_CFLAGS += $(call cc-option,--param=allow-store-data-races=0) 668KBUILD_CFLAGS += $(call cc-option,--param=allow-store-data-races=0)
662 669
663# check for 'asm goto'
664ifeq ($(call shell-cached,$(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC) $(KBUILD_CFLAGS)), y)
665 KBUILD_CFLAGS += -DCC_HAVE_ASM_GOTO
666 KBUILD_AFLAGS += -DCC_HAVE_ASM_GOTO
667endif
668
669include scripts/Makefile.kcov 670include scripts/Makefile.kcov
670include scripts/Makefile.gcc-plugins 671include scripts/Makefile.gcc-plugins
671 672