diff options
| author | danicampora | 2015-02-21 10:52:19 +0100 |
|---|---|---|
| committer | danicampora | 2015-02-21 14:19:36 +0100 |
| commit | 571e3f5804541fe047458c2abadf7d71e5c85397 (patch) | |
| tree | 0056106bbfa32915e558180cf7d3083667c12a5b /cc3200 | |
| parent | a6862fc812c86374ae817a919095f4d80214e932 (diff) | |
cc3200: Add exit values to the shell scripts.
Diffstat (limited to 'cc3200')
| -rw-r--r-- | cc3200/appsign.sh | 3 | ||||
| -rw-r--r-- | cc3200/bootmgr/bootgen.sh | 8 |
2 files changed, 7 insertions, 4 deletions
diff --git a/cc3200/appsign.sh b/cc3200/appsign.sh index a4b918887..16024e869 100644 --- a/cc3200/appsign.sh +++ b/cc3200/appsign.sh @@ -9,9 +9,12 @@ echo -n md5sum --binary $BUILD/application.bin | awk '{ print $1 }' > __md5hash. # Concatenate it with the application binary cat $BUILD/application.bin __md5hash.bin > $BUILD/MCUIMG.BIN +RET=$? # Remove the tmp files rm -f __md5hash.bin # Remove hte unsigned binary rm -f $BUILD/application.bin + +exit $RET
\ No newline at end of file diff --git a/cc3200/bootmgr/bootgen.sh b/cc3200/bootmgr/bootgen.sh index f90dc7315..be495b374 100644 --- a/cc3200/bootmgr/bootgen.sh +++ b/cc3200/bootmgr/bootgen.sh @@ -11,7 +11,7 @@ BOOTMGR=bootmgr/build/$1 if [ ! -f $RELOCATOR/relocator.bin ]; then echo "Error : Relocator Not found!" - exit + exit 1 else echo "Relocator found..." fi @@ -20,7 +20,7 @@ fi if [ ! -f $BOOTMGR/bootmgr.bin ]; then echo "Error : Boot Manager Not found!" - exit + exit 1 else echo "Boot Manager found..." fi @@ -31,10 +31,10 @@ echo "Generating bootloader..." # Generate an all 0 bin file dd if=/dev/zero of=__tmp.bin ibs=1 count=256 conv=notrunc >/dev/null 2>&1 -# Generate 0 a padded version of relocator +# Generate a 0 padded version of the relocator dd if=$RELOCATOR/relocator.bin of=__tmp.bin ibs=1 conv=notrunc >/dev/null 2>&1 -# Concatenate re-locator and boot-manager +# Concatenate the re-locator and the boot-manager cat __tmp.bin $BOOTMGR/bootmgr.bin > $BOOTMGR/bootloader.bin # Remove the tmp files |
