source: rtems/c/src/aclocal/check-custom-bsp.m4 @ 333a312

4.115
Last change on this file since 333a312 was 91d2e18, checked in by Ralf Corsépius <ralf.corsepius@…>, on 05/04/12 at 06:53:58

Remove CVS-Ids.

  • Property mode set to 100644
File size: 505 bytes
Line 
1AC_DEFUN([_RTEMS_CHECK_CUSTOM_BSP],[
2AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])dnl sets RTEMS_CPU, target
3AC_REQUIRE([RTEMS_TOP])dnl sets RTEMS_TOPdir
4  $2=
5  for i in \
6    `ls "${srcdir}/${RTEMS_TOPdir}/c/src/lib/libbsp/${RTEMS_CPU}"/*/make/custom/$1 2>/dev/null`;
7  do
8    AS_IF([test -r $i],[
9      $2="$i"
10      break
11    ])
12  done
13])
14
15AC_DEFUN([RTEMS_CHECK_CUSTOM_BSP],[
16  _RTEMS_CHECK_CUSTOM_BSP([[$]$1.cfg],[BSP_FOUND])
17  AS_IF([test -z "$BSP_FOUND"],[
18    AC_MSG_ERROR([missing [$]$1.cfg])
19  ])
20])
Note: See TracBrowser for help on using the repository browser.