mirror of
https://github.com/torvalds/linux.git
synced 2026-01-25 07:47:50 +00:00
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:
@@ -7,7 +7,9 @@ src := $(obj)
|
||||
.PHONY: __clean
|
||||
__clean:
|
||||
|
||||
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)
|
||||
|
||||
# Figure out what we need to build from the various variables
|
||||
# ==========================================================================
|
||||
|
||||
Reference in New Issue
Block a user