summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--aclocal/bsp-alias.m41
-rw-r--r--aclocal/check-bsps.m41
-rw-r--r--make/ChangeLog4
-rw-r--r--make/custom/lpc2478.cfg24
5 files changed, 35 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 635d68b6a5..575de6af64 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-09-22 Sebastian Huber <sebastian.huber@embedded-brains.de>
+
+ * aclocal/bsp-alias.m4, aclocal/check-bsps.m4: Added defines for
+ LPC2478 BSP.
+
2008-09-09 Joel Sherrill <joel.sherrill@oarcorp.com>
* README.configure: Updated list of BSPs.
diff --git a/aclocal/bsp-alias.m4 b/aclocal/bsp-alias.m4
index 49bab129e0..ab354a53a0 100644
--- a/aclocal/bsp-alias.m4
+++ b/aclocal/bsp-alias.m4
@@ -36,6 +36,7 @@ AC_DEFUN([_RTEMS_BSP_ALIAS],
hsc_cm01) $2=gen83xx ;; # MPC8349 based board
mpc8313erdb) $2=gen83xx ;; # MPC83XX based board
rtl22xx_t) $2=rtl22xx ;; # rtl22xx bsp in thumb mode
+ lpc2478) $2=lpc24xx ;; # LPC2478 (QVGA Base Board from Embedded Artists)
simcpu32) $2=sim68000 ;; # BSVC CPU32 variant
simsh7032) $2=shsim ;; # SH7032 simulator
simsh7045) $2=shsim ;; # SH7045 simulator
diff --git a/aclocal/check-bsps.m4 b/aclocal/check-bsps.m4
index 7a0be83f11..d782648d24 100644
--- a/aclocal/check-bsps.m4
+++ b/aclocal/check-bsps.m4
@@ -34,6 +34,7 @@ AC_MSG_CHECKING([for available BSPs])
pc386) bsps="pc386 pc386dx pc486 pc586 pc686 pck6";;
erc32) bsps="erc32 sis";;
rtl22xx) bsps="rtl22xx rtl22xx_t)";;
+ lpc24xx) bsps="lpc2478";;
sim68000) bsps="sim68000 simcpu32";;
shsim) bsps="simsh7032 simsh7045";;
*) bsps="$bsp_family";;
diff --git a/make/ChangeLog b/make/ChangeLog
index e1d93401d6..471312de1e 100644
--- a/make/ChangeLog
+++ b/make/ChangeLog
@@ -1,3 +1,7 @@
+2008-09-22 Sebastian Huber <sebastian.huber@embedded-brains.de>
+
+ * custom/lpc2478.cfg: New file.
+
2008-09-19 Joel Sherrill <joel.sherrill@oarcorp.com>
* custom/ep1a.cfg, custom/mtx603e.cfg, custom/mvme2100.cfg,
diff --git a/make/custom/lpc2478.cfg b/make/custom/lpc2478.cfg
new file mode 100644
index 0000000000..90929506de
--- /dev/null
+++ b/make/custom/lpc2478.cfg
@@ -0,0 +1,24 @@
+#
+# Config file for LPC2478 (QVGA Base Board from Embedded Artists).
+#
+# $Id$
+#
+
+include $(RTEMS_ROOT)/make/custom/default.cfg
+
+RTEMS_CPU = arm
+RTEMS_BSP_FAMILY = lpc24xx
+RTEMS_BOARD_MODEL = LPC2478
+
+CPU_CFLAGS = -mcpu=arm7tdmi -mstructure-size-boundary=8 -mapcs-frame \
+ -D$(RTEMS_BOARD_MODEL) \
+ -Wextra -Wno-unused -Wpointer-arith -Wcast-qual -Wconversion -Wmissing-prototypes
+
+CFLAGS_OPTIMIZE_V = -Os -g
+
+define bsp-post-link
+ $(OBJCOPY) -O binary '$@' '$(basename $@).bin'
+ gzip -f -9 '$(basename $@).bin'
+ mkimage -A arm -O rtems -T kernel -C gzip -a a0000000 -e a0000000 -name '$(notdir $@)' -d '$(basename $@).bin.gz' '$(basename $@).img'
+ $(default-bsp-post-link)
+endef