mirror of
				https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
				synced 2025-10-30 02:21:05 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			119 lines
		
	
	
		
			3.9 KiB
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			119 lines
		
	
	
		
			3.9 KiB
		
	
	
	
		
			Bash
		
	
	
	
	
	
| #!/usr/bin/env bash
 | |
| 
 | |
| source ./buildroot/bin/buildFunctions;
 | |
| exitcode=0;
 | |
| 
 | |
| # Generic 4-in-1 builds
 | |
| printf "\e[33;1mBuilding multi-stm-serial-aetr-v$MULTI_VERSION.bin\e[0m\n";
 | |
| opt_disable ENABLE_PPM;
 | |
| buildMulti;
 | |
| exitcode=$((exitcode+$?));
 | |
| mv build/Multiprotocol.ino.bin ./binaries/multi-stm-serial-aetr-v$MULTI_VERSION.bin;
 | |
| 
 | |
| printf "\e[33;1mBuilding multi-stm-serial-taer-v$MULTI_VERSION.bin\e[0m\n";
 | |
| opt_replace AETR TAER;
 | |
| buildMulti;
 | |
| exitcode=$((exitcode+$?));
 | |
| mv build/Multiprotocol.ino.bin ./binaries/multi-stm-serial-taer-v$MULTI_VERSION.bin;
 | |
| 
 | |
| printf "\e[33;1mBuilding multi-stm-serial-reta-v$MULTI_VERSION.bin\e[0m\n";
 | |
| opt_replace TAER RETA;
 | |
| buildMulti;
 | |
| exitcode=$((exitcode+$?));
 | |
| mv build/Multiprotocol.ino.bin ./binaries/multi-stm-serial-reta-v$MULTI_VERSION.bin;
 | |
| 
 | |
| # DIY 5-in-1 builds
 | |
| printf "\e[33;1mBuilding multi-stm-5in1-aetr-v$MULTI_VERSION.bin\e[0m\n";
 | |
| opt_replace RETA AETR;
 | |
| opt_enable SX1276_INSTALLED;
 | |
| buildMulti;
 | |
| exitcode=$((exitcode+$?));
 | |
| mv build/Multiprotocol.ino.bin ./binaries/multi-stm-5in1-aetr-v$MULTI_VERSION.bin;
 | |
| 
 | |
| printf "\e[33;1mBuilding multi-stm-5in1-taer-v$MULTI_VERSION.bin\e[0m\n";
 | |
| opt_replace AETR TAER;
 | |
| buildMulti;
 | |
| exitcode=$((exitcode+$?));
 | |
| mv build/Multiprotocol.ino.bin ./binaries/multi-stm-5in1-taer-v$MULTI_VERSION.bin;
 | |
| 
 | |
| printf "\e[33;1mBuilding multi-stm-5in1-reta-v$MULTI_VERSION.bin\e[0m\n";
 | |
| opt_replace TAER RETA;
 | |
| buildMulti;
 | |
| exitcode=$((exitcode+$?));
 | |
| mv build/Multiprotocol.ino.bin ./binaries/multi-stm-5in1-reta-v$MULTI_VERSION.bin;
 | |
| 
 | |
| # T-Lite 5-in-1 builds
 | |
| printf "\e[33;1mBuilding multi-tlite5in1-aetr-v$MULTI_VERSION.bin\e[0m\n";
 | |
| opt_replace RETA AETR;
 | |
| opt_disable INVERT_TELEMETRY;
 | |
| opt_disable SX1276_INSTALLED;
 | |
| opt_enable "MULTI_5IN1_INTERNAL JP_TLite"
 | |
| buildMulti;
 | |
| exitcode=$((exitcode+$?));
 | |
| mv build/Multiprotocol.ino.bin ./binaries/multi-tlite5in1-aetr-v$MULTI_VERSION.bin;
 | |
| 
 | |
| printf "\e[33;1mBuilding multi-tlite5in1-taer-v$MULTI_VERSION.bin\e[0m\n";
 | |
| opt_replace AETR TAER;
 | |
| buildMulti;
 | |
| exitcode=$((exitcode+$?));
 | |
| mv build/Multiprotocol.ino.bin ./binaries/multi-tlite5in1-taer-v$MULTI_VERSION.bin;
 | |
| 
 | |
| printf "\e[33;1mBuilding multi-tlite5in1-reta-v$MULTI_VERSION.bin\e[0m\n";
 | |
| opt_replace TAER RETA;
 | |
| buildMulti;
 | |
| exitcode=$((exitcode+$?));
 | |
| mv build/Multiprotocol.ino.bin ./binaries/multi-tlite5in1-reta-v$MULTI_VERSION.bin;
 | |
| 
 | |
| # CC2500-only builds
 | |
| printf "\e[33;1mBuilding multi-stm-cc2500-aetr-v$MULTI_VERSION.bin\e[0m\n";
 | |
| opt_replace RETA AETR;
 | |
| opt_disable "MULTI_5IN1_INTERNAL JP_TLite"
 | |
| 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-stm-cc2500-aetr-v$MULTI_VERSION.bin;
 | |
| 
 | |
| printf "\e[33;1mBuilding multi-stm-cc2500-taer-v$MULTI_VERSION.bin\e[0m\n";
 | |
| opt_replace AETR TAER;
 | |
| buildMulti;
 | |
| exitcode=$((exitcode+$?));
 | |
| mv build/Multiprotocol.ino.bin ./binaries/multi-stm-cc2500-taer-v$MULTI_VERSION.bin;
 | |
| 
 | |
| printf "\e[33;1mBuilding multi-stm-cc2500-reta-v$MULTI_VERSION.bin\e[0m\n";
 | |
| opt_replace TAER RETA;
 | |
| buildMulti;
 | |
| exitcode=$((exitcode+$?));
 | |
| mv build/Multiprotocol.ino.bin ./binaries/multi-stm-cc2500-reta-v$MULTI_VERSION.bin;
 | |
| 
 | |
| # 4-in-1 PPM builds
 | |
| printf "\e[33;1mBuilding multi-stm-ppm-aetr-v$MULTI_VERSION.bin\e[0m\n";
 | |
| 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 "\e[33;1mBuilding multi-stm-ppm-taer-v$MULTI_VERSION.bin\e[0m\n";
 | |
| opt_replace AETR TAER;
 | |
| buildMulti;
 | |
| exitcode=$((exitcode+$?));
 | |
| mv build/Multiprotocol.ino.bin ./binaries/multi-stm-ppm-taer-v$MULTI_VERSION.bin;
 | |
| 
 | |
| printf "\e[33;1mBuilding multi-stm-ppm-reta-v$MULTI_VERSION.bin\e[0m\n";
 | |
| opt_replace TAER RETA;
 | |
| buildMulti;
 | |
| exitcode=$((exitcode+$?));
 | |
| mv build/Multiprotocol.ino.bin ./binaries/multi-stm-ppm-reta-v$MULTI_VERSION.bin; 
 | |
| 
 | |
| exit $exitcode;
 |