[PATCH 2/5] libcpu: Add new entry for or1k cpu and include cache manager stubs.

Hesham ALMatary heshamelmatary at gmail.com
Fri Aug 22 20:20:47 UTC 2014


---
 c/src/lib/libcpu/or1k/Makefile.am           | 20 +++++++++++++++++++
 c/src/lib/libcpu/or1k/configure.ac          | 31 +++++++++++++++++++++++++++++
 c/src/lib/libcpu/or1k/preinstall.am         | 24 ++++++++++++++++++++++
 c/src/lib/libcpu/or1k/shared/cache/cache_.h | 11 ++++++++++
 4 files changed, 86 insertions(+)
 create mode 100644 c/src/lib/libcpu/or1k/Makefile.am
 create mode 100644 c/src/lib/libcpu/or1k/configure.ac
 create mode 100644 c/src/lib/libcpu/or1k/preinstall.am
 create mode 100644 c/src/lib/libcpu/or1k/shared/cache/cache_.h

diff --git a/c/src/lib/libcpu/or1k/Makefile.am b/c/src/lib/libcpu/or1k/Makefile.am
new file mode 100644
index 0000000..99b868e
--- /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..c27c429
--- /dev/null
+++ b/c/src/lib/libcpu/or1k/preinstall.am
@@ -0,0 +1,24 @@
+## 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..8ba2ca4
--- /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 */
-- 
1.9.3



More information about the devel mailing list