7
mirror of https://github.com/EEVengers/ThunderScope.git synced 2025-04-22 17:43:44 +00:00

Added script to install LiteX

This commit is contained in:
Aleksa Bjelogrlic 2024-10-18 20:14:01 -04:00
parent 658a2d2990
commit fb012a3355
2 changed files with 13 additions and 0 deletions

2
.gitignore vendored
View File

@ -32,3 +32,5 @@ Software/TS.NET
Gateware/openFPGALoader
Gateware/prebuilt_bitstreams/
Gateware/LiteX/

11
Gateware/install_LiteX.sh Executable file
View File

@ -0,0 +1,11 @@
mkdir LiteX
cd LiteX
sudo apt-get install -y python3-pip
wget https://raw.githubusercontent.com/enjoy-digital/litex/master/litex_setup.py
#break the auto update check
sed -i -e 's/if current_sha1 != upstream_sha1:/if current_sha1 == upstream_sha1:/g' litex_setup.py
#so that we can break system packages and install on distros adopting PEP668
#see https://github.com/enjoy-digital/litex/issues/1716
sed -i -e 's/ pip install --editable / pip install --break-system-packages --editable /g' litex_setup.py
chmod +x litex_setup.py
./litex_setup.py --init --install