forked from Imagelibrary/rtems
2001-05-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.in: Use RTEMS_PROG_CC_FOR_TARGET([-ansi -fasm]), add bspopts.h. * include/.cvsignore: Add stamp-h*, bspopts.h*. * include/Makefile.am: Use include_HEADERS instead of H_FILES. * include/bsp.h: Add bspopts.h. * startup/bspstart.c: Replace HZ w/ CPU_CLOCK_RATE_HZ.
This commit is contained in:
@@ -1,3 +1,12 @@
|
||||
2001-05-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* configure.in: Use RTEMS_PROG_CC_FOR_TARGET([-ansi -fasm]), add
|
||||
bspopts.h.
|
||||
* include/.cvsignore: Add stamp-h*, bspopts.h*.
|
||||
* include/Makefile.am: Use include_HEADERS instead of H_FILES.
|
||||
* include/bsp.h: Add bspopts.h.
|
||||
* startup/bspstart.c: Replace HZ w/ CPU_CLOCK_RATE_HZ.
|
||||
|
||||
2001-01-26 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* startup/linkcmds: Remove OUTPUT_FORMAT.
|
||||
|
||||
@@ -11,7 +11,7 @@ RTEMS_CANONICAL_TARGET_CPU
|
||||
AM_INIT_AUTOMAKE(rtems-c-src-lib-libbsp-sh-gensh2,$RTEMS_VERSION,no)
|
||||
AM_MAINTAINER_MODE
|
||||
|
||||
RTEMS_PROG_CC_FOR_TARGET
|
||||
RTEMS_PROG_CC_FOR_TARGET([-ansi -fasm])
|
||||
RTEMS_CANONICALIZE_TOOLS
|
||||
|
||||
RTEMS_ENV_RTEMSBSP
|
||||
@@ -19,6 +19,16 @@ RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
|
||||
RTEMS_CHECK_BSP_CACHE(RTEMS_BSP)
|
||||
RTEMS_CANONICAL_HOST
|
||||
|
||||
## bsp-specific options
|
||||
CPU_CLOCK_RATE_HZ=${CPU_CLOCK_RATE_HZ-29491200}
|
||||
AC_DEFINE_UNQUOTED([CPU_CLOCK_RATE_HZ],
|
||||
[$CPU_CLOCK_RATE_HZ],
|
||||
[cpu clock rate in HZ])
|
||||
|
||||
## Used in scitab/Makefile.am
|
||||
AC_SUBST(CPU_CLOCK_RATE_HZ)
|
||||
|
||||
AM_CONFIG_HEADER(include/bspopts.h)
|
||||
RTEMS_PROJECT_ROOT
|
||||
|
||||
# Explicitly list all Makefiles here
|
||||
|
||||
@@ -1,2 +1,6 @@
|
||||
Makefile
|
||||
Makefile.in
|
||||
stamp-h
|
||||
stamp-h.in
|
||||
bspopts.h
|
||||
bspopts.h.in
|
||||
|
||||
@@ -4,15 +4,13 @@
|
||||
|
||||
AUTOMAKE_OPTIONS = foreign 1.4
|
||||
|
||||
H_FILES = bsp.h coverhd.h
|
||||
include_HEADERS = bsp.h bspopts.h coverhd.h
|
||||
|
||||
$(PROJECT_INCLUDE)/%.h: %.h
|
||||
$(INSTALL_DATA) $< $@
|
||||
|
||||
PREINSTALL_FILES += $(H_FILES:%.h=$(PROJECT_INCLUDE)/%.h)
|
||||
PREINSTALL_FILES += $(include_HEADERS:%=$(PROJECT_INCLUDE)/%)
|
||||
|
||||
all-local: $(PREINSTALL_FILES)
|
||||
|
||||
EXTRA_DIST = bsp.h coverhd.h
|
||||
|
||||
include $(top_srcdir)/../../../../../../automake/local.am
|
||||
|
||||
@@ -45,6 +45,8 @@ extern "C" {
|
||||
#include <clockdrv.h>
|
||||
#include <console.h>
|
||||
|
||||
#include <bspopts.h>
|
||||
|
||||
/*
|
||||
* confdefs.h overrides for this BSP:
|
||||
* - number of termios serial ports (defaults to 1)
|
||||
|
||||
@@ -137,5 +137,5 @@ void bsp_start(void)
|
||||
Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY;
|
||||
#endif
|
||||
|
||||
Cpu_table.clicks_per_second = HZ ;
|
||||
Cpu_table.clicks_per_second = CPU_CLOCK_RATE_HZ ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user