aboutsummaryrefslogtreecommitdiffstats
path: root/fpga/usrp3/tools/make/diamond_preamble.mak
diff options
context:
space:
mode:
Diffstat (limited to 'fpga/usrp3/tools/make/diamond_preamble.mak')
-rw-r--r--fpga/usrp3/tools/make/diamond_preamble.mak8
1 files changed, 7 insertions, 1 deletions
diff --git a/fpga/usrp3/tools/make/diamond_preamble.mak b/fpga/usrp3/tools/make/diamond_preamble.mak
index 24b0fe295..4a8240ae0 100644
--- a/fpga/usrp3/tools/make/diamond_preamble.mak
+++ b/fpga/usrp3/tools/make/diamond_preamble.mak
@@ -15,6 +15,12 @@ RESOLVE_PATH = $(1)
RESOLVE_PATHS = "$(1)"
endif
+ifeq ($(OS),Windows_NT)
+DIAMOND_EXE = "pnmainc"
+else
+DIAMOND_EXE = "diamondc"
+endif
+
# -------------------------------------------------------------------
# Project Setup
# -------------------------------------------------------------------
@@ -46,7 +52,7 @@ GIT_HASH_VERILOG_DEF = "GIT_HASH=32'h$(GIT_HASH)"
@echo "BUILDER: Checking tools..."
@echo -n "* "; bash --version | grep bash || (echo "ERROR: Bash not found in environment. Please install it"; exit 1;)
@echo -n "* "; python3 --version || (echo "ERROR: Python not found in environment. Please install it"; exit 1;)
- @echo -n "* "; which pnmainc 2>&1 | grep diamond|| (echo "ERROR: Diamond TCL Console not found in environment."; exit 1;)
+ @echo -n "* "; which $(DIAMOND_EXE) 2>&1 | grep diamond || (echo "ERROR: Diamond TCL Console not found in environment."; exit 1;)
# -------------------------------------------------------------------
# Intermediate build dirs