source: rtems/c/src/aclocal/bsp-alias.m4 @ 4778c6e0

4.11
Last change on this file since 4778c6e0 was ea2b19d, checked in by Ralf Corsepius <ralf.corsepius@…>, on May 11, 2010 at 3:05:19 PM

2010-05-11 Ralf Corsépius <ralf.corsepius@…>

  • Property mode set to 100644
File size: 734 bytes
Line 
1dnl
2dnl  $Id$
3dnl
4
5dnl _RTEMS_BSP_ALIAS(BSP_ALIAS,RTEMS_BSP_FAMILY)
6dnl Internal subroutine to RTEMS_BSP_ALIAS
7AC_DEFUN([_RTEMS_BSP_ALIAS],
8[# account for "aliased" bsps which share source code
9      for bsp_cfgs in `ls "$srcdir"/"$RTEMS_TOPdir"/c/src/lib/libbsp/"$RTEMS_CPU"/*/"make/custom/$1.cfg" 2>/dev/null`; do
10        $2=`echo "$bsp_cfgs" | sed \
11          -e "s,^$srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU/,," \
12          -e "s,/make/custom/.*\.cfg$,,"`
13        break
14      done
15])
16
17dnl RTEMS_BSP_ALIAS(BSP_ALIAS,RTEMS_BSP_FAMILY)
18dnl convert a bsp alias $1 into its bsp directory RTEMS_BSP_FAMILY
19AC_DEFUN([RTEMS_BSP_ALIAS],
20[_RTEMS_BSP_ALIAS(m4_if([$1],,[$RTEMS_BSP],[$1]),
21  m4_if([$2],,[RTEMS_BSP_FAMILY],[$2]))]
22)
Note: See TracBrowser for help on using the repository browser.