summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHesham ALMatary <heshamelmatary@gmail.com>2014-08-22 15:20:47 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2014-08-25 11:12:20 -0500
commiteeea9e30a2c5d3ea01e9fc13202fa77e22bd0f02 (patch)
treec02a23a0e2617af3c86967a65473ce907b7545da
parent23b14f87cf701654b231017171a61b1e6fb4a322 (diff)
downloadrtems-eeea9e30a2c5d3ea01e9fc13202fa77e22bd0f02.tar.bz2
libcpu: Add new entry for or1k cpu and include cache manager stubs.
-rw-r--r--c/src/lib/libcpu/or1k/Makefile.am20
-rw-r--r--c/src/lib/libcpu/or1k/configure.ac31
-rw-r--r--c/src/lib/libcpu/or1k/preinstall.am23
-rw-r--r--c/src/lib/libcpu/or1k/shared/cache/cache_.h11
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 0000000000..f4a637216d
--- /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 0000000000..c87c0f1959
--- /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 0000000000..9670596e76
--- /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 0000000000..08d9eccf4f
--- /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 */