Add make -j parallelization and chown and chgrp the got repo's
authorR Veera Kumar <vklr@vkten.in>
Fri, 12 Mar 2021 11:54:18 +0000 (17:24 +0530)
committerR Veera Kumar <vklr@vkten.in>
Fri, 12 Mar 2021 11:54:18 +0000 (17:24 +0530)
nextpnr-ecp5-install

index 4d9220bd0e5932996335f7d3eba94836c3dfd5bc..18b7b28fdfa85308a0692f2a38af1d0cedfc0784 100755 (executable)
@@ -21,7 +21,7 @@ git clone --recursive https://github.com/YosysHQ/nextpnr
 cd prjtrellis
 cd libtrellis
 cmake -DCMAKE_INSTALL_PREFIX=/usr/local/libtrellis .
-make
+make -j$(nproc)
 make install
 cd ../..
 
@@ -29,7 +29,10 @@ cd nextpnr
 cmake -DCMAKE_INSTALL_PREFIX=/usr/local/nextpnr-ecp5 \
                     -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 .
+