[rtems commit] drvmgr: Remove dupl bsp_driver_level_hook() decl
Sebastian Huber
sebh at rtems.org
Tue Jan 26 10:55:28 UTC 2016
Module: rtems
Branch: master
Commit: 47190194866ba83cbfeeb5816bb18ddd9f6e8e50
Changeset: http://git.rtems.org/rtems/commit/?id=47190194866ba83cbfeeb5816bb18ddd9f6e8e50
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Jan 26 07:16:52 2016 +0100
drvmgr: Remove dupl bsp_driver_level_hook() decl
---
c/src/lib/libbsp/shared/bspdriverlevelhook.c | 2 +-
c/src/lib/libbsp/shared/include/bootcard.h | 2 --
c/src/lib/libbsp/sparc/leon2/startup/bsppredriver.c | 1 +
c/src/lib/libbsp/sparc/leon3/startup/bsppredriver.c | 2 ++
cpukit/Makefile.am | 2 --
cpukit/preinstall.am | 3 +--
6 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/c/src/lib/libbsp/shared/bspdriverlevelhook.c b/c/src/lib/libbsp/shared/bspdriverlevelhook.c
index 93406f9..e506ea7 100644
--- a/c/src/lib/libbsp/shared/bspdriverlevelhook.c
+++ b/c/src/lib/libbsp/shared/bspdriverlevelhook.c
@@ -9,7 +9,7 @@
* http://www.rtems.org/license/LICENSE.
*/
-#include <bsp/bootcard.h>
+#include <drvmgr/drvmgr.h>
void bsp_driver_level_hook( int level )
{
diff --git a/c/src/lib/libbsp/shared/include/bootcard.h b/c/src/lib/libbsp/shared/include/bootcard.h
index 8559b21..385c0ae 100644
--- a/c/src/lib/libbsp/shared/include/bootcard.h
+++ b/c/src/lib/libbsp/shared/include/bootcard.h
@@ -55,8 +55,6 @@ void bsp_start(void);
void bsp_predriver_hook(void);
-void bsp_driver_level_hook( int level );
-
void bsp_postdriver_hook(void);
void bsp_reset(void);
diff --git a/c/src/lib/libbsp/sparc/leon2/startup/bsppredriver.c b/c/src/lib/libbsp/sparc/leon2/startup/bsppredriver.c
index 2cdf4da..218ed80 100644
--- a/c/src/lib/libbsp/sparc/leon2/startup/bsppredriver.c
+++ b/c/src/lib/libbsp/sparc/leon2/startup/bsppredriver.c
@@ -25,6 +25,7 @@
* the configuration and add custom cores in the RTEMS project.
*/
#ifdef RTEMS_DRVMGR_STARTUP
+#include <drvmgr/drvmgr.h>
#include <drvmgr/leon2_amba_bus.h>
/* All drivers included by BSP, this is overridden by the user by including
diff --git a/c/src/lib/libbsp/sparc/leon3/startup/bsppredriver.c b/c/src/lib/libbsp/sparc/leon3/startup/bsppredriver.c
index 498c97b..84edb73 100644
--- a/c/src/lib/libbsp/sparc/leon3/startup/bsppredriver.c
+++ b/c/src/lib/libbsp/sparc/leon3/startup/bsppredriver.c
@@ -16,6 +16,8 @@
#include <bsp.h>
#include <bsp/bootcard.h>
+#include <drvmgr/drvmgr.h>
+
static void leon3_interrupt_common_init( void )
{
/* Initialize shared interrupt handling, must be done after IRQ
diff --git a/cpukit/Makefile.am b/cpukit/Makefile.am
index 86c20a9..1758fff 100644
--- a/cpukit/Makefile.am
+++ b/cpukit/Makefile.am
@@ -242,12 +242,10 @@ include_rtems_HEADERS += libmisc/untar/untar.h
include_rtems_HEADERS += libmisc/fsmount/fsmount.h
## Driver manager
-if LIBDRVMGR
include_drvmgrdir = $(includedir)/drvmgr
include_drvmgr_HEADERS = libdrvmgr/drvmgr.h
include_drvmgr_HEADERS += libdrvmgr/drvmgr_confdefs.h
include_drvmgr_HEADERS += libdrvmgr/drvmgr_list.h
-endif
## HACK: doxygen filter.
EXTRA_DIST = doxy-filter
diff --git a/cpukit/preinstall.am b/cpukit/preinstall.am
index 0758ec5..95d61ae 100644
--- a/cpukit/preinstall.am
+++ b/cpukit/preinstall.am
@@ -527,7 +527,6 @@ $(PROJECT_INCLUDE)/rtems/fsmount.h: libmisc/fsmount/fsmount.h $(PROJECT_INCLUDE)
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/fsmount.h
PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/fsmount.h
-if LIBDRVMGR
$(PROJECT_INCLUDE)/drvmgr/$(dirstamp):
@$(MKDIR_P) $(PROJECT_INCLUDE)/drvmgr
@: > $(PROJECT_INCLUDE)/drvmgr/$(dirstamp)
@@ -544,4 +543,4 @@ PREINSTALL_FILES += $(PROJECT_INCLUDE)/drvmgr/drvmgr_confdefs.h
$(PROJECT_INCLUDE)/drvmgr/drvmgr_list.h: libdrvmgr/drvmgr_list.h $(PROJECT_INCLUDE)/drvmgr/$(dirstamp)
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/drvmgr/drvmgr_list.h
PREINSTALL_FILES += $(PROJECT_INCLUDE)/drvmgr/drvmgr_list.h
-endif
+
More information about the vc
mailing list