OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [aclocal/] [check-bsps.m4] - Blame information for rev 1781

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
dnl check-bsps.m4,v 1.18 2001/11/21 18:36:51 joel Exp
2
 
3
dnl Report all available bsps for a target,
4
dnl check if a bsp-subdirectory is present for all bsps found
5
dnl
6
dnl RTEMS_CHECK_BSPS(bsp_list)
7
AC_DEFUN(RTEMS_CHECK_BSPS,
8
[
9
AC_REQUIRE([RTEMS_CHECK_CPU])dnl sets RTEMS_CPU, target
10
AC_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 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
          sim68000)          $1="[$]$1 sim68000 simcpu32";;
27
          shsim)             $1="[$]$1 simsh7032 simsh7045";;
28
          *)                 $1="[$]$1 $file";;
29
        esac;
30
      fi
31
    done
32
AC_MSG_RESULT([[$]$1 .. done])
33
])dnl
34
 
35
AC_DEFUN(RTEMS_CHECK_CUSTOM_BSP,
36
[dnl
37
AC_REQUIRE([RTEMS_TOP])
38
 
39
AC_MSG_CHECKING([for make/custom/[$]$1.cfg])
40
if test -r "$srcdir/$RTEMS_TOPdir/make/custom/[$]$1.cfg"; then
41
  AC_MSG_RESULT([yes])
42
else
43
  AC_MSG_ERROR([no])
44
fi
45
])dnl

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.