Fix correct commit hash for release 0.7.0 of openXC7
[dev-env-setup.git] / build_kestrel
1 #!/bin/bash
2 #
3 # Copyright 2022 Raptor Engineering, LLC
4 # Licensed under the terms of the GNU LGPLv3+
5 #
6 # Ensure that the LibreSoC packages and HDL tools
7 # are installed prior to running this script,
8 # as well as the kestrel repos
9 #
10 # ./install-hdl-apt-reqs
11 # ./hdl-dev-repos
12 # ./hdl-tools-yosys
13 # ./ppc64-gdb-gcc
14 # ./nextpnr-ecp5
15 # ./hdl-kestrel-repos
16
17 set -e
18
19 export PATH=/usr/local/libtrellis/bin:$PATH
20 export PATH=/usr/local/nextpnr-ecp5/bin:$PATH
21
22 export KESTREL=/home/$SUDO_USER/src/kestrel
23 echo "Refreshing Python data files from current LibreSoC sources..."
24 cd /home/$SUDO_USER/src/soc
25 python3 src/soc/simple/issuer_verilog.py --fabric-compat --enable-core \
26 --enable-mmu --enable-xics \
27 --disable-svp64 --disable-pll \
28 --debug dmi external_core_top.v
29 cp -Rp external_core_top.v \
30 $KESTREL/pythondata-cpu-libresoc/pythondata_cpu_libresoc/hdl/external_core_top.v
31
32 echo "Building Kestrel..."
33 cd $KESTREL/litex-boards/litex_boards/targets
34 ./rcs_arctic_tern_bmc_card.py --device=LFE5UM --cpu-type=libresoc \
35 --cpu-variant=standard+irq \
36 --with-ethernet --with-video \
37 --build --nextpnr-seed 1 \
38 --sys-clk-freq=50e6 --remote-ip 192.168.1.1