source: rtems/aclocal/bsp-alias.m4 @ c14858f0

4.104.115
Last change on this file since c14858f0 was 9ffd6b8, checked in by Ralf Corsepius <ralf.corsepius@…>, on 10/16/09 at 01:34:46

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

  • aclocal/bsp-alias.m4: Pickup bsps from c/src/lib/libbsp/<cpu>/<bsp_family>/make/custom*.cfg.
  • Property mode set to 100644
File size: 826 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  case $1 in
10    bare*)        $2=bare             ;; # EXP: bare-aliases
11
12    *)
13      for bsp_cfgs in `ls "$srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU/*/make/custom/$1.cfg" 2>/dev/null`; do
14        $2=`echo "$bsp_cfgs" | sed \
15          -e "s,^$srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU/,," \
16          -e "s,/make/custom/.*\.cfg$,,"`
17        break
18      done
19      ;;
20  esac]
21)
22
23dnl RTEMS_BSP_ALIAS(BSP_ALIAS,RTEMS_BSP_FAMILY)
24dnl convert a bsp alias $1 into its bsp directory RTEMS_BSP_FAMILY
25AC_DEFUN([RTEMS_BSP_ALIAS],
26[_RTEMS_BSP_ALIAS(m4_if([$1],,[$RTEMS_BSP],[$1]),
27  m4_if([$2],,[RTEMS_BSP_FAMILY],[$2]))]
28)
Note: See TracBrowser for help on using the repository browser.