From fd1c1c95061e79707c262eee21106ac71b014c75 Mon Sep 17 00:00:00 2001 From: Thomas Doerfler Date: Mon, 22 Sep 2008 11:50:19 +0000 Subject: [PATCH] added BSP for ARM LPC24xx --- ChangeLog | 5 +++++ aclocal/bsp-alias.m4 | 1 + aclocal/check-bsps.m4 | 1 + make/ChangeLog | 4 ++++ make/custom/lpc2478.cfg | 24 ++++++++++++++++++++++++ 5 files changed, 35 insertions(+) create mode 100644 make/custom/lpc2478.cfg diff --git a/ChangeLog b/ChangeLog index 635d68b6a5..575de6af64 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-09-22 Sebastian Huber + + * aclocal/bsp-alias.m4, aclocal/check-bsps.m4: Added defines for + LPC2478 BSP. + 2008-09-09 Joel Sherrill * 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 + + * custom/lpc2478.cfg: New file. + 2008-09-19 Joel Sherrill * 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