buildroot: specify the compilation directory
Signed-off-by: carbon <carbon@milkv.io>
This commit is contained in:
@ -34,8 +34,12 @@ SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
|
|||||||
# or avoid confusing packages that can use the O=<dir> syntax for out-of-tree
|
# or avoid confusing packages that can use the O=<dir> syntax for out-of-tree
|
||||||
# build by preventing it from being forwarded to sub-make calls.
|
# build by preventing it from being forwarded to sub-make calls.
|
||||||
ifneq ("$(origin O)", "command line")
|
ifneq ("$(origin O)", "command line")
|
||||||
|
ifneq ($(TARGET_OUTPUT_DIR),)
|
||||||
|
O := $(TARGET_OUTPUT_DIR)
|
||||||
|
else
|
||||||
O := $(CURDIR)/output
|
O := $(CURDIR)/output
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
# Check if the current Buildroot execution meets all the pre-requisites.
|
# Check if the current Buildroot execution meets all the pre-requisites.
|
||||||
# If they are not met, Buildroot will actually do its job in a sub-make meeting
|
# If they are not met, Buildroot will actually do its job in a sub-make meeting
|
||||||
|
|||||||
Reference in New Issue
Block a user