summaryrefslogtreecommitdiffstats
path: root/make/custom/rtl22xx.cfg
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--make/custom/rtl22xx.cfg4
1 files changed, 2 insertions, 2 deletions
diff --git a/make/custom/rtl22xx.cfg b/make/custom/rtl22xx.cfg
index 617b92ee52..1037e671d6 100644
--- a/make/custom/rtl22xx.cfg
+++ b/make/custom/rtl22xx.cfg
@@ -21,11 +21,11 @@ CPU_CFLAGS = -mcpu=arm7tdmi -mstructure-size-boundary=8 -mapcs-frame
# -O4 is ok for RTEMS
# NOTE2: some level of -O may be actually required by inline assembler (at least
# -O2 so far.
-CFLAGS_OPTIMIZE_V=-O2 -g
+CFLAGS_OPTIMIZE_V=-Os -g -DNDEBUG
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ \
- $(LINK_OBJS) $(LINK_LIBS)
+ $(LINK_OBJS) $(LINK_LIBS) -Wl,-Map,$(basename $@).map
$(NM) -g -n $(basename $@).exe > $(basename $@).num
$(SIZE) $(basename $@).exe
endef