source: rtems/aclocal/check-bsps.m4 @ 9c392aa2

4.104.114.84.95
Last change on this file since 9c392aa2 was 9c392aa2, checked in by Joel Sherrill <joel.sherrill@…>, on 11/15/01 at 16:50:33

2001-11-14 Ralf Corsepius <corsepiu@…>

  • aclocal/check-bsps.m4: Reworked.
  • aclocal/bsp-alias.m4: Add score603e_g1, apply m4sugar.
  • Property mode set to 100644
File size: 1.6 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 file in $files; do
14      if test -r $srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU/$file/bsp_specs; then
15        case $file in
16        # Now account for BSPs with build variants
17          c4xsim)            $1="[$]$1 c4xsim c3xsim";;
18          gen68360)          $1="[$]$1 gen68360 gen68360_040";;
19          p4000)             $1="[$]$1 p4600 p4650";;
20          mvme162)           $1="[$]$1 mvme162 mvme162lx";;
21          mbx8xx)            $1="[$]$1 mbx821_001 mbx860_002 mbx860_005b";;
22          motorola_powerpc)  $1="[$]$1 mvme2307 mcp750";;
23          pc386)             $1="[$]$1 pc386 pc386dx pc486 pc586 pc686 pck6";;
24          erc32)             $1="[$]$1 erc32 erc32nfp";;
25          leon)              $1="[$]$1 leon1 leon2";;
26          score603e)         $1="[$]$1 score603e score603e_g1";;
27          sim68000)          $1="[$]$1 sim68000 simcpu32";;
28          shsim)             $1="[$]$1 simsh7032 simsh7045";;
29          *)                 $1="[$]$1 $file";;
30        esac;
31      fi
32    done
33AC_MSG_RESULT([[$]$1 .. done])
34])dnl
35
36AC_DEFUN(RTEMS_CHECK_CUSTOM_BSP,
37[dnl
38AC_REQUIRE([RTEMS_TOP])
39
40AC_MSG_CHECKING([for make/custom/[$]$1.cfg])
41if test -r "$srcdir/$RTEMS_TOPdir/make/custom/[$]$1.cfg"; then
42  AC_MSG_RESULT([yes])
43else
44  AC_MSG_ERROR([no])
45fi
46])dnl
Note: See TracBrowser for help on using the repository browser.