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 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 -j$(nproc)