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

Last change on this file since ef30eb1 was adb85dd, checked in by Sebastian Huber <sebastian.huber@…>, on Apr 21, 2018 at 8:22:08 AM

bsps: Move make/custom/* files to bsps

Adjust various build files. Remove automatic generation of the
c/src/lib/libbsp/*/acinclude.m4 files from bootstrap script.

This patch is a part of the BSP source reorganization.

Update #3285.

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