[PATCH 7/8] bsps: New file <bsp/default-initial-extension.h>

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Nov 7 16:06:02 UTC 2012


---
 c/src/lib/libbsp/Makefile.am                       |    6 +++
 c/src/lib/libbsp/preinstall.am                     |   24 +++++++++++++
 .../shared/include/default-initial-extension.h     |   37 ++++++++++++++++++++
 3 files changed, 67 insertions(+), 0 deletions(-)
 create mode 100644 c/src/lib/libbsp/preinstall.am
 create mode 100644 c/src/lib/libbsp/shared/include/default-initial-extension.h

diff --git a/c/src/lib/libbsp/Makefile.am b/c/src/lib/libbsp/Makefile.am
index 4eff8b8..60a0d49 100644
--- a/c/src/lib/libbsp/Makefile.am
+++ b/c/src/lib/libbsp/Makefile.am
@@ -29,5 +29,11 @@ EXTRA_DIST += shared/include/coverhd.h
 EXTRA_DIST += shared/gdbstub/rtems-stub-glue.c
 EXTRA_DIST += shared/include/bootcard.h
 
+include_bspdir = $(includedir)/bsp
+
+include_bsp_HEADERS =
+include_bsp_HEADERS += shared/include/default-initial-extension.h
+
+include $(srcdir)/preinstall.am
 include $(top_srcdir)/automake/subdirs.am
 include $(top_srcdir)/automake/local.am
diff --git a/c/src/lib/libbsp/preinstall.am b/c/src/lib/libbsp/preinstall.am
new file mode 100644
index 0000000..f4f0fa4
--- /dev/null
+++ b/c/src/lib/libbsp/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
+
+PREINSTALL_DIRS =
+DISTCLEANFILES = $(PREINSTALL_DIRS)
+
+all-am: $(PREINSTALL_FILES)
+
+PREINSTALL_FILES =
+CLEANFILES = $(PREINSTALL_FILES)
+
+$(PROJECT_INCLUDE)/bsp/$(dirstamp):
+	@$(MKDIR_P) $(PROJECT_INCLUDE)/bsp
+	@: > $(PROJECT_INCLUDE)/bsp/$(dirstamp)
+PREINSTALL_DIRS += $(PROJECT_INCLUDE)/bsp/$(dirstamp)
+
+$(PROJECT_INCLUDE)/bsp/default-initial-extension.h: shared/include/default-initial-extension.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
+	$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/default-initial-extension.h
+PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/default-initial-extension.h
+
diff --git a/c/src/lib/libbsp/shared/include/default-initial-extension.h b/c/src/lib/libbsp/shared/include/default-initial-extension.h
new file mode 100644
index 0000000..618a097
--- /dev/null
+++ b/c/src/lib/libbsp/shared/include/default-initial-extension.h
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) 2012 embedded brains GmbH.  All rights reserved.
+ *
+ *  embedded brains GmbH
+ *  Obere Lagerstr. 30
+ *  82178 Puchheim
+ *  Germany
+ *  <rtems at embedded-brains.de>
+ *
+ * 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.
+ */
+
+#ifndef LIBBSP_SHARED_DEFAULT_INITIAL_EXTENSION_H
+#define LIBBSP_SHARED_DEFAULT_INITIAL_EXTENSION_H
+
+#include <rtems.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+void bsp_fatal_extension(
+  Internal_errors_Source source,
+  bool is_internal,
+  Internal_errors_t error
+);
+
+#define BSP_INITIAL_EXTENSION \
+  { NULL, NULL, NULL, NULL, NULL, NULL, NULL, bsp_fatal_extension }
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* LIBBSP_SHARED_DEFAULT_INITIAL_EXTENSION_H */
-- 
1.7.7




More information about the devel mailing list