Skip to content

Commit

Permalink
kbuild: fix make O=...
Browse files Browse the repository at this point in the history
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>
---
  • Loading branch information
Sam Ravnborg committed Jul 25, 2005
1 parent 8ec4b4f commit 2a69147
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ cc-version = $(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-version.sh \
MAKEFLAGS += --include-dir=$(srctree)

# We need some generic definitions
include scripts/Kbuild.include
include $(srctree)/scripts/Kbuild.include

# For maximum performance (+ possibly random breakage, uncomment
# the following)
Expand Down
4 changes: 3 additions & 1 deletion scripts/Makefile.build
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion scripts/Makefile.clean
Original file line number Diff line number Diff line change
Expand Up @@ -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
# ==========================================================================
Expand Down

0 comments on commit 2a69147

Please sign in to comment.