File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
1111cat $BUILD /application.bin __md5hash.bin > $BUILD /MCUIMG.BIN
12+ RET=$?
1213
1314# Remove the tmp files
1415rm -f __md5hash.bin
1516
1617# Remove hte unsigned binary
1718rm -f $BUILD /application.bin
19+
20+ exit $RET
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ BOOTMGR=bootmgr/build/$1
1111if [ ! -f $RELOCATOR /relocator.bin ]; then
1212
1313 echo " Error : Relocator Not found!"
14- exit
14+ exit 1
1515else
1616 echo " Relocator found..."
1717fi
2020if [ ! -f $BOOTMGR /bootmgr.bin ]; then
2121
2222 echo " Error : Boot Manager Not found!"
23- exit
23+ exit 1
2424else
2525 echo " Boot Manager found..."
2626fi
@@ -31,10 +31,10 @@ echo "Generating bootloader..."
3131# Generate an all 0 bin file
3232dd 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
3535dd 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
3838cat __tmp.bin $BOOTMGR /bootmgr.bin > $BOOTMGR /bootloader.bin
3939
4040# Remove the tmp files
You can’t perform that action at this time.
0 commit comments