Mercurial > public > ostc4
annotate ostc4pack/create_full_update_bin.sh @ 271:1303747b5ba2 write-from-sim
cleanup: also write gas and setpoint changes in simulator mode
This is related to the previous commit. There is all kinds of logic around
that distinguishes real diving mode and simulator mode. This is valid in certain
cases. For example, we do not want a simulator session to act as a repetitive dive
for subsequent real dives.
What is simply wrong, is skipping relevant logic, like gas switches to act
differently in the simulator and in a real dive. The main advantage of this
commit is code simplicity. Normal users will never see the difference, as
simulator dives are not logged (unless compiled in by a developer).
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
author | Jan Mulder <jlmulder@xs4all.nl> |
---|---|
date | Sat, 27 Apr 2019 09:32:16 +0200 |
parents | 9c77cfe8c2b2 |
children | f4b553da620a |
rev | line source |
---|---|
163 | 1 #!/bin/bash |
2 | |
3 # | |
4 # path and file name settings | |
5 # | |
6 | |
7 # the build products are here | |
8 BUILD_PATH="$HOME/OSTC4workspace" | |
9 | |
10 # Debug or Release build | |
11 BUILD_TYPE="Release" | |
12 | |
13 # build project names | |
14 CPU1_DISCOVERY="CPU1-Discovery" | |
15 CPU1_FONTPACK="CPU1-FontPack" | |
16 CPU2_RTE="CPU2-RTE" | |
17 | |
18 # | |
19 # End of path and file name settings | |
20 # | |
21 | |
22 # | |
23 # Copy the bin files to pack. Build them seperately | |
24 # | |
25 cp $BUILD_PATH/$CPU1_DISCOVERY/$BUILD_TYPE/$CPU1_DISCOVERY.bin . | |
26 cp $BUILD_PATH/$CPU1_FONTPACK/$BUILD_TYPE/$CPU1_FONTPACK.bin . | |
27 cp $BUILD_PATH/$CPU2_RTE/$BUILD_TYPE/$CPU2_RTE.bin . | |
28 | |
29 # | |
30 # OSTC4pack_V4 all | |
31 # | |
32 ./src/OSTC4pack_V4 1 $CPU1_DISCOVERY.bin | |
33 ./src/OSTC4pack_V4 2 $CPU1_FONTPACK.bin | |
34 ./src/OSTC4pack_V4 0 $CPU2_RTE.bin | |
35 | |
36 # | |
37 # Final pack | |
38 # | |
39 ./src/checksum_final_add_fletcher ${CPU1_DISCOVERY}_upload.bin \ | |
40 ${CPU1_FONTPACK}_upload.bin \ | |
41 ${CPU2_RTE}_upload.bin |