mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-20 20:31:06 +00:00
bootloader: align during docker build
This commit is contained in:
parent
1c55ec0fb3
commit
5fa82cc4cb
@ -12,7 +12,7 @@ docker run -t -v $(pwd)/output:/output $IMAGETAG /bin/sh -c "\
|
|||||||
git submodule update --init && \
|
git submodule update --init && \
|
||||||
CFLAGS='-std=c99' make -C vendor/libopencm3 && \
|
CFLAGS='-std=c99' make -C vendor/libopencm3 && \
|
||||||
make && \
|
make && \
|
||||||
make -C bootloader && \
|
make -C bootloader align && \
|
||||||
cp bootloader/bootloader.bin /output/bootloader-$FIRMWARETAG.bin"
|
cp bootloader/bootloader.bin /output/bootloader-$FIRMWARETAG.bin"
|
||||||
|
|
||||||
echo "---------------------"
|
echo "---------------------"
|
||||||
|
@ -7,5 +7,5 @@ fs = os.stat(fn).st_size
|
|||||||
if fs > 32768:
|
if fs > 32768:
|
||||||
raise Exception('bootloader has to be smaller than 32768 bytes')
|
raise Exception('bootloader has to be smaller than 32768 bytes')
|
||||||
with open(fn, 'ab') as f:
|
with open(fn, 'ab') as f:
|
||||||
f.write(os.urandom(32768 - fs))
|
f.write(b'\xFF' * (32768 - fs))
|
||||||
f.close()
|
f.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user