blob: 5cf8b662464926b4d1a6799956e46feb319172a5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#
# Config file for LPC22xx board in Thumb mode
#
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
include $(RTEMS_ROOT)/make/custom/rtl22xx.cfg
CPU_CFLAGS += -mthumb
#CFLAG: -mthumb-interwork can add veneer between ARM and Thumb code.
#CPU_CFLAGS += -mthumb-interwork -D __THUMB_INTERWORK__ -mthumb
#CPU_ASFLAGS += -D __THUMB_INTERWORK__ -mthumb-interwork
CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
LDFLAGS = -Wl,--gc-sections
|