diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | scripts/Makefile.build | 4 | ||||
-rw-r--r-- | scripts/Makefile.clean | 4 |
3 files changed, 7 insertions, 3 deletions
@@ -310,7 +310,7 @@ cc-version = $(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-version.sh \ | |||
310 | MAKEFLAGS += --include-dir=$(srctree) | 310 | MAKEFLAGS += --include-dir=$(srctree) |
311 | 311 | ||
312 | # We need some generic definitions | 312 | # We need some generic definitions |
313 | include scripts/Kbuild.include | 313 | include $(srctree)/scripts/Kbuild.include |
314 | 314 | ||
315 | # For maximum performance (+ possibly random breakage, uncomment | 315 | # For maximum performance (+ possibly random breakage, uncomment |
316 | # the following) | 316 | # the following) |
diff --git a/scripts/Makefile.build b/scripts/Makefile.build index ebed6a41bc69..8f4f5a347767 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build | |||
@@ -10,7 +10,9 @@ __build: | |||
10 | # Read .config if it exist, otherwise ignore | 10 | # Read .config if it exist, otherwise ignore |
11 | -include .config | 11 | -include .config |
12 | 12 | ||
13 | include $(if $(wildcard $(obj)/Kbuild), $(obj)/Kbuild, $(obj)/Makefile) | 13 | # The filename Kbuild has precedence over Makefile |
14 | include $(if $(wildcard $(srctree)/$(src)/Kbuild), \ | ||
15 | $(srctree)/$(src)/Kbuild, $(srctree)/$(src)/Makefile) | ||
14 | 16 | ||
15 | include scripts/Kbuild.include | 17 | include scripts/Kbuild.include |
16 | include scripts/Makefile.lib | 18 | include scripts/Makefile.lib |
diff --git a/scripts/Makefile.clean b/scripts/Makefile.clean index ff3e87dbf387..9c978b7bbdf1 100644 --- a/scripts/Makefile.clean +++ b/scripts/Makefile.clean | |||
@@ -7,7 +7,9 @@ src := $(obj) | |||
7 | .PHONY: __clean | 7 | .PHONY: __clean |
8 | __clean: | 8 | __clean: |
9 | 9 | ||
10 | include $(if $(wildcard $(obj)/Kbuild), $(obj)/Kbuild, $(obj)/Makefile) | 10 | # The filename Kbuild has precedence over Makefile |
11 | include $(if $(wildcard $(srctree)/$(src)/Kbuild), \ | ||
12 | $(srctree)/$(src)/Kbuild, $(srctree)/$(src)/Makefile) | ||
11 | 13 | ||
12 | # Figure out what we need to build from the various variables | 14 | # Figure out what we need to build from the various variables |
13 | # ========================================================================== | 15 | # ========================================================================== |