summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2003-10-02 01:43:48 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2003-10-02 01:43:48 +0000
commit1b16201e7f7a0dd20460bc721693516f486d1640 (patch)
tree20cdeaca6be3633aa5c1f322c07bf611c315f027
parent2003-10-01 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff)
downloadrtems-1b16201e7f7a0dd20460bc721693516f486d1640.tar.bz2
2003-10-01 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* acinclude.m4: New. Add RTEMS_CHECK_CPU.
-rw-r--r--c/ChangeLog5
-rw-r--r--c/acinclude.m418
2 files changed, 23 insertions, 0 deletions
diff --git a/c/ChangeLog b/c/ChangeLog
index fb96e08034..c0b891832b 100644
--- a/c/ChangeLog
+++ b/c/ChangeLog
@@ -1,3 +1,8 @@
+2003-10-01 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
+
+ * acinclude.m4: New.
+ Add RTEMS_CHECK_CPU.
+
2003-09-26 Joel Sherrill <joel@OARcorp.com>
* ACKNOWLEDGEMENTS: Obsoleting HP PA-RISC port and removing all
diff --git a/c/acinclude.m4 b/c/acinclude.m4
new file mode 100644
index 0000000000..4b7ff6bd16
--- /dev/null
+++ b/c/acinclude.m4
@@ -0,0 +1,18 @@
+dnl $Id$
+
+dnl check if RTEMS support a cpu
+AC_DEFUN(RTEMS_CHECK_CPU,
+[dnl
+AC_REQUIRE([RTEMS_TOP])
+AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])
+
+# Is this a supported CPU?
+AC_MSG_CHECKING([if cpu $RTEMS_CPU is supported])
+# FIXME: Temporary hack
+if test -d "$srcdir/${RTEMS_TOPdir}/c/src/lib/libbsp/$RTEMS_CPU"; then
+ AC_MSG_RESULT(yes)
+else
+ AC_MSG_ERROR(no)
+fi
+])dnl
+