From: Nick Desaulniers Date: Tue, 17 Aug 2021 00:21:07 +0000 (-0700) Subject: x86: remove cc-option-yn test for -mtune= X-Git-Tag: accepted/tizen/unified/20230118.172025~6468^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7ab44e9ee5f241c0ed19e350d17e80bd90bde93d;p=platform%2Fkernel%2Flinux-rpi.git x86: remove cc-option-yn test for -mtune= As noted in the comment, -mtune= has been supported since GCC 3.4. The minimum required version of GCC to build the kernel (as specified in Documentation/process/changes.rst) is GCC 4.9. tune is not immediately expanded. Instead it defines a macro that will test via cc-option later values for -mtune=. But we can skip the test whether to use -mtune= vs. -mcpu=. Signed-off-by: Nick Desaulniers Reviewed-by: Nathan Chancellor Reviewed-by: Miguel Ojeda Signed-off-by: Masahiro Yamada --- diff --git a/arch/x86/Makefile_32.cpu b/arch/x86/Makefile_32.cpu index cd30567..e7355f8 100644 --- a/arch/x86/Makefile_32.cpu +++ b/arch/x86/Makefile_32.cpu @@ -2,13 +2,7 @@ # CPU tuning section - shared with UML. # Must change only cflags-y (or [yn]), not CFLAGS! That makes a difference for UML. -#-mtune exists since gcc 3.4 -HAS_MTUNE := $(call cc-option-yn, -mtune=i386) -ifeq ($(HAS_MTUNE),y) tune = $(call cc-option,-mtune=$(1),$(2)) -else -tune = $(call cc-option,-mcpu=$(1),$(2)) -endif cflags-$(CONFIG_M486SX) += -march=i486 cflags-$(CONFIG_M486) += -march=i486