aboutsummaryrefslogtreecommitdiffstats
path: root/fpga/usrp3/tools/make
diff options
context:
space:
mode:
authorAndrew Moch <Andrew.Moch@ni.com>2020-07-29 16:07:10 +0100
committerWade Fife <wade.fife@ettus.com>2020-07-30 15:00:06 -0500
commitffdce1c3fc229579b9d30afe489d2749c0c956ed (patch)
tree48469e3d0701172a4fc9b1d4b81c225f53c628ad /fpga/usrp3/tools/make
parent3b39cb90df3e22897091735dc7bc0c3675eef518 (diff)
downloaduhd-ffdce1c3fc229579b9d30afe489d2749c0c956ed.tar.gz
uhd-ffdce1c3fc229579b9d30afe489d2749c0c956ed.tar.bz2
uhd-ffdce1c3fc229579b9d30afe489d2749c0c956ed.zip
fpga: tools: RESOLVE_PATH checks for an empty path
Diffstat (limited to 'fpga/usrp3/tools/make')
-rw-r--r--fpga/usrp3/tools/make/viv_preamble.mak8
1 files changed, 4 insertions, 4 deletions
diff --git a/fpga/usrp3/tools/make/viv_preamble.mak b/fpga/usrp3/tools/make/viv_preamble.mak
index 208858757..87115934b 100644
--- a/fpga/usrp3/tools/make/viv_preamble.mak
+++ b/fpga/usrp3/tools/make/viv_preamble.mak
@@ -6,8 +6,8 @@
# Environment Setup
# -------------------------------------------------------------------
ifeq ($(VIV_PLATFORM),Cygwin)
-RESOLVE_PATH = $(subst \,/,$(shell cygpath -aw $(1)))
-RESOLVE_PATHS = "$(foreach path,$(1),$(subst \,/,$(shell cygpath -aw $(abspath $(path)))))"
+RESOLVE_PATH = $(if $(1),$(subst \,/,$(shell cygpath -aw $(1))))
+RESOLVE_PATHS = "$(if $(1),$(foreach path,$(1),$(subst \,/,$(shell cygpath -aw $(abspath $(path))))))"
else
RESOLVE_PATH = $(1)
RESOLVE_PATHS = "$(1)"
@@ -18,8 +18,8 @@ endif
# -------------------------------------------------------------------
# Requirement: BASE_DIR must be defined
-TOOLS_DIR = $(abspath $(BASE_DIR)/../tools)
-LIB_DIR = $(abspath $(BASE_DIR)/../lib)
+TOOLS_DIR = $(abspath $(BASE_DIR)/../tools)
+LIB_DIR = $(abspath $(BASE_DIR)/../lib)
SIMLIB_DIR = $(abspath $(BASE_DIR)/../sim)
LIB_IP_DIR = $(abspath $(LIB_DIR)/ip)
HLS_IP_DIR = $(abspath $(LIB_DIR)/hls)