kopia lustrzana https://github.com/meshtastic/firmware
				
				
				
			Merge hex for wm1110 target(s)
							rodzic
							
								
									4b82634d1a
								
							
						
					
					
						commit
						fc63d956e7
					
				|  | @ -2,8 +2,8 @@ | |||
| 
 | ||||
| set -e | ||||
| 
 | ||||
| VERSION=`bin/buildinfo.py long` | ||||
| SHORT_VERSION=`bin/buildinfo.py short` | ||||
| VERSION=$(bin/buildinfo.py long) | ||||
| SHORT_VERSION=$(bin/buildinfo.py short) | ||||
| 
 | ||||
| OUTDIR=release/ | ||||
| 
 | ||||
|  | @ -11,7 +11,7 @@ rm -f $OUTDIR/firmware* | |||
| rm -r $OUTDIR/* || true | ||||
| 
 | ||||
| # Important to pull latest version of libs into all device flavors, otherwise some devices might be stale | ||||
| platformio pkg update  | ||||
| platformio pkg update | ||||
| 
 | ||||
| echo "Building for $1 with $PLATFORMIO_BUILD_FLAGS" | ||||
| rm -f .pio/build/$1/firmware.* | ||||
|  | @ -29,6 +29,14 @@ cp $DFUPKG $OUTDIR/$basename-ota.zip | |||
| 
 | ||||
| echo "Generating NRF52 uf2 file" | ||||
| SRCHEX=.pio/build/$1/firmware.hex | ||||
| 
 | ||||
| # if WM1110 target, merge hex with softdevice 7.3.0 | ||||
| if (echo $1 | grep -q "wm1110"); then | ||||
| 	echo "Merging with softdevice" | ||||
| 	bin/mergehex -m bin/s140_nrf52_7.3.0_softdevice.hex $SRCHEX -o .pio/build/$1/merged_fimware.hex | ||||
| 	SRCHEX=.pio/build/$1/merged_fimware.hex | ||||
| fi | ||||
| 
 | ||||
| bin/uf2conv.py $SRCHEX -c -o $OUTDIR/$basename.uf2 -f 0xADA52840 | ||||
| 
 | ||||
| cp bin/device-install.* $OUTDIR | ||||
|  |  | |||
										
											Plik binarny nie jest wyświetlany.
										
									
								
							
										
											
												Plik diff jest za duży
												Load Diff
											
										
									
								
							
		Ładowanie…
	
		Reference in New Issue
	
	 Ben Meadors
						Ben Meadors