summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2009-10-15 09:08:00 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2009-10-15 09:08:00 +0000
commit64e08ab36e59f8353d9dd60b9774428aebad2f26 (patch)
treeeb4bbafb45dd08d82580c45cfbddd1bd4b3835e7
parentd09a7bd0ecbe6b3b6f88fe0742360091cf776a80 (diff)
downloadrtems-64e08ab36e59f8353d9dd60b9774428aebad2f26.tar.bz2
2009-10-15 Ralf Corsépius <ralf.corsepius@rtems.org>
* make/custom/nds.cfg: New (relocated from /make/custom).
-rw-r--r--c/src/lib/libbsp/arm/nds/ChangeLog4
-rw-r--r--c/src/lib/libbsp/arm/nds/make/custom/nds.cfg40
2 files changed, 44 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/arm/nds/ChangeLog b/c/src/lib/libbsp/arm/nds/ChangeLog
index a249c926a7..6f27449972 100644
--- a/c/src/lib/libbsp/arm/nds/ChangeLog
+++ b/c/src/lib/libbsp/arm/nds/ChangeLog
@@ -1,3 +1,7 @@
+2009-10-15 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * make/custom/nds.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/nds/make/custom/nds.cfg b/c/src/lib/libbsp/arm/nds/make/custom/nds.cfg
new file mode 100644
index 0000000000..004496e75e
--- /dev/null
+++ b/c/src/lib/libbsp/arm/nds/make/custom/nds.cfg
@@ -0,0 +1,40 @@
+##
+## Config file for Nintendo DS BSP.
+##
+## $Id$
+##
+
+include $(RTEMS_ROOT)/make/custom/default.cfg
+
+RTEMS_CPU=arm
+RTEMS_CPU_MODEL=arm9tdmi
+
+# This is the actual bsp directory used during the build process.
+RTEMS_BSP_FAMILY=nds
+
+# This contains the compiler options necessary to select the CPU model
+# and (hopefully) optimize for it.
+#
+CPU_CFLAGS = -mcpu=$(RTEMS_CPU_MODEL) -msoft-float -mstructure-size-boundary=8
+# CPU_CFLAGS += -mthumb-interwork ## -D __THUMB_INTERWORK__ -mthumb
+
+# optimize flag: typically -O2
+#CFLAGS_OPTIMIZE_V = -O0 -ggdb
+CFLAGS_OPTIMIZE_V = -O2
+#CFLAGS_OPTIMIZE_V = -Os
+
+NDSTOOL = $(PROJECT_TOOLS)/ndstool
+
+ifeq ($(RTEMS_MAKEFILE_PATH),)
+ COPROC_ELF_PATH = $(abs_builddir)/../../../lib/libbsp/arm/nds/
+else
+ COPROC_ELF_PATH = $(RTEMS_MAKEFILE_PATH)/lib
+endif
+
+define bsp-post-link
+ $(default-bsp-post-link)
+ $(OBJCOPY) -O binary $(basename $@).exe $(basename $@).bin
+ $(NDSTOOL) -c $(basename $@).nds -9 $(basename $@).bin \
+ -7 $(COPROC_ELF_PATH)/coproc.bin
+ rm -f $(basename $@).bin
+endef