diff options
author | Wade Fife <wade.fife@ettus.com> | 2023-02-07 15:46:39 -0600 |
---|---|---|
committer | Wade Fife <wade.fife@ettus.com> | 2023-02-09 07:38:49 -0600 |
commit | bc6db8409ba756bbad0d0c158ffb00c614b58fd9 (patch) | |
tree | 751c28c52b8d022c3a2b0d6529134c4f10bcbef5 /fpga/usrp3/tools/make/viv_preamble.mak | |
parent | rfnoc: Demote some de-init DEBUG messages (diff) | |
download | uhd-bc6db8409ba756bbad0d0c158ffb00c614b58fd9.tar.xz uhd-bc6db8409ba756bbad0d0c158ffb00c614b58fd9.zip |
fpga: Add BUILD_BASE_DIR option to makefiles
Adds a BUILD_BASE_DIR makefile variable that allows you to specify the
base directory for FPGA build outputs. This allows you to put the
output from each run of make into a unique directory, or to run
multiple instances of make in parallel with each build's output being
put in a different directory. For example:
make X310_XG BUILD_BASE_DIR=/path/to/builds
Diffstat (limited to 'fpga/usrp3/tools/make/viv_preamble.mak')
-rw-r--r-- | fpga/usrp3/tools/make/viv_preamble.mak | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fpga/usrp3/tools/make/viv_preamble.mak b/fpga/usrp3/tools/make/viv_preamble.mak index ab9e01756..df0f27171 100644 --- a/fpga/usrp3/tools/make/viv_preamble.mak +++ b/fpga/usrp3/tools/make/viv_preamble.mak @@ -24,12 +24,12 @@ SIMLIB_DIR = $(abspath $(BASE_DIR)/../sim) LIB_IP_DIR = $(abspath $(LIB_DIR)/ip) HLS_IP_DIR = $(abspath $(LIB_DIR)/hls) -O ?= . +BUILD_BASE_DIR ?= . ifdef NAME -BUILD_DIR = $(abspath $(O)/build-$(NAME)) +BUILD_DIR = $(abspath $(BUILD_BASE_DIR)/build-$(NAME)) else -BUILD_DIR = $(abspath $(O)/build) +BUILD_DIR = $(abspath $(BUILD_BASE_DIR)/build) endif IP_BUILD_DIR = $(abspath ./build-ip/$(subst /,,$(PART_ID))) |