summaryrefslogtreecommitdiffstats
path: root/make/custom
diff options
context:
space:
mode:
Diffstat (limited to 'make/custom')
-rw-r--r--make/custom/lpc2478_ncs.cfg14
-rw-r--r--make/custom/lpc2478_ncs_ram.cfg14
-rw-r--r--make/custom/lpc24xx.cfg18
3 files changed, 46 insertions, 0 deletions
diff --git a/make/custom/lpc2478_ncs.cfg b/make/custom/lpc2478_ncs.cfg
new file mode 100644
index 0000000000..f826757f9e
--- /dev/null
+++ b/make/custom/lpc2478_ncs.cfg
@@ -0,0 +1,14 @@
+#
+# Config file for LPC2478 (NCS).
+#
+# $Id$
+#
+
+LPC24XX_LINKCMDS = linkcmds.lpc2478_ncs
+
+include $(RTEMS_ROOT)/make/custom/lpc24xx.cfg
+
+define bsp-post-link
+ $(OBJCOPY) -O ihex '$@' '$(basename $@).hex'
+ $(default-bsp-post-link)
+endef
diff --git a/make/custom/lpc2478_ncs_ram.cfg b/make/custom/lpc2478_ncs_ram.cfg
new file mode 100644
index 0000000000..ae514d45cd
--- /dev/null
+++ b/make/custom/lpc2478_ncs_ram.cfg
@@ -0,0 +1,14 @@
+#
+# Config file for LPC2478 (NCS, code and data in external RAM).
+#
+# $Id$
+#
+
+LPC24XX_LINKCMDS = linkcmds.lpc2478_ncs_ram
+
+include $(RTEMS_ROOT)/make/custom/lpc24xx.cfg
+
+define bsp-post-link
+ $(OBJCOPY) -S '$@' '$(basename $@).elf'
+ $(default-bsp-post-link)
+endef
diff --git a/make/custom/lpc24xx.cfg b/make/custom/lpc24xx.cfg
new file mode 100644
index 0000000000..41c40302a4
--- /dev/null
+++ b/make/custom/lpc24xx.cfg
@@ -0,0 +1,18 @@
+#
+# Config file for LPC24XX.
+#
+# $Id$
+#
+
+include $(RTEMS_ROOT)/make/custom/default.cfg
+
+RTEMS_CPU = arm
+
+RTEMS_BSP_FAMILY = lpc24xx
+
+CPU_CFLAGS = -mcpu=arm7tdmi-s -mstructure-size-boundary=8 -mapcs-frame \
+ -Wextra -Wno-unused -Wpointer-arith -Wcast-qual -Wconversion -Wmissing-prototypes -fno-inline
+
+CFLAGS_OPTIMIZE_V = -Os -g
+
+LDFLAGS += -qnolinkcmds -T $(LPC24XX_LINKCMDS)