add missing gcc-powerpc64-linux-gnu package
[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
9 set -e
10
11 export KESTREL=/home/$SUDO_USER/src/kestrel
12 echo "Refreshing Python data files from current LibreSoC sources..."
13 cd /home/$SUDO_USER/src/soc
14 python3 src/soc/simple/issuer_verilog.py --fabric-compat --enable-core \
15 --enable-mmu --enable-xics \
16 --disable-svp64 --disable-pll \
17 --debug dmi external_core_top.v
18 cp -Rp external_core_top.v \
19 $KESTREL/pythondata-cpu-libresoc/pythondata_cpu_libresoc/hdl/external_core_top.v
20
21 echo "Building Kestrel..."
22 cd $KESTREL/litex-boards/litex_boards/targets
23 ./rcs_arctic_tern_bmc_card.py --device=LFE5UM --cpu-type=libresoc \
24 --cpu-variant=standard+irq \
25 --with-ethernet --with-video \
26 --build --nextpnr-seed 1 \
27 --sys-clk-freq=50e6 --remote-ip 192.168.1.1