[rtems commit] libcpu: Add new entry for or1k cpu and include cache manager stubs.

Joel Sherrill joel at rtems.org
Mon Aug 25 16:05:52 UTC 2014


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

Author:    Hesham ALMatary <heshamelmatary at gmail.com>
Date:      Fri Aug 22 15:20:47 2014 -0500

libcpu: Add new entry for or1k cpu and include cache manager stubs.

---

 c/src/lib/libcpu/or1k/Makefile.am           |   20 +++++++++++++++++
 c/src/lib/libcpu/or1k/configure.ac          |   31 +++++++++++++++++++++++++++
 c/src/lib/libcpu/or1k/preinstall.am         |   23 ++++++++++++++++++++
 c/src/lib/libcpu/or1k/shared/cache/cache_.h |   11 +++++++++
 4 files changed, 85 insertions(+), 0 deletions(-)

diff --git a/c/src/lib/libcpu/or1k/Makefile.am b/c/src/lib/libcpu/or1k/Makefile.am
new file mode 100644
index 0000000..f4a6372
--- /dev/null
+++ b/c/src/lib/libcpu/or1k/Makefile.am
@@ -0,0 +1,20 @@
+ACLOCAL_AMFLAGS = -I ../../../aclocal
+
+include $(top_srcdir)/../../../automake/compile.am
+
+CLEANFILES =
+DISTCLEANFILES =
+noinst_PROGRAMS =
+
+include_libcpudir = $(includedir)/libcpu
+
+## shared/cache
+include_libcpu_HEADERS = ../shared/include/cache.h
+noinst_PROGRAMS += shared/cache.rel
+shared_cache_rel_SOURCES = ../shared/src/no_cache.c shared/cache/cache_.h
+shared_cache_rel_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/shared/cache
+shared_cache_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
+
+include $(srcdir)/preinstall.am
+
+include $(top_srcdir)/../../../automake/local.am
diff --git a/c/src/lib/libcpu/or1k/configure.ac b/c/src/lib/libcpu/or1k/configure.ac
new file mode 100644
index 0000000..c87c0f1
--- /dev/null
+++ b/c/src/lib/libcpu/or1k/configure.ac
@@ -0,0 +1,31 @@
+## Process this file with autoconf to produce a configure script.
+
+AC_PREREQ([2.69])
+AC_INIT([rtems-c-src-lib-libcpu-or1k],[_RTEMS_VERSION],[http://www.rtems.org/bugzilla])
+RTEMS_TOP([../../../../..],[../../..])
+
+RTEMS_CANONICAL_TARGET_CPU
+
+AM_INIT_AUTOMAKE([no-define foreign subdir-objects 1.12.2])
+AM_MAINTAINER_MODE
+
+RTEMS_ENV_RTEMSBSP
+
+RTEMS_PROJECT_ROOT
+
+RTEMS_PROG_CC_FOR_TARGET
+AM_PROG_CC_C_O
+RTEMS_CANONICALIZE_TOOLS
+RTEMS_PROG_CCAS
+
+# At this time all models should use the shared directory so do this
+AM_CONDITIONAL(shared, true)
+
+AC_PATH_PROG([AMPOLISH3],[ampolish3],[])
+
+RTEMS_AMPOLISH3
+
+# Explicitly list all Makefiles here
+AC_CONFIG_FILES([Makefile
+])
+AC_OUTPUT
diff --git a/c/src/lib/libcpu/or1k/preinstall.am b/c/src/lib/libcpu/or1k/preinstall.am
new file mode 100644
index 0000000..9670596
--- /dev/null
+++ b/c/src/lib/libcpu/or1k/preinstall.am
@@ -0,0 +1,23 @@
+## Automatically generated by ampolish3 - Do not edit
+
+if AMPOLISH3
+$(srcdir)/preinstall.am: Makefile.am
+	$(AMPOLISH3) $(srcdir)/Makefile.am > $(srcdir)/preinstall.am
+endif
+
+all-am: $(PREINSTALL_FILES)
+
+PREINSTALL_FILES =
+CLEANFILES += $(PREINSTALL_FILES)
+
+PREINSTALL_DIRS =
+DISTCLEANFILES += $(PREINSTALL_DIRS)
+
+$(PROJECT_INCLUDE)/libcpu/$(dirstamp):
+	@$(MKDIR_P) $(PROJECT_INCLUDE)/libcpu
+	@: > $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
+PREINSTALL_DIRS += $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
+
+$(PROJECT_INCLUDE)/libcpu/cache.h: ../shared/include/cache.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
+	$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/cache.h
+PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/cache.h
diff --git a/c/src/lib/libcpu/or1k/shared/cache/cache_.h b/c/src/lib/libcpu/or1k/shared/cache/cache_.h
new file mode 100644
index 0000000..08d9ecc
--- /dev/null
+++ b/c/src/lib/libcpu/or1k/shared/cache/cache_.h
@@ -0,0 +1,11 @@
+/*
+ * or1k Cache Manager Support
+ */
+
+#ifndef __OR1K_CACHE_H
+#define __OR1K_CACHE_H
+
+#include <libcpu/cache.h>
+
+#endif
+/* end of include file */



More information about the vc mailing list