source: rtems/aclocal/check-bsps.m4 @ 9078e097

4.104.114.84.9
Last change on this file since 9078e097 was 86a84373, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 16, 2004 at 4:18:26 PM

2004-01-16 Ralf Corsepius <corsepiu@…>

  • configure.ac: Require automake >= 1.8.2.
  • aclocal/check-bsps.m4: Also test for make/custom/*.cfg.
  • Property mode set to 100644
File size: 1.4 KB
Line 
1dnl $Id$
2
3dnl Report all available bsps for a target,
4dnl check if a bsp-subdirectory is present for all bsps found
5dnl
6dnl RTEMS_CHECK_BSPS(bsp_list)
7AC_DEFUN([RTEMS_CHECK_BSPS],
8[
9AC_REQUIRE([RTEMS_CHECK_CPU])dnl sets RTEMS_CPU, target
10AC_REQUIRE([RTEMS_TOP])dnl sets RTEMS_TOPdir
11AC_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
16        # Now account for BSPs with build variants
17          c4xsim)            bsps="c4xsim c3xsim";;
18          gen68360)          bsps="gen68360 gen68360_040";;
19          p4000)             bsps="p4600 p4650";;
20          mvme162)           bsps="mvme162 mvme162lx";;
21          mbx8xx)            bsps="mbx821_001 mbx860_002 mbx860_005b";;
22          motorola_powerpc)  bsps="mvme2307 mcp750 mtx603e";;
23          pc386)             bsps="pc386 pc386dx pc486 pc586 pc686 pck6";;
24          erc32)             bsps="erc32 erc32nfp";;
25          leon)              bsps="leon1 leon2";;
26          sim68000)          bsps="sim68000 simcpu32";;
27          shsim)             bsps="simsh7032 simsh7045";;
28          *)                 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
36AC_MSG_RESULT([[$]$1 .. done])
37])dnl
Note: See TracBrowser for help on using the repository browser.