163
+ − 1 #!/bin/bash
+ − 2
+ − 3 #
+ − 4 # path and file name settings
+ − 5 #
+ − 6
+ − 7 # the build products are here
660
+ − 8 BUILD_PATH="$HOME/ac6_workspace"
163
+ − 9
+ − 10 # Debug or Release build
660
+ − 11 BUILD_TYPE="Debug"
163
+ − 12
+ − 13 # build project names
660
+ − 14 CPU1_DISCOVERY="ostc4_discovery"
+ − 15 CPU1_FONTPACK="ostc4_fontpack"
+ − 16 CPU2_RTE="ostc4_rte"
163
+ − 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