forked from Imagelibrary/rtems
DRVMGR: only build on SPARC platform
This commit is contained in:
@@ -240,10 +240,12 @@ 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
|
||||
|
||||
@@ -427,6 +427,18 @@ esac
|
||||
AM_CONDITIONAL(LIBPCI,[test x"$HAVE_LIBPCI" = x"yes"])
|
||||
AC_MSG_RESULT([$HAVE_LIBPCI])
|
||||
|
||||
# Filter libdrvmgr to only build for architectures that have support for it
|
||||
AC_MSG_CHECKING([whether CPU supports libdrvmgr])
|
||||
case $RTEMS_CPU in
|
||||
sparc)
|
||||
HAVE_LIBDRVMGR=yes ;;
|
||||
*)
|
||||
HAVE_LIBDRVMGR=no ;;
|
||||
esac
|
||||
AM_CONDITIONAL(LIBDRVMGR,[test x"$HAVE_LIBDRVMGR" = x"yes"])
|
||||
AC_MSG_RESULT([$HAVE_LIBDRVMGR])
|
||||
|
||||
|
||||
RTEMS_AMPOLISH3
|
||||
|
||||
# Explicitly list all Makefiles here
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
include $(top_srcdir)/automake/compile.am
|
||||
|
||||
if LIBDRVMGR
|
||||
|
||||
EXTRA_DIST=
|
||||
|
||||
noinst_LIBRARIES = libdrvmgr.a
|
||||
@@ -26,4 +28,6 @@ libdrvmgr_a_SOURCES += drvmgr_translate.c
|
||||
libdrvmgr_a_SOURCES += drvmgr_translate_check.c
|
||||
libdrvmgr_a_SOURCES += drvmgr_unregister.c
|
||||
|
||||
endif
|
||||
|
||||
include $(top_srcdir)/automake/local.am
|
||||
|
||||
@@ -527,6 +527,7 @@ $(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)
|
||||
@@ -543,4 +544,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
|
||||
|
||||
Reference in New Issue
Block a user