summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2011-07-24 20:03:03 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2011-07-24 20:03:03 +0000
commit84b2e65b23be8e338d7e4cfc60fee953d966918d (patch)
treec00a712d93e8fad9c5765a61be1fe70c2126439b
parent2011-07-24 Joel Sherrill <joel.sherrilL@OARcorp.com> (diff)
downloadrtems-84b2e65b23be8e338d7e4cfc60fee953d966918d.tar.bz2
2011-07-24 Joel Sherrill <joel.sherrilL@OARcorp.com>
* Makefile.am, preinstall.am: Include stubs so all tests compile. * include/tm27.h: New file.
-rw-r--r--c/src/lib/libbsp/powerpc/mpc55xxevb/ChangeLog5
-rw-r--r--c/src/lib/libbsp/powerpc/mpc55xxevb/Makefile.am9
-rw-r--r--c/src/lib/libbsp/powerpc/mpc55xxevb/include/tm27.h32
-rw-r--r--c/src/lib/libbsp/powerpc/mpc55xxevb/preinstall.am8
4 files changed, 52 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/powerpc/mpc55xxevb/ChangeLog b/c/src/lib/libbsp/powerpc/mpc55xxevb/ChangeLog
index c030b3dbd0..20b56e5175 100644
--- a/c/src/lib/libbsp/powerpc/mpc55xxevb/ChangeLog
+++ b/c/src/lib/libbsp/powerpc/mpc55xxevb/ChangeLog
@@ -1,3 +1,8 @@
+2011-07-24 Joel Sherrill <joel.sherrilL@OARcorp.com>
+
+ * Makefile.am, preinstall.am: Include stubs so all tests compile.
+ * include/tm27.h: New file.
+
2008-12-08 Ralf Corsépius <ralf.corsepius@rtems.org>
* bsp_specs: Backport from CVS-HEAD.
diff --git a/c/src/lib/libbsp/powerpc/mpc55xxevb/Makefile.am b/c/src/lib/libbsp/powerpc/mpc55xxevb/Makefile.am
index 170ae99f6c..8be7dffcad 100644
--- a/c/src/lib/libbsp/powerpc/mpc55xxevb/Makefile.am
+++ b/c/src/lib/libbsp/powerpc/mpc55xxevb/Makefile.am
@@ -29,7 +29,10 @@ project_lib_DATA += rtems_crti.$(OBJEXT)
dist_project_lib_DATA += startup/linkcmds startup/linkcmds.memory
# Includes
-include_HEADERS = include/bsp.h
+include_HEADERS = include/bsp.h
+include_HEADERS += include/tm27.h
+
+include_HEADERS += ../../shared/include/coverhd.h
nodist_include_HEADERS = include/bspopts.h ../../shared/tod.h
include_bspdir = $(includedir)/bsp
@@ -47,6 +50,8 @@ clock_SOURCES = ../shared/clock/clock.c
irq_generic_SOURCES = ../../shared/src/irq-generic.c \
../../shared/src/irq-legacy.c
+timer_SOURCES = ../../shared/timerstub.c
+
tests_SOURCES = tests/tests.c startup/sd-card-init.c
# Network
@@ -60,7 +65,7 @@ endif
# BSP library
noinst_LIBRARIES = libbsp.a
libbsp_a_SOURCES = $(startup_SOURCES) $(clock_SOURCES) $(irq_generic_SOURCES) \
- $(tests_SOURCES)
+ $(timer_SOURCES) $(tests_SOURCES)
libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/shared/cpuIdent.rel \
../../../libcpu/@RTEMS_CPU@/shared/cache.rel \
diff --git a/c/src/lib/libbsp/powerpc/mpc55xxevb/include/tm27.h b/c/src/lib/libbsp/powerpc/mpc55xxevb/include/tm27.h
new file mode 100644
index 0000000000..971636b3a0
--- /dev/null
+++ b/c/src/lib/libbsp/powerpc/mpc55xxevb/include/tm27.h
@@ -0,0 +1,32 @@
+/*
+ * tm27.h
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ *
+ * $Id$
+ */
+
+#ifndef _RTEMS_TMTEST27
+#error "This is an RTEMS internal file you must not include directly."
+#endif
+
+#ifndef __tm27_h
+#define __tm27_h
+
+/*
+ * Define the interrupt mechanism for Time Test 27
+ */
+
+#define MUST_WAIT_FOR_INTERRUPT 0
+
+#define Install_tm27_vector( handler ) /* set_vector( (handler), 6, 1 ) */
+
+#define Cause_tm27_intr() /* XXX */
+
+#define Clear_tm27_intr() /* XXX */
+
+#define Lower_tm27_intr() /* empty */
+
+#endif
diff --git a/c/src/lib/libbsp/powerpc/mpc55xxevb/preinstall.am b/c/src/lib/libbsp/powerpc/mpc55xxevb/preinstall.am
index 5230287143..f7b4ff5801 100644
--- a/c/src/lib/libbsp/powerpc/mpc55xxevb/preinstall.am
+++ b/c/src/lib/libbsp/powerpc/mpc55xxevb/preinstall.am
@@ -52,6 +52,14 @@ $(PROJECT_INCLUDE)/bsp.h: include/bsp.h $(PROJECT_INCLUDE)/$(dirstamp)
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp.h
PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp.h
+$(PROJECT_INCLUDE)/tm27.h: include/tm27.h $(PROJECT_INCLUDE)/$(dirstamp)
+ $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tm27.h
+PREINSTALL_FILES += $(PROJECT_INCLUDE)/tm27.h
+
+$(PROJECT_INCLUDE)/coverhd.h: ../../shared/include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
+ $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
+PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
+
$(PROJECT_INCLUDE)/bspopts.h: include/bspopts.h $(PROJECT_INCLUDE)/$(dirstamp)
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bspopts.h
PREINSTALL_FILES += $(PROJECT_INCLUDE)/bspopts.h