Skip to content

Commit

Permalink
test_build script: cleanup old projects before building
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandrothea committed Mar 4, 2017
1 parent fe24fe7 commit 3e90070
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions tests/ci/test_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@


SH_SOURCE=${BASH_SOURCE}
IPBUS_ROOT=$(cd $(dirname ${SH_SOURCE})/../.. && pwd)
IPBUS_PATH=$(cd $(dirname ${SH_SOURCE})/../.. && pwd)
WORK_ROOT=$(cd ${IPBUS_PATH}/../.. && pwd)

PROJECTS=(sim enclustra_ax3_pm3_a35 enclustra_ax3_pm3_a50 kc705_basex kc705_gmii kcu105_basex)

if (( $# != 1 )); then
Expand All @@ -21,16 +23,24 @@ fi

# Stop on the first error
set -e
set -x

cd ${WORK_ROOT}
rm -rf proj/${PROJ}
echo "#------------------------------------------------"
echo "Building Project ${PROJ}"
echo "#------------------------------------------------"
if [[ "$PROJ" == "sim" ]]; then
ipbb proj create sim sim ipbus-firmware:boards/sim
ipbb sim -p ${PROJ} ipcores fli project
ipbb sim -p ${PROJ} ipcores
ipbb sim -p ${PROJ} fli
ipbb sim -p ${PROJ} project
else
ipbb proj create vivado -t top_${PROJ}.dep ${PROJ} ipbus-firmware:projects/example
ipbb vivado -p ${PROJ} project synth impl bitfile
ipbb vivado -p ${PROJ} project
ipbb vivado -p ${PROJ} synth
ipbb vivado -p ${PROJ} impl
ipbb vivado -p ${PROJ} bitfile
fi

exit 0

0 comments on commit 3e90070

Please sign in to comment.