bootloader: use double sha in docker build

This commit is contained in:
Pavol Rusnak 2017-07-19 13:06:10 +02:00
parent 5fa82cc4cb
commit e9fb5b08c7
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
1 changed files with 1 additions and 1 deletions

View File

@ -18,6 +18,6 @@ docker run -t -v $(pwd)/output:/output $IMAGETAG /bin/sh -c "\
echo "---------------------"
echo "Bootloader fingerprint:"
FILENAME=output/bootloader-$FIRMWARETAG.bin
sha256sum "$FILENAME"
/usr/bin/env python -c "import hashlib ; print(hashlib.sha256(hashlib.sha256(open('$FILENAME', 'rb').read()).digest()).hexdigest())"
FILESIZE=$(stat -c%s "$FILENAME")
echo "Bootloader size: $FILESIZE bytes (out of 32768 maximum)"