summaryrefslogtreecommitdiffstats
path: root/bsps/arm/rtl22xx/config/rtl22xx_t.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'bsps/arm/rtl22xx/config/rtl22xx_t.cfg')
-rw-r--r--bsps/arm/rtl22xx/config/rtl22xx_t.cfg19
1 files changed, 19 insertions, 0 deletions
diff --git a/bsps/arm/rtl22xx/config/rtl22xx_t.cfg b/bsps/arm/rtl22xx/config/rtl22xx_t.cfg
new file mode 100644
index 0000000000..5cf8b66246
--- /dev/null
+++ b/bsps/arm/rtl22xx/config/rtl22xx_t.cfg
@@ -0,0 +1,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