mirror of
https://github.com/semerad/gt3b.git
synced 2026-02-19 19:11:23 +01:00
automatically set number of model memories to MANUAL-version.txt
This commit is contained in:
@@ -34,7 +34,7 @@ Flashing firmware
|
||||
|
||||
Global characteristics:
|
||||
=======================
|
||||
- 63 model memories, first 8 in EEPROM, rest in FLASH
|
||||
- NUMBER_OF_MODELS model memories, first 8 in EEPROM, rest in FLASH
|
||||
> numbers 10-19 will show with Right-Arrow
|
||||
> numbers 20-29 will show with Left-Arrow
|
||||
> numbers 30-39 will show with Left+Right-Arrows
|
||||
|
||||
5
build
5
build
@@ -19,7 +19,10 @@ fi
|
||||
|
||||
# manual, set FIRMWARE_END_ADDRESS to actual value
|
||||
FEA=$(perl -e "printf \"%x\", $(grep 'segment \.text' gt3b.map | head -n 1 | awk '{print "0x"$4}') - 1;");
|
||||
sed -e "s/FIRMWARE_END_ADDR/$FEA/" MANUAL.txt >$R/MANUAL-$V.txt
|
||||
NMODELS=$(( (0xffff - 0x$FEA) / 108 + 8 ))
|
||||
sed -e "s/FIRMWARE_END_ADDR/$FEA/" \
|
||||
-e "s/NUMBER_OF_MODELS/$NMODELS/" \
|
||||
MANUAL.txt >$R/MANUAL-$V.txt
|
||||
git add $R/MANUAL-$V.txt
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user