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> ---
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user