Skip to content

Commit

Permalink
Split CC2500 into air and surface
Browse files Browse the repository at this point in the history
  • Loading branch information
benlye committed Jun 14, 2024
1 parent af77706 commit b4e5394
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 17 deletions.
40 changes: 31 additions & 9 deletions buildroot/bin/build_release_stm32f1_cc2500_128k
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,54 @@
source ./buildroot/bin/buildFunctions;
exitcode=0;

# CC2500-only FCC builds
printf "\e[33;1mBuilding mm-stm-cc2500-aetr-v$MULTI_VERSION.bin\e[0m\n";
# CC2500-only 128Kb AIR builds
printf "\e[33;1mBuilding mm-stm-cc2500-aetr-air-v$MULTI_VERSION.bin\e[0m\n";
opt_add MULTI_AIR
opt_disable ENABLE_PPM;
opt_disable A7105_INSTALLED;
opt_disable CYRF6936_INSTALLED;
opt_disable NRF24L01_INSTALLED;
opt_disable ENABLE_PPM;
opt_disable INVERT_TELEMETRY;
buildMulti;
exitcode=$((exitcode+$?));
mv build/Multiprotocol.ino.bin ./binaries/mm-stm-cc2500-aetr-v$MULTI_VERSION.bin;
mv build/Multiprotocol.ino.bin ./binaries/mm-stm-cc2500-aetr-air-v$MULTI_VERSION.bin;

printf "\e[33;1mBuilding mm-stm-cc2500-taer-air-v$MULTI_VERSION.bin\e[0m\n";
opt_replace AETR TAER;
buildMulti;
exitcode=$((exitcode+$?));
mv build/Multiprotocol.ino.bin ./binaries/mm-stm-cc2500-taer-air-v$MULTI_VERSION.bin;

printf "\e[33;1mBuilding mm-stm-cc2500-reta-air-v$MULTI_VERSION.bin\e[0m\n";
opt_replace TAER RETA;
buildMulti;
exitcode=$((exitcode+$?));
mv build/Multiprotocol.ino.bin ./binaries/mm-stm-cc2500-reta-air-v$MULTI_VERSION.bin;

# CC2500-only 128Kb SURFACE builds
printf "\e[33;1mBuilding mm-stm-cc2500-aetr-sfc-v$MULTI_VERSION.bin\e[0m\n";
opt_remove MULTI_AIR;
opt_add MULTI_SURFACE;
buildMulti;
exitcode=$((exitcode+$?));
mv build/Multiprotocol.ino.bin ./binaries/mm-stm-cc2500-aetr-sfc-v$MULTI_VERSION.bin;

printf "\e[33;1mBuilding mm-stm-cc2500-taer-v$MULTI_VERSION.bin\e[0m\n";
printf "\e[33;1mBuilding mm-stm-cc2500-taer-sfc-v$MULTI_VERSION.bin\e[0m\n";
opt_replace AETR TAER;
buildMulti;
exitcode=$((exitcode+$?));
mv build/Multiprotocol.ino.bin ./binaries/mm-stm-cc2500-taer-v$MULTI_VERSION.bin;
mv build/Multiprotocol.ino.bin ./binaries/mm-stm-cc2500-taer-sfc-v$MULTI_VERSION.bin;

printf "\e[33;1mBuilding mm-stm-cc2500-reta-v$MULTI_VERSION.bin\e[0m\n";
printf "\e[33;1mBuilding mm-stm-cc2500-reta-sfc-v$MULTI_VERSION.bin\e[0m\n";
opt_replace TAER RETA;
buildMulti;
exitcode=$((exitcode+$?));
mv build/Multiprotocol.ino.bin ./binaries/mm-stm-cc2500-reta-v$MULTI_VERSION.bin;
mv build/Multiprotocol.ino.bin ./binaries/mm-stm-cc2500-reta-sfc-v$MULTI_VERSION.bin;

# CC2500-only LBT/EU builds
# CC2500-only 128Kb LBT/EU builds
printf "\e[33;1mBuilding mm-stm-cc2500-aetr-lbt-v$MULTI_VERSION.bin\e[0m\n";
opt_replace RETA AETR;
opt_remove MULTI_SURFACE;
opt_add MULTI_EU;
buildMulti;
exitcode=$((exitcode+$?));
Expand Down
37 changes: 29 additions & 8 deletions buildroot/bin/build_release_stm32f1_cc2500_64k
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,54 @@
source ./buildroot/bin/buildFunctions;
exitcode=0;

# CC2500-only 64Kb FCC builds
printf "\e[33;1mBuilding mm-stm-cc2500-64-aetr-v$MULTI_VERSION.bin\e[0m\n";
opt_disable SCANNER_CC2500_INO;
# CC2500-only 64Kb AIR builds
printf "\e[33;1mBuilding mm-stm-cc2500-64-aetr-air-v$MULTI_VERSION.bin\e[0m\n";
opt_add MULTI_AIR
opt_disable ENABLE_PPM;
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/mm-stm-cc2500-64-aetr-v$MULTI_VERSION.bin;
mv build/Multiprotocol.ino.bin ./binaries/mm-stm-cc2500-64-aetr-air-v$MULTI_VERSION.bin;

printf "\e[33;1mBuilding mm-stm-cc2500-64-taer-v$MULTI_VERSION.bin\e[0m\n";
printf "\e[33;1mBuilding mm-stm-cc2500-64-taer-air-v$MULTI_VERSION.bin\e[0m\n";
opt_replace AETR TAER;
buildMulti;
exitcode=$((exitcode+$?));
mv build/Multiprotocol.ino.bin ./binaries/mm-stm-cc2500-64-taer-v$MULTI_VERSION.bin;
mv build/Multiprotocol.ino.bin ./binaries/mm-stm-cc2500-64-taer-air-v$MULTI_VERSION.bin;

printf "\e[33;1mBuilding mm-stm-cc2500-64-reta-v$MULTI_VERSION.bin\e[0m\n";
printf "\e[33;1mBuilding mm-stm-cc2500-64-reta-air-v$MULTI_VERSION.bin\e[0m\n";
opt_replace TAER RETA;
buildMulti;
exitcode=$((exitcode+$?));
mv build/Multiprotocol.ino.bin ./binaries/mm-stm-cc2500-64-reta-v$MULTI_VERSION.bin;
mv build/Multiprotocol.ino.bin ./binaries/mm-stm-cc2500-64-reta-air-v$MULTI_VERSION.bin;

# CC2500-only 64Kb SURFACE builds
printf "\e[33;1mBuilding mm-stm-cc2500-64-aetr-sfc-v$MULTI_VERSION.bin\e[0m\n";
opt_remove MULTI_AIR;
opt_add MULTI_SURFACE;
buildMulti;
exitcode=$((exitcode+$?));
mv build/Multiprotocol.ino.bin ./binaries/mm-stm-cc2500-64-aetr-sfc-v$MULTI_VERSION.bin;

printf "\e[33;1mBuilding mm-stm-cc2500-64-taer-sfc-v$MULTI_VERSION.bin\e[0m\n";
opt_replace AETR TAER;
buildMulti;
exitcode=$((exitcode+$?));
mv build/Multiprotocol.ino.bin ./binaries/mm-stm-cc2500-64-taer-sfc-v$MULTI_VERSION.bin;

printf "\e[33;1mBuilding mm-stm-cc2500-64-reta-sfc-v$MULTI_VERSION.bin\e[0m\n";
opt_replace TAER RETA;
buildMulti;
exitcode=$((exitcode+$?));
mv build/Multiprotocol.ino.bin ./binaries/mm-stm-cc2500-64-reta-sfc-v$MULTI_VERSION.bin;

# CC2500-only 64Kb LBT/EU builds
printf "\e[33;1mBuilding mm-stm-cc2500-64-aetr-lbt-v$MULTI_VERSION.bin\e[0m\n";
opt_replace RETA AETR;
opt_remove MULTI_SURFACE;
opt_add MULTI_EU;
buildMulti;
exitcode=$((exitcode+$?));
Expand Down

0 comments on commit b4e5394

Please sign in to comment.