Changeset 504112d in rtems for aclocal/check-bsps.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-bsps.m4

    r2d1daae r504112d  
    11dnl $Id$
    22
    3 dnl Report all available bsps for a target,
    4 dnl check if a bsp-subdirectory is present for all bsps found
     3dnl Report all available bsps for a target within the source tree
    54dnl
    65dnl RTEMS_CHECK_BSPS(bsp_list)
    76AC_DEFUN([RTEMS_CHECK_BSPS],
    87[
    9 AC_REQUIRE([RTEMS_CHECK_CPU])dnl sets RTEMS_CPU, target
     8AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])dnl sets RTEMS_CPU, target
    109AC_REQUIRE([RTEMS_TOP])dnl sets RTEMS_TOPdir
    11 AC_MSG_CHECKING([for bsps])
    12     files=`ls $srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU`
    13     for bsp_family in $files; do
    14       if test -r $srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU/$bsp_family/bsp_specs; then
    15         case $bsp_family in
     10
     11AC_MSG_CHECKING([for available BSPs])
     12  $1=
     13  for bsp_spec in "$srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU"/*/bsp_specs; 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    case $bsp_family in
    1618        # Now account for BSPs with build variants
    1719          c4xsim)            bsps="c4xsim c3xsim";;
     
    2729          shsim)             bsps="simsh7032 simsh7045";;
    2830          *)                 bsps="$bsp_family";;
    29         esac;
    30         for bsp in $bsps; do
    31           AS_IF([test -r $srcdir/$RTEMS_TOPdir/make/custom/$bsp.cfg],
    32             [$1="[$]$1 $bsp"])
    33         done
    34       fi
    35     done
    36 AC_MSG_RESULT([[$]$1 .. done])
     31    esac;
     32    $1="[$]$1 $bsps"
     33  done
     34  AS_IF([test -z "[$]$1"],
     35    [AC_MSG_RESULT([none])],
     36    [AC_MSG_RESULT([$]$1)])
    3737])dnl
Note: See TracChangeset for help on using the changeset viewer.