Add -Os flag to release and debug builds
To fit the build on boards with 512K of flash, build using -Os flag.
This commit is contained in:
parent
92c98c52d6
commit
4c2ad0f545
|
@ -53,11 +53,11 @@ TARGET_LDFLAGS = \
|
|||
--text-section-literals
|
||||
|
||||
ifeq ($(FLAVOR),debug)
|
||||
TARGET_LDFLAGS += -g -O2
|
||||
TARGET_LDFLAGS += -g -Os
|
||||
endif
|
||||
|
||||
ifeq ($(FLAVOR),release)
|
||||
TARGET_LDFLAGS += -g -O0
|
||||
TARGET_LDFLAGS += -Os
|
||||
endif
|
||||
|
||||
LD_FILE = $(LDDIR)/eagle.app.v6.ld
|
||||
|
|
Loading…
Reference in New Issue