diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-10-18 09:38:02 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-10-18 09:38:02 +0000 |
commit | 504112db99e82100cbbd53c4e181e3f15931b1bc (patch) | |
tree | 1b955bfa48f5986f5c151b4768dd869f5dd93244 /aclocal/check-custom-bsp.m4 | |
parent | 2004-10-18 Ralf Corsepius <ralf_corsepius@rtems.org> (diff) | |
download | rtems-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.m4 | 27 |
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]) ]) |