From b0196f6a34b191401c017f9c6ecd1021a52385b2 Mon Sep 17 00:00:00 2001 From: Armel FAUVEAU Date: Tue, 12 Nov 2024 02:51:03 +0100 Subject: [PATCH] Add light option --- compile-with-docker.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/compile-with-docker.sh b/compile-with-docker.sh index bb103f4..dce247e 100755 --- a/compile-with-docker.sh +++ b/compile-with-docker.sh @@ -50,6 +50,17 @@ voxless() { && cp f4hwn.voxless* compiled-firmware/" } +light() { + echo "Light compilation..." + docker run --rm -v "${PWD}/compiled-firmware:/app/compiled-firmware" $IMAGE_NAME /bin/bash -c "cd /app && make -s \ + ENABLE_SPECTRUM=0 \ + ENABLE_FMRADIO=0 \ + ENABLE_AIRCOPY=0 \ + ENABLE_NOAA=1 \ + TARGET=f4hwn.light \ + && cp f4hwn.light* compiled-firmware/" +} + case "$1" in custom) custom @@ -63,10 +74,14 @@ case "$1" in voxless) voxless ;; + light) + light + ;; all) bandscope broadcast voxless + light ;; *) echo "Usage: $0 {custom|bandscope|broadcast|voxless|all}"