summaryrefslogtreecommitdiffstats
path: root/c/src
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-01-05 13:38:20 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-01-05 13:38:20 +0000
commit60391a2c16936fc896a9816fd4758f6fd40ca3a8 (patch)
treeb8507c7e399f331cf6d18d1c757cb821fa298a43 /c/src
parente8ad374a2b7ecdaa2654e01d0c2975db8d5cd02f (diff)
downloadrtems-60391a2c16936fc896a9816fd4758f6fd40ca3a8.tar.bz2
2001-01-05 Joel Sherrill <joel@OARcorp.com>
* scitab/Makefile.am, startup/bspstart.c, configure.in: Removed rest of make-target-options and moved them to BSP configure options.
Diffstat (limited to 'c/src')
-rw-r--r--c/src/lib/libbsp/sh/gensh1/ChangeLog5
-rw-r--r--c/src/lib/libbsp/sh/gensh1/configure.in10
-rw-r--r--c/src/lib/libbsp/sh/gensh1/scitab/Makefile.am2
-rw-r--r--c/src/lib/libbsp/sh/gensh1/startup/bspstart.c2
4 files changed, 17 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/sh/gensh1/ChangeLog b/c/src/lib/libbsp/sh/gensh1/ChangeLog
index 8bf3636181..9098c7e225 100644
--- a/c/src/lib/libbsp/sh/gensh1/ChangeLog
+++ b/c/src/lib/libbsp/sh/gensh1/ChangeLog
@@ -1,5 +1,10 @@
2001-01-05 Joel Sherrill <joel@OARcorp.com>
+ * scitab/Makefile.am, startup/bspstart.c, configure.in: Removed
+ rest of make-target-options and moved them to BSP configure options.
+
+2001-01-05 Joel Sherrill <joel@OARcorp.com>
+
* include/bsp.h: Changed <sh/null.h> to <rtems/devnull.h> to reflect
the movement of this component to libmisc.
* wrapup/Makefile.am: /dev/null driver is no longer in libcpu/sh.
diff --git a/c/src/lib/libbsp/sh/gensh1/configure.in b/c/src/lib/libbsp/sh/gensh1/configure.in
index 8013d3bab2..3b8b964c4d 100644
--- a/c/src/lib/libbsp/sh/gensh1/configure.in
+++ b/c/src/lib/libbsp/sh/gensh1/configure.in
@@ -19,6 +19,16 @@ RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
RTEMS_CHECK_BSP_CACHE(RTEMS_BSP)
RTEMS_CANONICAL_HOST
+## bsp-specific options
+## setup environment variable
+CPU_CLOCK_RATE_HZ=${CPU_CLOCK_RATE_HZ-20000000}
+
+## Propagate options to Makefile.ams
+AC_SUBST(CPU_CLOCK_RATE_HZ)
+
+## Propagate options to compilation options/auto config headers
+AC_DEFINE_UNQUOTED([CPU_CLOCK_RATE_HZ],[$CPU_CLOCK_RATE_HZ],[cpu clock rate in HZ])
+
RTEMS_PROJECT_ROOT
# Explicitly list all Makefiles here
diff --git a/c/src/lib/libbsp/sh/gensh1/scitab/Makefile.am b/c/src/lib/libbsp/sh/gensh1/scitab/Makefile.am
index 3f08ddfafd..bf1550749a 100644
--- a/c/src/lib/libbsp/sh/gensh1/scitab/Makefile.am
+++ b/c/src/lib/libbsp/sh/gensh1/scitab/Makefile.am
@@ -27,7 +27,7 @@ $(PGM): $(OBJS)
$(make-rel)
scitab.c: $(SHGEN)
- $(SHGEN) -H $(HZ) sci > $@
+ $(SHGEN) -H $(CPU_CLOCK_RATE_HZ) sci > $@
all-local: $(ARCH) $(OBJS) $(PGM)
diff --git a/c/src/lib/libbsp/sh/gensh1/startup/bspstart.c b/c/src/lib/libbsp/sh/gensh1/startup/bspstart.c
index a019dbdb96..8340f3726c 100644
--- a/c/src/lib/libbsp/sh/gensh1/startup/bspstart.c
+++ b/c/src/lib/libbsp/sh/gensh1/startup/bspstart.c
@@ -128,5 +128,5 @@ void bsp_start(void)
#if ( CPU_ALLOCATE_INTERRUPT_STACK == TRUE )
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 ;
}