[rtems commit] bsp/ngmp: New BSP variant

Sebastian Huber sebh at rtems.org
Wed Nov 13 08:28:18 UTC 2013


Module:    rtems
Branch:    master
Commit:    12cbc370c050e3a68aa4286173e28832b2f4f34a
Changeset: http://git.rtems.org/rtems/commit/?id=12cbc370c050e3a68aa4286173e28832b2f4f34a

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Nov 12 10:29:50 2013 +0100

bsp/ngmp: New BSP variant

---

 c/src/lib/libbsp/sparc/leon3/Makefile.am           |    1 +
 c/src/lib/libbsp/sparc/leon3/make/custom/ngmp.cfg  |    1 +
 c/src/lib/libbsp/sparc/leon3/preinstall.am         |    4 ++++
 c/src/lib/libbsp/sparc/leon3/startup/linkcmds.ngmp |   19 +++++++++++++++++++
 4 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/c/src/lib/libbsp/sparc/leon3/Makefile.am b/c/src/lib/libbsp/sparc/leon3/Makefile.am
index f34bb17..2612438 100644
--- a/c/src/lib/libbsp/sparc/leon3/Makefile.am
+++ b/c/src/lib/libbsp/sparc/leon3/Makefile.am
@@ -26,6 +26,7 @@ project_lib_DATA = start.$(OBJEXT)
 dist_project_lib_DATA += ../shared/startup/linkcmds.base
 dist_project_lib_DATA += startup/linkcmds
 dist_project_lib_DATA += startup/linkcmds.leon3
+dist_project_lib_DATA += startup/linkcmds.ngmp
 
 noinst_LIBRARIES += libbsp.a
 libbsp_a_SOURCES =
diff --git a/c/src/lib/libbsp/sparc/leon3/make/custom/ngmp.cfg b/c/src/lib/libbsp/sparc/leon3/make/custom/ngmp.cfg
new file mode 100644
index 0000000..86da029
--- /dev/null
+++ b/c/src/lib/libbsp/sparc/leon3/make/custom/ngmp.cfg
@@ -0,0 +1 @@
+include $(RTEMS_ROOT)/make/custom/leon3.cfg
diff --git a/c/src/lib/libbsp/sparc/leon3/preinstall.am b/c/src/lib/libbsp/sparc/leon3/preinstall.am
index fb404e5..0005edd 100644
--- a/c/src/lib/libbsp/sparc/leon3/preinstall.am
+++ b/c/src/lib/libbsp/sparc/leon3/preinstall.am
@@ -81,6 +81,10 @@ $(PROJECT_LIB)/linkcmds.leon3: startup/linkcmds.leon3 $(PROJECT_LIB)/$(dirstamp)
 	$(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds.leon3
 PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds.leon3
 
+$(PROJECT_LIB)/linkcmds.ngmp: startup/linkcmds.ngmp $(PROJECT_LIB)/$(dirstamp)
+	$(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds.ngmp
+PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds.ngmp
+
 $(PROJECT_INCLUDE)/amba.h: include/amba.h $(PROJECT_INCLUDE)/$(dirstamp)
 	$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/amba.h
 PREINSTALL_FILES += $(PROJECT_INCLUDE)/amba.h
diff --git a/c/src/lib/libbsp/sparc/leon3/startup/linkcmds.ngmp b/c/src/lib/libbsp/sparc/leon3/startup/linkcmds.ngmp
new file mode 100644
index 0000000..a1ae269
--- /dev/null
+++ b/c/src/lib/libbsp/sparc/leon3/startup/linkcmds.ngmp
@@ -0,0 +1,19 @@
+/* Default values, can be overridden */
+
+_PROM_SIZE = DEFINED (_PROM_SIZE) ? _PROM_SIZE : 0;
+
+_RAM_SIZE = DEFINED (_RAM_SIZE) ? _RAM_SIZE : 64M;
+
+/* these are the maximum values */
+
+MEMORY
+{
+  rom     : ORIGIN = 0xC0000000, LENGTH = 256M
+  ram     : ORIGIN = 0x00000000, LENGTH = 2048M
+  sram    : ORIGIN = 0xD0000000, LENGTH = 256M
+}
+
+_PROM_START = ORIGIN (rom);
+_RAM_START = ORIGIN (ram);
+
+INCLUDE linkcmds.base




More information about the vc mailing list