Skip to content

Commit

Permalink
Makefile: Set KBUILD_OUTPUT to out by default
Browse files Browse the repository at this point in the history
Using a different object directory fixes the compile errors caused by
CAF header insanity.

Signed-off-by: engstk <[email protected]>
  • Loading branch information
kerneltoast authored and engstk committed Jun 17, 2020
1 parent 29a73ed commit 73c66b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ x509.genkey
# Kconfig presets
all.config

# Object directory
out/

# Kdevelop4
*.kdev4

Expand Down
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ export quiet Q KBUILD_VERBOSE
# it is set on invocation of make with KBUILD_OUTPUT or O= specified.
ifeq ($(KBUILD_SRC),)

KBUILD_OUTPUT := out

# OK, Make called in directory where kernel src resides
# Do we want to locate output files in a separate directory?
ifeq ("$(origin O)", "command line")
Expand Down

0 comments on commit 73c66b6

Please sign in to comment.