fix issue where two outdirs are created
O was getting passed along to the main Kbuild Make session which is called with -C. If O was a relative path, the outdir would effectively become $(ZEPHYR_BASE)/$(O) which is not what we want. Change-Id: I148539490ecfc2d4e84a0fdf3e3dd1ab24503633 Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
96726f0a58
commit
ca12bbb569
|
@ -2,6 +2,11 @@ PROJECT_BASE ?= $(shell pwd)
|
|||
ARCH?=x86
|
||||
|
||||
O ?= $(PROJECT_BASE)/outdir
|
||||
# Turn O into an absolute path; we call the main Kbuild with $(MAKE) -C
|
||||
# which changes the working directory, relative paths don't work right.
|
||||
# Need to create the directory first to make readlink happy
|
||||
$(shell mkdir -p $(O))
|
||||
override O := $(shell readlink -f $(O))
|
||||
|
||||
export ARCH MDEF_FILE QEMU_EXTRA_FLAGS PROJECT_BASE
|
||||
|
||||
|
|
Loading…
Reference in a new issue