aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/Makefile.build10
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
37include scripts/Kbuild.include 37include scripts/Kbuild.include
38 38
39# For backward compatibility check that these variables do not change
40save-cflags := $(CFLAGS)
41
42# The filename Kbuild has precedence over Makefile 39# The filename Kbuild has precedence over Makefile
43kbuild-dir := $(if $(filter /%,$(src)),$(src),$(srctree)/$(src)) 40kbuild-dir := $(if $(filter /%,$(src)),$(src),$(srctree)/$(src))
44kbuild-file := $(if $(wildcard $(kbuild-dir)/Kbuild),$(kbuild-dir)/Kbuild,$(kbuild-dir)/Makefile) 41kbuild-file := $(if $(wildcard $(kbuild-dir)/Kbuild),$(kbuild-dir)/Kbuild,$(kbuild-dir)/Makefile)
45include $(kbuild-file) 42include $(kbuild-file)
46 43
47# If the save-* variables changed error out
48ifeq ($(KBUILD_NOPEDANTIC),)
49 ifneq ("$(save-cflags)","$(CFLAGS)")
50 $(error CFLAGS was changed in "$(kbuild-file)". Fix it to use ccflags-y)
51 endif
52endif
53
54include scripts/Makefile.lib 44include scripts/Makefile.lib
55 45
56# Do not include host rules unless needed 46# Do not include host rules unless needed