mk: fix external builds with relative output dir
In case the output directory (O=) is undefined or a relative directory lets turn it into an absolute path before passing it on. Otherwise the output directory is created relative to the subdir, e.g. pktgen/app/build/... and pktgen/lib/lua/src/build/... Signed-off-by: Jan Blunck <jblunck@infradead.org>
This commit is contained in:
parent
e8fbb6d9cf
commit
9a1774b80a
@ -33,8 +33,8 @@ MAKEFLAGS += --no-print-directory
|
||||
ALL_DEPDIRS := $(patsubst DEPDIRS-%,%,$(filter DEPDIRS-%,$(.VARIABLES)))
|
||||
|
||||
# output directory
|
||||
O ?= .
|
||||
BASE_OUTPUT ?= $(O)
|
||||
O ?= $(CURDIR)
|
||||
BASE_OUTPUT ?= $(abspath $(O))
|
||||
CUR_SUBDIR ?= .
|
||||
|
||||
.PHONY: all
|
||||
|
Loading…
Reference in New Issue
Block a user