source: rtems/aclocal/check-bsps.m4 @ 6504558

4.104.115
Last change on this file since 6504558 was 6504558, checked in by Ralf Corsepius <ralf.corsepius@…>, on Oct 15, 2009 at 2:15:34 PM

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

  • aclocal/check-bsps.m4: Pickup bsps from c/src/lib/libbsp/<cpu>/<bsp_family>/make/custom*.cfg.
  • Property mode set to 100644
File size: 1.1 KB
Line 
1dnl $Id$
2
3dnl Report all available bsps for a target within the source tree
4dnl
5dnl RTEMS_CHECK_BSPS(bsp_list)
6AC_DEFUN([RTEMS_CHECK_BSPS],
7[
8AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])dnl sets RTEMS_CPU, target
9AC_REQUIRE([RTEMS_TOP])dnl sets RTEMS_TOPdir
10
11AC_MSG_CHECKING([for available BSPs])
12  $1=
13  for bsp_spec in `ls "$srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU"/*/bsp_specs 2>/dev/null`; do
14    bsp_family=`echo "$bsp_spec" | sed \
15      -e "s,^$srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU/,," \
16      -e "s,/bsp_specs$,,"`
17    for bsp_cfgs in `ls "$srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU/$bsp_family/make/custom/"*.cfg 2>/dev/null`; do
18      bsp_cfg=`echo "$bsp_cfgs" | sed \
19        -e "s,^$srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU/$bsp_family/make/custom/,," \
20        -e "s,\.cfg$,,"`
21      case $bsp_cfg in
22      # blacklisted bsps
23      tqm8xx);; # powerpc
24      genmcf548x);; # m68k
25      mbx8xx);; # powerpc
26      gen5200);; # powerpc
27      gen83xx);; # powerpc
28      lpc24xx);; # arm
29      *) $1="[$]$1 $bsp_cfg";;
30      esac
31    done
32  done
33  AS_IF([test -z "[$]$1"],
34    [AC_MSG_RESULT([none])],
35    [AC_MSG_RESULT([$]$1)])
36])dnl
Note: See TracBrowser for help on using the repository browser.