source: rtems/aclocal/check-bsps.m4 @ 7ff743d

5
Last change on this file since 7ff743d was 7d905df, checked in by Joel Sherrill <joel@…>, on 11/21/17 at 23:02:06

aclocal/check-bsps.m4: Do not rely on bsp_specs to find BSP families

Updates #3520.

  • Property mode set to 100644
File size: 937 bytes
Line 
1dnl Report all available bsps for a target within the source tree
2dnl
3dnl RTEMS_CHECK_BSPS(bsp_list)
4AC_DEFUN([RTEMS_CHECK_BSPS],
5[
6AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])dnl sets RTEMS_CPU, target
7AC_REQUIRE([RTEMS_TOP])dnl sets RTEMS_TOPdir
8
9AC_MSG_CHECKING([for available BSPs])
10  $1=
11  for bsp_make in `echo "$srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU"/*/make 2>/dev/null`; do
12    bsp_family=`echo "$bsp_make" | sed \
13      -e "s,^$srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU/,," \
14      -e "s,/make$,,"`
15    for bsp_cfgs in `ls "$srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU/$bsp_family/make/custom/"*.cfg 2>/dev/null`; do
16      bsp_cfg=`echo "$bsp_cfgs" | sed \
17        -e "s,^$srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU/$bsp_family/make/custom/,," \
18        -e "s,\.cfg$,,"`
19      $1="[$]$1 $bsp_cfg"
20    done
21  done
22  AS_IF([test -z "[$]$1"],
23    [AC_MSG_RESULT([none])],
24    [AC_MSG_RESULT([$]$1)])
25])dnl
Note: See TracBrowser for help on using the repository browser.