summaryrefslogtreecommitdiffstats
path: root/cpukit/aclocal/check-bsp-cache.m4
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2002-06-17 08:52:47 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2002-06-17 08:52:47 +0000
commited8ec1cf119e0886f816697e3ee367476d90bea2 (patch)
tree0b3c7846d92f35bd6fe8038814d8e89ac667e761 /cpukit/aclocal/check-bsp-cache.m4
parent2002-06-15 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff)
downloadrtems-ed8ec1cf119e0886f816697e3ee367476d90bea2.tar.bz2
2002-06-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* copied over from aclocal/.
Diffstat (limited to 'cpukit/aclocal/check-bsp-cache.m4')
-rw-r--r--cpukit/aclocal/check-bsp-cache.m417
1 files changed, 17 insertions, 0 deletions
diff --git a/cpukit/aclocal/check-bsp-cache.m4 b/cpukit/aclocal/check-bsp-cache.m4
new file mode 100644
index 0000000000..289cbdcd43
--- /dev/null
+++ b/cpukit/aclocal/check-bsp-cache.m4
@@ -0,0 +1,17 @@
+dnl $Id$
+
+dnl RTEMS_CHECK_BSP_CACHE(RTEMS_BSP)
+AC_DEFUN(RTEMS_CHECK_BSP_CACHE,
+[
+AC_REQUIRE([RTEMS_CHECK_CPU])dnl sets RTEMS_CPU, target
+AC_REQUIRE([RTEMS_ENV_RTEMSBSP])dnl set RTEMS_BSP
+AC_REQUIRE([RTEMS_TOP])dnl sets RTEMS_TOPdir
+AC_CACHE_CHECK([for RTEMS_CPU_MODEL], rtems_cv_RTEMS_CPU_MODEL,
+. $RTEMS_TOPdir/c/[$]$1/make/[$]$1.cache)
+RTEMS_CPU_MODEL=$rtems_cv_RTEMS_CPU_MODEL
+AC_SUBST(RTEMS_CPU_MODEL)
+AC_CACHE_CHECK([for RTEMS_BSP_FAMILY], rtems_cv_RTEMS_BSP_FAMILY,
+. $RTEMS_TOPdir/c/[$]$1/make/[$]$1.cache)
+RTEMS_BSP_FAMILY=$rtems_cv_RTEMS_BSP_FAMILY
+AC_SUBST(RTEMS_BSP_FAMILY)
+])dnl