2001-05-22 Ralf Corsepius <corsepiu@faw.uni-ulm.de>

* configure.in: Add bspopts.h, AC_DEFINE CONSOLE_USE_INTERRUPTS,
	CONSOLE_USE_POLLED, HAS_RTC.
	* include/.cvsignore: Add bspopts.h*, stamp-h*, coverhd.h, tod.h.
	* include/Makefile.am: Use *_HEADERS instead of *H_FILES, New
	treatment of tod.h, coverhd.h.
	* include/bsp.h: Add include bspopts.h.
This commit is contained in:
Joel Sherrill
2001-05-24 20:03:27 +00:00
parent 6b5a85ae5b
commit b1a2ae922a
5 changed files with 47 additions and 18 deletions

View File

@@ -1,4 +1,13 @@
2001-05-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2001-05-22 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.in: Add bspopts.h, AC_DEFINE CONSOLE_USE_INTERRUPTS,
CONSOLE_USE_POLLED, HAS_RTC.
* include/.cvsignore: Add bspopts.h*, stamp-h*, coverhd.h, tod.h.
* include/Makefile.am: Use *_HEADERS instead of *H_FILES, New
treatment of tod.h, coverhd.h.
* include/bsp.h: Add include bspopts.h.
2001-05-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.in: Use RTEMS_PROG_CC_FOR_TARGET([-ansi -fasm]).

View File

@@ -23,6 +23,25 @@ RTEMS_CANONICAL_HOST
AM_CONDITIONAL(HAS_NETWORKING,test "$HAS_NETWORKING" = "yes")
## bsp-specific options
CONSOLE_USE_INTERRUPTS=${CONSOLE_USE_INTERRUPTS-0}
AC_DEFINE_UNQUOTED([CONSOLE_USE_INTERRUPTS],
[$CONSOLE_USE_INTERRUPTS],
[whether using console interrupts])
## FIXME: this is redundant to CONSOLE_USE_INTERRUPTS
CONSOLE_USE_POLLED="!CONSOLE_USE_INTERRUPTS"
AC_DEFINE_UNQUOTED([CONSOLE_USE_POLLED],
[$CONSOLE_USE_POLLED],
[whether using polled console])
## FIXME: This is not used anywhere
HAS_RTC=${HAS_RTC-yes}
AC_DEFINE_UNQUOTED([HAS_RTC],
[$HAS_RTC],
[whether this BSP has an RTC])
AM_CONFIG_HEADER(include/bspopts.h)
RTEMS_PROJECT_ROOT
# Explicitly list all Makefiles here

View File

@@ -1,2 +1,8 @@
Makefile
Makefile.in
coverhd.h
tod.h
bspopts.h
bspopts.h.in
stamp-h
stamp-h.in

View File

@@ -4,30 +4,23 @@
AUTOMAKE_OPTIONS = foreign 1.4
H_FILES = bsp.h ../../../shared/include/coverhd.h dmv170.h \
../../../shared/tod.h
include_HEADERS = bsp.h coverhd.h dmv170.h tod.h bspopts.h
tod.h: $(top_srcdir)/../../shared/tod.h
cp $< $@
coverhd.h: $(top_srcdir)/../../shared/include/coverhd.h
cp $< $@
CLEANFILES += tod.h coverhd.h
$(PROJECT_INCLUDE):
$(mkinstalldirs) $@
$(PROJECT_INCLUDE)/bsp.h: bsp.h
$(PROJECT_INCLUDE)/%.h: %.h
$(INSTALL_DATA) $< $@
$(PROJECT_INCLUDE)/coverhd.h: ../../../shared/include/coverhd.h
$(INSTALL_DATA) $< $@
$(PROJECT_INCLUDE)/dmv170.h: dmv170.h
$(INSTALL_DATA) $< $@
$(PROJECT_INCLUDE)/tod.h: ../../../shared/tod.h
$(INSTALL_DATA) $< $@
TMPINSTALL_FILES += $(PROJECT_INCLUDE) $(PROJECT_INCLUDE)/bsp.h \
$(PROJECT_INCLUDE)/coverhd.h $(PROJECT_INCLUDE)/dmv170.h \
$(PROJECT_INCLUDE)/tod.h
TMPINSTALL_FILES += $(PROJECT_INCLUDE) \
$(include_HEADERS:%=$(PROJECT_INCLUDE)/%)
all-local: $(TMPINSTALL_FILES)
EXTRA_DIST = bsp.h dmv170.h
include $(top_srcdir)/../../../../../../automake/local.am

View File

@@ -20,6 +20,8 @@
extern "C" {
#endif
#include <bspopts.h>
/*
* confdefs.h overrides for this BSP:
* - termios serial ports (defaults to 1)