AtomBusMon/build_500.sh
David Banks 74d3618b1a Seperate ipcore directories for 250 and 500 parts
Change-Id: I726ff1bd3302a8918a71f069c0abf3251fe622aa
2016-10-24 17:59:06 +01:00

31 lines
769 B
Bash
Executable File

#!/bin/bash
# Create custom versions of all the scripts and projects
sed "s/.xise/_500.xise/" < ise_clean.tcl > ise_clean_500.tcl
sed "s/.xise/_500.xise/" < ise_build.tcl > ise_build_500.tcl
chmod +x ./ise_clean_500.tcl
chmod +x ./ise_build_500.tcl
PROJECTS=`/bin/ls [A-Za-z0-9]*.xise`
for i in $PROJECTS
do
cat $i | sed "s/xc3s250e/xc3s500e/" | sed "s#working/250#working/500#" | sed "s#src/250#src/500#" | sed "s#ipcore/250#ipcore/500#" > `basename $i .xise`_500.xise
done
# Reset the logfile
rm -f build_500.log
# Compile the Xilinx Designs
./ise_clean_500.tcl 2>&1 | tee -a build_500.log
./ise_build_500.tcl 2>&1 | tee -a build_500.log
# Build the firmware release
./gen_mcs.sh 500 2>&1 | tee -a build_500.log
# Clean up
rm -f *_500.tcl
rm -f *_500.xise