1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 23:48:12 +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: script:
- CFLAGS="-std=c99" make -C vendor/libopencm3 - CFLAGS="-std=c99" make -C vendor/libopencm3
- make - make
- OPTFLAGS="-Os" make -C bootloader - make -C bootloader
- OPTFLAGS="-Os" make -C fastflash - make -C fastflash
- make -C firmware - make -C firmware
- make -C demo - make -C demo
- make -C firmware clean && make -C firmware FASTFLASH=1 - 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 checkout $FIRMWARETAG && \
git submodule update --init && \ git submodule update --init && \
CFLAGS='-std=c99' make -C vendor/libopencm3 && \ CFLAGS='-std=c99' make -C vendor/libopencm3 && \
export OPTFLAGS=-Os
make && \ make && \
make -C bootloader && \ make -C bootloader && \
cp bootloader/bootloader.bin /output/bootloader-$FIRMWARETAG.bin" cp bootloader/bootloader.bin /output/bootloader-$FIRMWARETAG.bin"

View File

@ -4,14 +4,16 @@ OBJS += bootloader.o
OBJS += signatures.o OBJS += signatures.o
OBJS += usb.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/ecdsa.small.o
OBJS += ../vendor/trezor-crypto/secp256k1.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_IV=0
CFLAGS += -DUSE_PRECOMPUTED_CP=0 CFLAGS += -DUSE_PRECOMPUTED_CP=0
OPTFLAGS ?= -Os
include ../Makefile.include include ../Makefile.include
align: $(NAME).bin align: $(NAME).bin

View File

@ -6,14 +6,16 @@ OBJS += bootloader.o
OBJS += signatures.o OBJS += signatures.o
OBJS += usb.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/ecdsa.small.o
OBJS += ../vendor/trezor-crypto/secp256k1.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_IV=0
CFLAGS += -DUSE_PRECOMPUTED_CP=0 CFLAGS += -DUSE_PRECOMPUTED_CP=0
OPTFLAGS ?= -Os
include ../Makefile.include include ../Makefile.include
CFLAGS += -I../bootloader CFLAGS += -I../bootloader