Commit 4c2ad0f5 authored by robertfoss's avatar robertfoss
Browse files

Add -Os flag to release and debug builds

To fit the build on boards with 512K of flash, build using -Os flag.
parent 92c98c52
...@@ -53,11 +53,11 @@ TARGET_LDFLAGS = \ ...@@ -53,11 +53,11 @@ TARGET_LDFLAGS = \
--text-section-literals --text-section-literals
ifeq ($(FLAVOR),debug) ifeq ($(FLAVOR),debug)
TARGET_LDFLAGS += -g -O2 TARGET_LDFLAGS += -g -Os
endif endif
ifeq ($(FLAVOR),release) ifeq ($(FLAVOR),release)
TARGET_LDFLAGS += -g -O0 TARGET_LDFLAGS += -Os
endif endif
LD_FILE = $(LDDIR)/eagle.app.v6.ld LD_FILE = $(LDDIR)/eagle.app.v6.ld
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment