parallelize make jobs in build-all.sh
source /opt/Xilinx/Vivado/2018.1/settings64.sh
+JOBS=`nproc 2> /dev/null || echo 1`
+
+make -j $JOBS cores
+
make NAME=led_blinker all
-for project in sdr_receiver_hpsdr sdr_transceiver sdr_transceiver_emb sdr_transceiver_hpsdr sdr_transceiver_wide sdr_transceiver_wspr mcpha pulsed_nmr scanner vna
-do
- make NAME=$project bit
-done
+PRJS="sdr_receiver_hpsdr sdr_transceiver sdr_transceiver_emb sdr_transceiver_hpsdr sdr_transceiver_wide sdr_transceiver_wspr mcpha pulsed_nmr scanner vna"
+
+printf "%s\n" $PRJS | xargs -n 1 -P $JOBS -I {} make NAME={} bit
sudo sh scripts/alpine.sh
