diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-09-12 02:18:02 -0400 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-09-12 11:01:16 -0400 |
commit | 0d91bf584fe55349193afa96a2f36d288f65b218 (patch) | |
tree | 427412bd8bcbc856df5ba60c7cb25d95a2bf6aae | |
parent | 487c7c7702ab12cfe6cd0b5a10364eefa1d2128f (diff) |
kbuild: remove old check for CFLAGS use
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>
-rw-r--r-- | scripts/Makefile.build | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 5a2d1c9578a0..cb0377427f94 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build | |||
@@ -36,21 +36,11 @@ subdir-ccflags-y := | |||
36 | 36 | ||
37 | include scripts/Kbuild.include | 37 | include scripts/Kbuild.include |
38 | 38 | ||
39 | # For backward compatibility check that these variables do not change | ||
40 | save-cflags := $(CFLAGS) | ||
41 | |||
42 | # The filename Kbuild has precedence over Makefile | 39 | # The filename Kbuild has precedence over Makefile |
43 | kbuild-dir := $(if $(filter /%,$(src)),$(src),$(srctree)/$(src)) | 40 | kbuild-dir := $(if $(filter /%,$(src)),$(src),$(srctree)/$(src)) |
44 | kbuild-file := $(if $(wildcard $(kbuild-dir)/Kbuild),$(kbuild-dir)/Kbuild,$(kbuild-dir)/Makefile) | 41 | kbuild-file := $(if $(wildcard $(kbuild-dir)/Kbuild),$(kbuild-dir)/Kbuild,$(kbuild-dir)/Makefile) |
45 | include $(kbuild-file) | 42 | include $(kbuild-file) |
46 | 43 | ||
47 | # If the save-* variables changed error out | ||
48 | ifeq ($(KBUILD_NOPEDANTIC),) | ||
49 | ifneq ("$(save-cflags)","$(CFLAGS)") | ||
50 | $(error CFLAGS was changed in "$(kbuild-file)". Fix it to use ccflags-y) | ||
51 | endif | ||
52 | endif | ||
53 | |||
54 | include scripts/Makefile.lib | 44 | include scripts/Makefile.lib |
55 | 45 | ||
56 | # Do not include host rules unless needed | 46 | # Do not include host rules unless needed |