2020-01-03 16:15:24 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2020-01-03 16:55:19 +00:00
|
|
|
TOOLCHAIN_PATH="$PWD/$(find fomu-toolchain-* -type d -maxdepth 0 2>/dev/null)"
|
2020-01-03 16:40:56 +00:00
|
|
|
echo "TOOLCHAIN_PATH: $TOOLCHAIN_PATH"
|
|
|
|
|
2020-01-03 16:38:56 +00:00
|
|
|
export PATH=$TOOLCHAIN_PATH/bin:$PATH
|
|
|
|
|
2020-01-03 16:15:24 +00:00
|
|
|
# Test the RISC-V C example
|
2020-01-03 19:06:48 +00:00
|
|
|
travis_fold start riscv-c
|
|
|
|
echo "RISC-V C Example"
|
2020-01-03 16:15:24 +00:00
|
|
|
travis_time_start
|
|
|
|
(
|
2020-01-03 16:40:56 +00:00
|
|
|
set -x
|
2020-01-03 16:15:24 +00:00
|
|
|
cd riscv-blink
|
|
|
|
make
|
|
|
|
file riscv-blink.dfu
|
|
|
|
)
|
|
|
|
travis_time_finish
|
2020-01-03 19:06:48 +00:00
|
|
|
travis_fold end riscv-c
|
2020-01-03 16:15:24 +00:00
|
|
|
|
2020-01-23 10:27:50 +00:00
|
|
|
# Test the Verilog Blink example
|
|
|
|
travis_fold start verilog-blink
|
|
|
|
echo "Verilog Blink example"
|
2020-01-03 16:15:24 +00:00
|
|
|
travis_time_start
|
|
|
|
(
|
2020-01-03 16:40:56 +00:00
|
|
|
set -x
|
2020-01-23 10:27:50 +00:00
|
|
|
cd verilog/blink
|
2020-01-03 16:15:24 +00:00
|
|
|
make
|
|
|
|
file blink.dfu
|
|
|
|
)
|
|
|
|
travis_time_finish
|
2020-01-23 10:27:50 +00:00
|
|
|
travis_fold end verilog-blink
|
2020-01-03 16:15:24 +00:00
|
|
|
|
2020-01-03 16:55:19 +00:00
|
|
|
# Test the Verilog Blink (expanded) example for Hacker
|
2020-01-03 19:06:48 +00:00
|
|
|
travis_fold start verilog-blink-expanded-hacker
|
|
|
|
echo "Verilog Blink (expanded) example for Hacker board"
|
2020-01-03 16:15:24 +00:00
|
|
|
travis_time_start
|
|
|
|
(
|
2020-01-03 16:40:56 +00:00
|
|
|
set -x
|
2020-01-03 16:55:19 +00:00
|
|
|
cd verilog/blink-expanded
|
2020-01-03 19:06:48 +00:00
|
|
|
make FOMU_REV=hacker
|
2020-01-03 16:15:24 +00:00
|
|
|
file blink.dfu
|
|
|
|
)
|
|
|
|
travis_time_finish
|
2020-01-03 19:06:48 +00:00
|
|
|
travis_fold end verilog-blink-expanded-hacker
|
2020-01-03 16:15:24 +00:00
|
|
|
|
2020-01-03 16:55:19 +00:00
|
|
|
# Test the Verilog Blink (expanded) example for PVT
|
2020-01-03 19:06:48 +00:00
|
|
|
travis_fold start verilog-blink-expanded-pvt
|
|
|
|
echo "Verilog Blink (expanded) example for PVT board"
|
2020-01-03 16:15:24 +00:00
|
|
|
travis_time_start
|
|
|
|
(
|
2020-01-03 16:40:56 +00:00
|
|
|
set -x
|
2020-01-03 16:55:19 +00:00
|
|
|
cd verilog/blink-expanded
|
2020-01-03 19:06:48 +00:00
|
|
|
make FOMU_REV=pvt
|
2020-01-03 16:15:24 +00:00
|
|
|
file blink.dfu
|
|
|
|
)
|
|
|
|
travis_time_finish
|
2020-01-03 19:06:48 +00:00
|
|
|
travis_fold end verilog-blink-expanded-pvt
|
2020-01-03 16:15:24 +00:00
|
|
|
|
|
|
|
# Test the LiteX example for Hacker
|
2020-01-03 19:06:48 +00:00
|
|
|
travis_fold start litex-hacker
|
|
|
|
echo "LiteX example for Hacker"
|
2020-01-03 16:15:24 +00:00
|
|
|
travis_time_start
|
|
|
|
(
|
2020-01-03 16:40:56 +00:00
|
|
|
set -x
|
2020-01-03 16:15:24 +00:00
|
|
|
cd litex
|
|
|
|
./workshop.py --board=hacker
|
|
|
|
file build/gateware/top.dfu
|
|
|
|
)
|
|
|
|
travis_time_finish
|
2020-01-03 19:06:48 +00:00
|
|
|
travis_fold end litex-hacker
|
2020-01-03 16:15:24 +00:00
|
|
|
|
|
|
|
# Test the LiteX example for PVT
|
2020-01-03 19:06:48 +00:00
|
|
|
travis_fold start litex-pvt
|
|
|
|
echo "LiteX example for PVT"
|
2020-01-03 16:15:24 +00:00
|
|
|
travis_time_start
|
|
|
|
(
|
2020-01-03 16:40:56 +00:00
|
|
|
set -x
|
2020-01-03 16:15:24 +00:00
|
|
|
cd litex
|
|
|
|
./workshop.py --board=pvt
|
|
|
|
file build/gateware/top.dfu
|
|
|
|
)
|
|
|
|
travis_time_finish
|
2020-01-03 19:06:48 +00:00
|
|
|
travis_fold end litex-pvt
|