Changeset 504112d in rtems for aclocal/check-custom-bsp.m4


Ignore:
Timestamp:
Oct 18, 2004, 9:38:02 AM (15 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
1469078f
Parents:
2d1daae
Message:

2004-10-18 Ralf Corsepius <ralf_corsepius@…>

  • aclocal/check-bsps.m4: Add bspkit support. Don't check for presence of *.cfg.
  • aclocal/check-custom-bsp.m4: Add bspkit support.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • aclocal/check-custom-bsp.m4

    r2d1daae r504112d  
    11dnl $Id$
    22
    3 AC_DEFUN([RTEMS_CHECK_CUSTOM_BSP],
    4 [
    5 AC_REQUIRE([RTEMS_TOP])
     3AC_DEFUN([_RTEMS_CHECK_CUSTOM_BSP],[
     4AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])dnl sets RTEMS_CPU, target
     5AC_REQUIRE([RTEMS_TOP])dnl sets RTEMS_TOPdir
     6  $2=
     7  AC_MSG_CHECKING([for $1])
     8  for i in "${srcdir}/${RTEMS_TOPdir}/bspkit/${RTEMS_CPU}"/*/"$1" \
     9    "${srcdir}/${RTEMS_TOPdir}/make/custom/$1";
     10  do
     11    AS_IF([test -r $i],[
     12      $2="$i"
     13      break;
     14    ])
     15  done
     16  AS_IF([test -n "[$]$2"],
     17    [AC_MSG_RESULT([[$]$2])],
     18    [AC_MSG_RESULT([no])])
     19])
    620
    7 AC_MSG_CHECKING([for make/custom/[$]$1.cfg])
    8 AS_IF([test -r "$srcdir/$RTEMS_TOPdir/make/custom/[$]$1.cfg"],
    9   [AC_MSG_RESULT([yes])],
    10   [AC_MSG_ERROR([no])])
     21AC_DEFUN([RTEMS_CHECK_CUSTOM_BSP],[
     22  AC_REQUIRE([RTEMS_TOP])
     23  _RTEMS_CHECK_CUSTOM_BSP([[$]$1.cfg],[BSP_FOUND])
    1124])
Note: See TracChangeset for help on using the changeset viewer.