aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorbryan newbold <bnewbold@leaflabs.com>2013-11-24 19:30:29 -0500
committerbryan newbold <bnewbold@leaflabs.com>2013-11-24 19:30:29 -0500
commit74fafe68ff056bb5e051e039de8f4ec280b54532 (patch)
tree56b0191ff10d765a8f91ca337d033540cc2a4d1a /contrib
parentd0e7537c45c00cb8dd72b82bec426441624ddceb (diff)
downloadbasic-hdl-template-74fafe68ff056bb5e051e039de8f4ec280b54532.tar.gz
basic-hdl-template-74fafe68ff056bb5e051e039de8f4ec280b54532.zip
allow extending bitfile list on a per-board basis
Diffstat (limited to 'contrib')
-rw-r--r--contrib/xilinx.mk15
1 files changed, 11 insertions, 4 deletions
diff --git a/contrib/xilinx.mk b/contrib/xilinx.mk
index 8367f6e..7f71738 100644
--- a/contrib/xilinx.mk
+++ b/contrib/xilinx.mk
@@ -89,6 +89,10 @@ par_opts ?= -ol $(synth_effort)
intstyle ?= -intstyle xflow
multithreading ?= -mt 4
+# Minimal list of bitfiles to be generated
+bitfile_list += build/$(project).bit
+bitfile_list += build/$(project).mcs
+
# Build Environment
iseenvfile?= $(iseenv)/settings$(hostbits).sh
xil_env ?= mkdir -p build/; cd ./build; source $(iseenvfile) > /dev/null
@@ -163,16 +167,19 @@ untouchcores:
timestamp = $(shell date +%F-%H%M)
-bitfiles: build/$(project).bit build/$(project).mcs
+bitfiles: $(bitfile_list)
@mkdir -p $@/$(timestamp)/logs
@mkdir -p $@/latest/logs
@# NB: _bd.bmm was listed below in the past...
- @for x in .bit .mcs .cfi _par.ncd _post_par.twr _post_par.twx; do \
+ @for x in $(bitfile_list); do \
+ cp $$x $@/$(timestamp)/$(project)$$x || true; \
+ done;
+ @for x in .cfi _par.ncd _post_par.twr _post_par.twx; do \
cp build/$(project)$$x $@/$(timestamp)/$(project)$$x || true; \
cp build/$(project)$$x $@/latest/$(project)$$x || true; \
done;
- @cp -R build/_xmsgs $@/$(timestamp)/logs || true;
- @cp -R build/_xmsgs $@/latest/logs || true;
+ @cp -R build/_xmsgs/* $@/$(timestamp)/logs || true;
+ @cp -R build/_xmsgs/* $@/latest/logs || true;
@bash -c "$(xil_env); \
cd ..; \
xst -help | head -1 | sed 's/^/#/' | cat - build/$(project).scr > $@/$(timestamp)/$(project).scr"