source: rtems/aclocal/check-custom-bsp.m4 @ bc7353d5

4.104.11
Last change on this file since bc7353d5 was bc7353d5, checked in by Ralf Corsepius <ralf.corsepius@…>, on Oct 15, 2009 at 3:50:38 AM

2009-10-15 Ralf Corsépius <ralf.corsepius@…>

  • aclocal/check-custom-bsp.m4: Let _RTEMS_CHECK_CUSTOM_BSP look for *.cfg into c/src/lib/libbsp/<cpu>/<bsp_family>/make/custom.
  • Property mode set to 100644
File size: 667 bytes
Line 
1dnl $Id$
2
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/c/src/lib/libbsp/$RTEMS_CPU"/*/make/custom/"$1" \
9    "${srcdir}/${RTEMS_TOPdir}/bspkit/${RTEMS_CPU}"/*/cfg/"$1" \
10    "${srcdir}/${RTEMS_TOPdir}/make/custom/$1";
11  do
12    AS_IF([test -r $i],[
13      $2="$i"
14      break;
15    ])
16  done
17  AS_IF([test -n "[$]$2"],
18    [AC_MSG_RESULT([[$]$2])],
19    [AC_MSG_RESULT([no])])
20])
21
22AC_DEFUN([RTEMS_CHECK_CUSTOM_BSP],[
23  AC_REQUIRE([RTEMS_TOP])
24  _RTEMS_CHECK_CUSTOM_BSP([[$]$1.cfg],[BSP_FOUND])
25])
Note: See TracBrowser for help on using the repository browser.