summaryrefslogtreecommitdiffstats
path: root/aclocal/check-custom-bsp.m4
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2004-10-18 09:38:02 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2004-10-18 09:38:02 +0000
commit504112db99e82100cbbd53c4e181e3f15931b1bc (patch)
tree1b955bfa48f5986f5c151b4768dd869f5dd93244 /aclocal/check-custom-bsp.m4
parent2004-10-18 Ralf Corsepius <ralf_corsepius@rtems.org> (diff)
downloadrtems-504112db99e82100cbbd53c4e181e3f15931b1bc.tar.bz2
2004-10-18 Ralf Corsepius <ralf_corsepius@rtems.org>
* aclocal/check-bsps.m4: Add bspkit support. Don't check for presence of *.cfg. * aclocal/check-custom-bsp.m4: Add bspkit support.
Diffstat (limited to '')
-rw-r--r--aclocal/check-custom-bsp.m427
1 files changed, 20 insertions, 7 deletions
diff --git a/aclocal/check-custom-bsp.m4 b/aclocal/check-custom-bsp.m4
index 101d3cf79f..dc87133a17 100644
--- a/aclocal/check-custom-bsp.m4
+++ b/aclocal/check-custom-bsp.m4
@@ -1,11 +1,24 @@
dnl $Id$
-AC_DEFUN([RTEMS_CHECK_CUSTOM_BSP],
-[
-AC_REQUIRE([RTEMS_TOP])
+AC_DEFUN([_RTEMS_CHECK_CUSTOM_BSP],[
+AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])dnl sets RTEMS_CPU, target
+AC_REQUIRE([RTEMS_TOP])dnl sets RTEMS_TOPdir
+ $2=
+ AC_MSG_CHECKING([for $1])
+ for i in "${srcdir}/${RTEMS_TOPdir}/bspkit/${RTEMS_CPU}"/*/"$1" \
+ "${srcdir}/${RTEMS_TOPdir}/make/custom/$1";
+ do
+ AS_IF([test -r $i],[
+ $2="$i"
+ break;
+ ])
+ done
+ AS_IF([test -n "[$]$2"],
+ [AC_MSG_RESULT([[$]$2])],
+ [AC_MSG_RESULT([no])])
+])
-AC_MSG_CHECKING([for make/custom/[$]$1.cfg])
-AS_IF([test -r "$srcdir/$RTEMS_TOPdir/make/custom/[$]$1.cfg"],
- [AC_MSG_RESULT([yes])],
- [AC_MSG_ERROR([no])])
+AC_DEFUN([RTEMS_CHECK_CUSTOM_BSP],[
+ AC_REQUIRE([RTEMS_TOP])
+ _RTEMS_CHECK_CUSTOM_BSP([[$]$1.cfg],[BSP_FOUND])
])