aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/Makefile.build
diff options
context:
space:
mode:
authorSam Ravnborg <sam@mars.(none)>2005-07-25 16:26:04 -0400
committerSam Ravnborg <sam@mars.(none)>2005-07-25 16:26:04 -0400
commit2a691470345a0024dd7ffaf47ad3d0f5f4f41924 (patch)
tree593421beaa683526ed187fd540c156c9a1536f74 /scripts/Makefile.build
parent8ec4b4ff1c89bb280e662b84eba503ca44abe836 (diff)
kbuild: fix make O=...
kbuild failed to locate Kbuild.include. Teach kbuild how to find Kbuild files when using make O=... Signed-off-by: Sam Ravnborg <sam@ravnborg.org> ---
Diffstat (limited to 'scripts/Makefile.build')
-rw-r--r--scripts/Makefile.build4
1 files changed, 3 insertions, 1 deletions
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
13include $(if $(wildcard $(obj)/Kbuild), $(obj)/Kbuild, $(obj)/Makefile) 13# The filename Kbuild has precedence over Makefile
14include $(if $(wildcard $(srctree)/$(src)/Kbuild), \
15 $(srctree)/$(src)/Kbuild, $(srctree)/$(src)/Makefile)
14 16
15include scripts/Kbuild.include 17include scripts/Kbuild.include
16include scripts/Makefile.lib 18include scripts/Makefile.lib