Makefile: Set KBUILD_OUTPUT to out by default

Using a different object directory fixes the compile errors caused by
CAF header insanity and keeps the kernel source tree cleanly separated
from generated objects.

Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
Signed-off-by: UtsavisGreat <utsavbalar1231@gmail.com>
This commit is contained in:
Sultan Alsawaf
2019-04-14 16:16:42 -07:00
committed by kondors1995
parent b4d4f4275a
commit a2ef9dce8e

View File

@@ -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")