summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-10-10 00:38:56 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-10-10 00:38:56 +0000
commit083b72aecec001bd95b6ec5c7091bd3cc8b0af07 (patch)
tree13e2812238311fc4291c9d02221bc46370855d39
parent193f8107b0b5fbe54d20a3ec8a764c657ffc450b (diff)
downloadrtems-083b72aecec001bd95b6ec5c7091bd3cc8b0af07.tar.bz2
2001-10-09 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* aclocal/rtems-cpu-subdirs.m4: New file.
-rw-r--r--ChangeLog4
-rw-r--r--aclocal/rtems-cpu-subdirs.m431
2 files changed, 35 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 80312302a2..8ce4227669 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2001-10-09 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
+ * aclocal/rtems-cpu-subdirs.m4: New file.
+
+2001-10-09 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
+
* automake/compile.am: Fundamentally reworked compilation rules for
closer adaptation to automake's behavior.
diff --git a/aclocal/rtems-cpu-subdirs.m4 b/aclocal/rtems-cpu-subdirs.m4
new file mode 100644
index 0000000000..8fe74be50e
--- /dev/null
+++ b/aclocal/rtems-cpu-subdirs.m4
@@ -0,0 +1,31 @@
+AC_DEFUN([_RTEMS_CPU_SUBDIR],
+[
+$1 ) if test -d ${srcdir}/$1 ; then
+ AC_CONFIG_SUBDIRS([$1])
+ fi
+])
+
+AC_DEFUN([RTEMS_CPU_SUBDIRS],
+[
+## EDIT: If adding a new cpu to RTEMS, add it to the case block below.
+case $RTEMS_CPU in
+_RTEMS_CPU_SUBDIR([a29k]);;
+_RTEMS_CPU_SUBDIR([arm]);;
+_RTEMS_CPU_SUBDIR([c4x]);;
+_RTEMS_CPU_SUBDIR([h8300]);;
+_RTEMS_CPU_SUBDIR([hppa1.1]);;
+_RTEMS_CPU_SUBDIR([i386]);;
+_RTEMS_CPU_SUBDIR([i960]);;
+_RTEMS_CPU_SUBDIR([m68k]);;
+_RTEMS_CPU_SUBDIR([mips]);;
+_RTEMS_CPU_SUBDIR([mips64orion]);;
+_RTEMS_CPU_SUBDIR([no_cpu]);;
+_RTEMS_CPU_SUBDIR([or16]);;
+_RTEMS_CPU_SUBDIR([or32]);;
+_RTEMS_CPU_SUBDIR([powerpc]);;
+_RTEMS_CPU_SUBDIR([sh]);;
+_RTEMS_CPU_SUBDIR([sparc]);;
+_RTEMS_CPU_SUBDIR([unix]);;
+*) AC_MSG_ERROR([Invalid RTEMS_CPU])
+esac
+])