Changeset 2d1daae in rtems


Ignore:
Timestamp:
Oct 18, 2004, 9:33:13 AM (15 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
504112d
Parents:
2c8d5f2
Message:

2004-10-18 Ralf Corsepius <ralf_corsepius@…>

  • configure.ac: Rework checking for BSPs.
Location:
c
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/ChangeLog

    r2c8d5f2 r2d1daae  
     12004-10-18      Ralf Corsepius <ralf_corsepius@rtems.org>
     2
     3        * configure.ac: Rework checking for BSPs.
     4
    152004-10-18      Ralf Corsepius <ralf_corsepius@rtems.org>
    26
  • c/configure.ac

    r2c8d5f2 r2d1daae  
    1616RTEMS_ENABLE_RTEMSBSP
    1717
     18# Set up rtems_bsp
    1819AS_IF([test x"$enable_rtemsbsp" = x"no"],[
     20# --disable-rtemsbsp
    1921  rtems_bsp=""
    2022],[
    2123  AS_IF([test -z "$enable_rtemsbsp"],
    22     [RTEMS_CHECK_BSPS(rtems_bsp)],
    23     [rtems_bsp="$enable_rtemsbsp"])
     24    [# --enable-rtemsbsp=""
     25    RTEMS_CHECK_BSPS(rtems_bsp)],
     26    [# --enable-rtemsbsp="list"
     27    rtems_bsp="$enable_rtemsbsp"])
     28])
    2429
    25 for i in $rtems_bsp; do
     30# Check sanity of BSPs in $rtems_bsp
     31for _rtems_bsp in : $rtems_bsp; do test "x$_rtems_bsp" = x: && continue
     32  # make sure there is a make/custom file for the bsp
     33  _RTEMS_CHECK_CUSTOM_BSP([$_rtems_bsp.cfg],[bsp_cfg])
    2634
    27     # make sure there is a make/custom file for the bsp
    28     RTEMS_CHECK_CUSTOM_BSP(i)
    29  
    30     RTEMS_BSP_ALIAS($i,bspdir)
     35  AS_IF([test -n "$bsp_cfg"],
     36  [
     37    # retrieve bsp_family
     38    RTEMS_BSP_ALIAS([$_rtems_bsp],[rtems_bsp_family])
    3139
    3240    # Is there code where there should be for this BSP?
    33     # The bare bsp is a special case as it is not under the RTEMS_CPU path
    34     case $bspdir in
    35       bare)
    36         bspcpudir=
    37         ;;
    38       *)
    39         bspcpudir=$RTEMS_CPU/
    40         ;;
     41    case $rtems_bsp_family in
     42    bare ) rtems_libbspdir="$srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/bare" ;;
     43    * )    rtems_libbspdir="$srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU/$rtems_bsp_family";;
    4144    esac
    42      
    43     if test -d "$srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$bspcpudir$bspdir"; then
    44       RTEMS_BSP_LIST="$RTEMS_BSP_LIST $i"
    45     else
    46       AC_MSG_ERROR([unable to find libbsp directory ($bspdir) for  $i])
    47     fi
     45
     46    # Is there a configure script for the BSP?   
     47    AS_IF([test -r "$rtems_libbspdir/configure"],
     48      [RTEMS_BSP_LIST="$RTEMS_BSP_LIST $_rtems_bsp"])
     49  ])
    4850done
    49 ])
    5051
    5152#
     
    8586],[RTEMS_BSP_LIST="$RTEMS_BSP_LIST"])
    8687AC_OUTPUT
    87 
     88AS_IF([test -n "$RTEMS_BSP_LIST"],[
    8889echo
    8990echo target architecture: $target_cpu.
    90 echo available BSPs: $rtems_bsp.
     91echo available BSPs: $RTEMS_BSP_LIST.
    9192echo \'${MAKE} all\' will build the following BSPs: $RTEMS_BSP_LIST.
    9293echo other BSPs can be built with \'${MAKE} RTEMS_BSP=\"bsp1 bsp2 ...\"\'
    9394echo
     95])
Note: See TracChangeset for help on using the changeset viewer.