add buster-backports and fpga-interchange
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 10 Oct 2021 10:14:26 +0000 (11:14 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 10 Oct 2021 10:15:11 +0000 (11:15 +0100)
symbiflow-install

index eab9fd0fcffa758d628d2525051751ded4dbb0c1..b44e2a0f259429fa97d0235436b86c7b91fd167a 100755 (executable)
@@ -5,7 +5,18 @@ if [ "$EUID" -ne 0 ]
 fi
 
 #!!! buster backports is needed for cmake
+cat << EOF > /etc/apt/sources.list.d/buster_backports.list
+deb http://deb.debian.org/debian buster-backports main
+EOF
+
+# oooo annoying, pin preferences for buster-backports
+cat << EOF > /etc/apt/preferences.d/99buster-backports
+Package: *
+Pin: release a=buster-backports
+Pin-Priority: 900
+EOF
 
+# upgrade to buster-backports
 apt-get update -y
 apt-get upgrade -y
 
@@ -235,6 +246,12 @@ git checkout v1.0.0b1
 pip3 install .
 cd ..
 
+## Steps to install fpga-interchange
+cd python-fpga-interchange
+git checkout v0.0.18         # pick stable version 0.0.18
+python3 setup.py install
+cd ..
+
 ## Steps to compile symbiflow-arch-defs
 
 ## Necessary software to install
@@ -250,8 +267,6 @@ pip3 install textx fasm pyjson5 pyyaml tinyfpgab tinyprog pyjson lxml \
   progressbar2 hilbertcurve==1.0.5 python-constraint parameterized \
   yapf==0.26.0 python-sat
 
-pip3 install python-fpga-interchange
-
 cd symbiflow-arch-defs
 git submodule init
 git submodule update --init --recursive