mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-02-04 20:48:12 +00:00
a633f46f4f
* Move the release build steps into separate shell scripts * Remove builds that we don't need any more * Latest builds of er9x and erSkyTx both support MULTI_TELEMETRY so separate OpenTX / erSkyTx builds are no longer needed * Radio can switch telemetry inversion on or off automatically so STM32 inv / noinv builds are no longer needed
72 lines
2.3 KiB
Bash
72 lines
2.3 KiB
Bash
#!/usr/bin/env bash
|
|
|
|
exitcode=0;
|
|
|
|
printf "\n\e[33;1mBuilding multi-stm-aetr-v$MULTI_VERSION.bin\e[0m";
|
|
opt_disable ENABLE_PPM;
|
|
buildMulti;
|
|
exitcode=$((exitcode+$?));
|
|
mv build/Multiprotocol.ino.bin ./binaries/multi-stm-aetr-v$MULTI_VERSION.bin;
|
|
|
|
printf "\n\e[33;1mBuilding multi-stm-taer-v$MULTI_VERSION.bin\e[0m";
|
|
opt_replace AETR TAER;
|
|
buildMulti;
|
|
exitcode=$((exitcode+$?));
|
|
mv build/Multiprotocol.ino.bin ./binaries/multi-stm-taer-v$MULTI_VERSION.bin;
|
|
|
|
printf "\n\e[33;1mBuilding multi-stm-reta-v$MULTI_VERSION.bin\e[0m";
|
|
opt_replace TAER RETA;
|
|
buildMulti;
|
|
exitcode=$((exitcode+$?));
|
|
mv build/Multiprotocol.ino.bin ./binaries/multi-stm-reta-v$MULTI_VERSION.bin;
|
|
|
|
printf "\n\e[33;1mBuilding multi-cc2500-aetr-v$MULTI_VERSION.bin\e[0m";
|
|
opt_replace RETA AETR;
|
|
opt_disable A7105_INSTALLED;
|
|
opt_disable CYRF6936_INSTALLED;
|
|
opt_disable NRF24L01_INSTALLED;
|
|
opt_disable INVERT_TELEMETRY;
|
|
buildMulti;
|
|
exitcode=$((exitcode+$?));
|
|
mv build/Multiprotocol.ino.bin ./binaries/multi-cc2500-aetr-v$MULTI_VERSION.bin;
|
|
|
|
printf "\n\e[33;1mBuilding multi-cc2500-taer-v$MULTI_VERSION.bin\e[0m";
|
|
opt_replace AETR TAER;
|
|
buildMulti;
|
|
exitcode=$((exitcode+$?));
|
|
mv build/Multiprotocol.ino.bin ./binaries/multi-cc2500-taer-v$MULTI_VERSION.bin;
|
|
|
|
printf "\n\e[33;1mBuilding multi-cc2500-reta-v$MULTI_VERSION.bin\e[0m";
|
|
opt_replace TAER RETA;
|
|
buildMulti;
|
|
exitcode=$((exitcode+$?));
|
|
mv build/Multiprotocol.ino.bin ./binaries/multi-cc2500-reta-v$MULTI_VERSION.bin;
|
|
|
|
printf "\n\e[33;1mBuilding multi-stm-ppm-aetr-v$MULTI_VERSION.bin\e[0m";
|
|
opt_enable A7105_INSTALLED;
|
|
opt_enable CYRF6936_INSTALLED;
|
|
opt_enable NRF24L01_INSTALLED;
|
|
opt_enable ENABLE_PPM;
|
|
opt_disable ENABLE_SERIAL;
|
|
opt_replace RETA AETR;
|
|
opt_disable MULTI_STATUS;
|
|
opt_disable MULTI_TELEMETRY;
|
|
opt_set NBR_BANKS 5;
|
|
buildMulti;
|
|
exitcode=$((exitcode+$?));
|
|
mv build/Multiprotocol.ino.bin ./binaries/multi-stm-ppm-aetr-v$MULTI_VERSION.bin;
|
|
|
|
printf "\n\e[33;1mBuilding multi-stm-ppm-taer-v$MULTI_VERSION.bin\e[0m";
|
|
opt_replace AETR TAER;
|
|
buildMulti;
|
|
exitcode=$((exitcode+$?));
|
|
mv build/Multiprotocol.ino.bin ./binaries/multi-stm-ppm-taer-v$MULTI_VERSION.bin;
|
|
|
|
printf "\n\e[33;1mBuilding multi-stm-ppm-reta-v$MULTI_VERSION.bin\e[0m";
|
|
opt_replace TAER RETA;
|
|
buildMulti;
|
|
exitcode=$((exitcode+$?));
|
|
mv build/Multiprotocol.ino.bin ./binaries/multi-stm-ppm-reta-v$MULTI_VERSION.bin;
|
|
|
|
exit $exitcode;
|