1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-12 18:49:07 +00:00

move -Os flag to Makefiles of bootloader and fastflash

This commit is contained in:
Pavol Rusnak 2017-07-04 20:21:10 +02:00
parent 683c5953ba
commit 3d6bfddc5f
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
4 changed files with 10 additions and 7 deletions

View File

@ -13,8 +13,8 @@ addons:
script:
- CFLAGS="-std=c99" make -C vendor/libopencm3
- make
- OPTFLAGS="-Os" make -C bootloader
- OPTFLAGS="-Os" make -C fastflash
- make -C bootloader
- make -C fastflash
- make -C firmware
- make -C demo
- make -C firmware clean && make -C firmware FASTFLASH=1

View File

@ -11,7 +11,6 @@ docker run -t -v $(pwd)/output:/output $IMAGETAG /bin/sh -c "\
git checkout $FIRMWARETAG && \
git submodule update --init && \
CFLAGS='-std=c99' make -C vendor/libopencm3 && \
export OPTFLAGS=-Os
make && \
make -C bootloader && \
cp bootloader/bootloader.bin /output/bootloader-$FIRMWARETAG.bin"

View File

@ -4,14 +4,16 @@ OBJS += bootloader.o
OBJS += signatures.o
OBJS += usb.o
OBJS += ../vendor/trezor-crypto/bignum.o
OBJS += ../vendor/trezor-crypto/bignum.small.o
OBJS += ../vendor/trezor-crypto/ecdsa.small.o
OBJS += ../vendor/trezor-crypto/secp256k1.small.o
OBJS += ../vendor/trezor-crypto/sha2.o
OBJS += ../vendor/trezor-crypto/sha2.small.o
CFLAGS += -DUSE_PRECOMPUTED_IV=0
CFLAGS += -DUSE_PRECOMPUTED_CP=0
OPTFLAGS ?= -Os
include ../Makefile.include
align: $(NAME).bin

View File

@ -6,14 +6,16 @@ OBJS += bootloader.o
OBJS += signatures.o
OBJS += usb.o
OBJS += ../vendor/trezor-crypto/bignum.o
OBJS += ../vendor/trezor-crypto/bignum.small.o
OBJS += ../vendor/trezor-crypto/ecdsa.small.o
OBJS += ../vendor/trezor-crypto/secp256k1.small.o
OBJS += ../vendor/trezor-crypto/sha2.o
OBJS += ../vendor/trezor-crypto/sha2.small.o
CFLAGS += -DUSE_PRECOMPUTED_IV=0
CFLAGS += -DUSE_PRECOMPUTED_CP=0
OPTFLAGS ?= -Os
include ../Makefile.include
CFLAGS += -I../bootloader