]> rtime.felk.cvut.cz Git - sysless.git/commitdiff
lpc17xx - optimize for size and discard unused functions and variables.
authorPavel Pisa <pisa@cmp.felk.cvut.cz>
Tue, 25 Jan 2011 09:36:54 +0000 (10:36 +0100)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Tue, 25 Jan 2011 09:36:54 +0000 (10:36 +0100)
This works for both ulboot and large SuiTk based application
for LMC1 after previous fixes.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
board/arm/lpc17xx-common/config/config.lmc1

index 9d97b491c1757e5976e688310b16b88ccfd9803a..a86b597089db6d0ec47b80c0d5d8b2eda378458b 100644 (file)
@@ -25,14 +25,14 @@ TARGET_ARCH = -mthumb -mcpu=cortex-m3
 # Set default C flags. If theese are set elsewhere (e.g. on a command
 # line), these default flags are not used.
 DEBUG ?= -ggdb
-OPTIMIZE ?= -O2
+#OPTIMIZE ?= -O2
 
 # Set default C flags. If theese are set elsewhere (e.g. on a command
 # line), these default flags are not used.
 #DEBUG ?= -g
-#OPTIMIZE ?= -Os -ffunction-sections -fdata-sections -Wl,--gc-section
-#LDFLAGS += -Wl,--cref 
-#LDFLAGS += -Wl,--gc-section
+OPTIMIZE ?= -Os -ffunction-sections -fdata-sections -Wl,--gc-section
+LDFLAGS += -Wl,--cref 
+LDFLAGS += -Wl,--gc-section
 
 LPC21ISP=lpc21isp-179
 LPC_BAUD = 38400