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:
parent
683c5953ba
commit
3d6bfddc5f
@ -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
|
||||||
|
@ -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"
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user