From: Pavel Pisa Date: Tue, 25 Jan 2011 09:36:54 +0000 (+0100) Subject: lpc17xx - optimize for size and discard unused functions and variables. X-Git-Url: http://rtime.felk.cvut.cz/gitweb/sysless.git/commitdiff_plain/22735f30ebfd2af8721e7077f3b9838f3fab9382 lpc17xx - optimize for size and discard unused functions and variables. This works for both ulboot and large SuiTk based application for LMC1 after previous fixes. Signed-off-by: Pavel Pisa --- diff --git a/board/arm/lpc17xx-common/config/config.lmc1 b/board/arm/lpc17xx-common/config/config.lmc1 index 9d97b49..a86b597 100644 --- a/board/arm/lpc17xx-common/config/config.lmc1 +++ b/board/arm/lpc17xx-common/config/config.lmc1 @@ -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