Skip to content

Commit 571e3f5

Browse files
committed
cc3200: Add exit values to the shell scripts.
1 parent a6862fc commit 571e3f5

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

cc3200/appsign.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@ echo -n md5sum --binary $BUILD/application.bin | awk '{ print $1 }' > __md5hash.
99

1010
# Concatenate it with the application binary
1111
cat $BUILD/application.bin __md5hash.bin > $BUILD/MCUIMG.BIN
12+
RET=$?
1213

1314
# Remove the tmp files
1415
rm -f __md5hash.bin
1516

1617
# Remove hte unsigned binary
1718
rm -f $BUILD/application.bin
19+
20+
exit $RET

cc3200/bootmgr/bootgen.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ BOOTMGR=bootmgr/build/$1
1111
if [ ! -f $RELOCATOR/relocator.bin ]; then
1212

1313
echo "Error : Relocator Not found!"
14-
exit
14+
exit 1
1515
else
1616
echo "Relocator found..."
1717
fi
@@ -20,7 +20,7 @@ fi
2020
if [ ! -f $BOOTMGR/bootmgr.bin ]; then
2121

2222
echo "Error : Boot Manager Not found!"
23-
exit
23+
exit 1
2424
else
2525
echo "Boot Manager found..."
2626
fi
@@ -31,10 +31,10 @@ echo "Generating bootloader..."
3131
# Generate an all 0 bin file
3232
dd if=/dev/zero of=__tmp.bin ibs=1 count=256 conv=notrunc >/dev/null 2>&1
3333

34-
# Generate 0 a padded version of relocator
34+
# Generate a 0 padded version of the relocator
3535
dd if=$RELOCATOR/relocator.bin of=__tmp.bin ibs=1 conv=notrunc >/dev/null 2>&1
3636

37-
# Concatenate re-locator and boot-manager
37+
# Concatenate the re-locator and the boot-manager
3838
cat __tmp.bin $BOOTMGR/bootmgr.bin > $BOOTMGR/bootloader.bin
3939

4040
# Remove the tmp files

0 commit comments

Comments
 (0)