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:
robertfoss 2015-05-14 11:27:43 -04:00
parent 92c98c52d6
commit 4c2ad0f545
1 changed files with 2 additions and 2 deletions

View File

@ -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