comparison ostc4pack/create_full_update_bin.sh @ 163:9c77cfe8c2b2 linux-build

Add Linux pack script and a README to explain a little. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
author Jan Mulder <jlmulder@xs4all.nl>
date Thu, 21 Feb 2019 16:56:08 +0100
parents
children f4b553da620a
comparison
equal deleted inserted replaced
162:ad98da7e74f8 163:9c77cfe8c2b2
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