Fix correct commit hash for release 0.7.0 of openXC7
[dev-env-setup.git] / nextpnr-ecp5-install
index 4d9220bd0e5932996335f7d3eba94836c3dfd5bc..be18e12178be5f68decdfbca8ef860dcd02a8ac0 100755 (executable)
@@ -15,21 +15,29 @@ cd /home/$SUDO_USER
 mkdir -p src/nextpnr
 cd src/nextpnr
 
-git clone --recursive https://github.com/YosysHQ/prjtrellis
+git clone --recursive -b 1.2.1 https://github.com/YosysHQ/prjtrellis
 git clone --recursive https://github.com/YosysHQ/nextpnr
 
+# prjtrellis
 cd prjtrellis
 cd libtrellis
 cmake -DCMAKE_INSTALL_PREFIX=/usr/local/libtrellis .
-make
+make -j$(nproc)
 make install
 cd ../..
 
+# nextpnr, use a specific version for now
 cd nextpnr
+git checkout e069b3bc
 cmake -DCMAKE_INSTALL_PREFIX=/usr/local/nextpnr-ecp5 \
+                    -DBUILD_PYTHON=OFF \
+                   -DBUILD_GUI=OFF \
                     -DARCH=ecp5 \
                     -DTRELLIS_INSTALL_PREFIX=/usr/local/libtrellis .
-make
+make -j$(nproc)
 make install
 
-# TODO chown post-amble
+cd /home/$SUDO_USER/src/nextpnr
+chown -R $SUDO_USER .
+chgrp -R $SUDO_USER .
+