source: rtems/c/src/aclocal/bsp-alias.m4 @ 67bb173

4.104.11
Last change on this file since 67bb173 was 67bb173, checked in by Ralf Corsepius <ralf.corsepius@…>, on Oct 21, 2009 at 10:10:45 AM

2009-10-21 Ralf Corsépius <ralf.corsepius@…>

  • aclocal/bsp-alias.m4: New.
  • configure.ac: Apply RTEMS_BSP_ALIAS for RTEMS_BSP_FAMILY.
  • Property mode set to 100644
File size: 730 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.