summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--c/src/lib/libbsp/arm/rtl22xx/ChangeLog5
-rw-r--r--c/src/lib/libbsp/arm/rtl22xx/make/custom/rtl22xx.cfg24
-rw-r--r--c/src/lib/libbsp/arm/rtl22xx/make/custom/rtl22xx_t.cfg20
3 files changed, 49 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/arm/rtl22xx/ChangeLog b/c/src/lib/libbsp/arm/rtl22xx/ChangeLog
index e6caefc172..caa89401f3 100644
--- a/c/src/lib/libbsp/arm/rtl22xx/ChangeLog
+++ b/c/src/lib/libbsp/arm/rtl22xx/ChangeLog
@@ -1,3 +1,8 @@
+2009-10-15 Ralf Cors├ępius <ralf.corsepius@rtems.org>
+
+ * make/custom/rtl22xx.cfg: New (relocated from /make/custom).
+ * make/custom/rtl22xx_t.cfg: New (relocated from /make/custom).
+
2009-09-15 Ralf Cors├ępius <ralf.corsepius@rtems.org>
* configure.ac: Remove RTEMS_BSP_BOOTCARD_OPTIONS.
diff --git a/c/src/lib/libbsp/arm/rtl22xx/make/custom/rtl22xx.cfg b/c/src/lib/libbsp/arm/rtl22xx/make/custom/rtl22xx.cfg
new file mode 100644
index 0000000000..c8778463cb
--- /dev/null
+++ b/c/src/lib/libbsp/arm/rtl22xx/make/custom/rtl22xx.cfg
@@ -0,0 +1,24 @@
+#
+# Config file for LPC22xx board
+#
+# $Id$
+#
+
+include $(RTEMS_ROOT)/make/custom/default.cfg
+
+RTEMS_CPU=arm
+RTEMS_CPU_MODEL=lpc22xx
+
+# This is the actual bsp directory used during the build process.
+RTEMS_BSP_FAMILY=rtl22xx
+
+# This contains the compiler options necessary to select the CPU model
+# and (hopefully) optimize for it.
+#
+CPU_CFLAGS = -mcpu=arm7tdmi -mstructure-size-boundary=8 -mapcs-frame
+
+# optimize flag: typically -0, could use -O4 or -fast
+# -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 = -Os -g -DNDEBUG
diff --git a/c/src/lib/libbsp/arm/rtl22xx/make/custom/rtl22xx_t.cfg b/c/src/lib/libbsp/arm/rtl22xx/make/custom/rtl22xx_t.cfg
new file mode 100644
index 0000000000..c12f9f148b
--- /dev/null
+++ b/c/src/lib/libbsp/arm/rtl22xx/make/custom/rtl22xx_t.cfg
@@ -0,0 +1,20 @@
+#
+# Config file for LPC22xx board in Thumb mode
+#
+# $Id$
+#
+set USE_THUMB_MODE=YES
+
+# 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
+
+# Miscellaneous additions go here