diff options
author | Sam Ravnborg <sam@mars.(none)> | 2005-07-25 20:26:04 +0000 |
---|---|---|
committer | Sam Ravnborg <sam@mars.(none)> | 2005-07-25 20:26:04 +0000 |
commit | 2a691470345a0024dd7ffaf47ad3d0f5f4f41924 (patch) | |
tree | 593421beaa683526ed187fd540c156c9a1536f74 /scripts/Makefile.build | |
parent | 8ec4b4ff1c89bb280e662b84eba503ca44abe836 (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.build | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build index ebed6a41bc6..8f4f5a34776 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -10,7 +10,9 @@ __build: # Read .config if it exist, otherwise ignore -include .config -include $(if $(wildcard $(obj)/Kbuild), $(obj)/Kbuild, $(obj)/Makefile) +# The filename Kbuild has precedence over Makefile +include $(if $(wildcard $(srctree)/$(src)/Kbuild), \ + $(srctree)/$(src)/Kbuild, $(srctree)/$(src)/Makefile) include scripts/Kbuild.include include scripts/Makefile.lib |