From 3bc5fa43aca5a22f0db9f65dc096e02862bc60fe Mon Sep 17 00:00:00 2001 From: "M. Edward (Ed) Borasky" Date: Mon, 2 Sep 2024 18:04:39 -0700 Subject: [PATCH] add a script to build examples in background --- dev_env/1_pico_sdk/3_background_build_uf2s.sh | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 dev_env/1_pico_sdk/3_background_build_uf2s.sh diff --git a/dev_env/1_pico_sdk/3_background_build_uf2s.sh b/dev_env/1_pico_sdk/3_background_build_uf2s.sh new file mode 100755 index 0000000..c7bd082 --- /dev/null +++ b/dev_env/1_pico_sdk/3_background_build_uf2s.sh @@ -0,0 +1,22 @@ +#! /usr/bin/env bash + +set -e + +echo "" +echo "Setting environment variables" +source ../set_pico_envars + +echo "This starts up background jobs to rebuild all the example uf2s." +echo "It starts the jobs and then exits, leaving them running." +echo "You can do other stuff or just monitor their progress by doing" +echo "" +echo " tail -f" +echo "" +echo "on the logfiles. This takes about half an hour on my 32 GB" +echo "Acer Nitro 5 laptop. It probably requires at least 8 GB of" +echo "RAM." + +/usr/bin/time ./build_rp2040_examples.sh > build_rp2040_examples.log 2>&1 & +/usr/bin/time ./build_rp2350_examples.sh > build_rp2350_examples.log 2>&1 & + +echo "Finished"