]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
kbuild: remove old check for CFLAGS use
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 12 Sep 2018 06:18:02 +0000 (15:18 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 12 Sep 2018 15:01:16 +0000 (00:01 +0900)
This check has been here for more than a decade since
commit 0c53c8e6eb45 ("kbuild: check for wrong use of CFLAGS").

Enough time for migration has passed.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/Makefile.build

index 5a2d1c9578a0ce19d764dcc8d84740234feb58c6..cb0377427f944953057cdc1599d4db949b5b7eb9 100644 (file)
@@ -36,21 +36,11 @@ subdir-ccflags-y :=
 
 include scripts/Kbuild.include
 
-# For backward compatibility check that these variables do not change
-save-cflags := $(CFLAGS)
-
 # The filename Kbuild has precedence over Makefile
 kbuild-dir := $(if $(filter /%,$(src)),$(src),$(srctree)/$(src))
 kbuild-file := $(if $(wildcard $(kbuild-dir)/Kbuild),$(kbuild-dir)/Kbuild,$(kbuild-dir)/Makefile)
 include $(kbuild-file)
 
-# If the save-* variables changed error out
-ifeq ($(KBUILD_NOPEDANTIC),)
-        ifneq ("$(save-cflags)","$(CFLAGS)")
-                $(error CFLAGS was changed in "$(kbuild-file)". Fix it to use ccflags-y)
-        endif
-endif
-
 include scripts/Makefile.lib
 
 # Do not include host rules unless needed