source: rtems/aclocal/check-bsps.m4

Last change on this file 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: 899 bytes
Line 
1dnl Report all available bsps for a target within the source tree
2dnl
3dnl RTEMS_CHECK_BSPS(bsp_list)
4AC_DEFUN([RTEMS_CHECK_BSPS],
5[
6AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])dnl sets RTEMS_CPU, target
7AC_REQUIRE([RTEMS_SOURCE_TOP])dnl sets RTEMS_SOURCE_ROOT
8
9AC_MSG_CHECKING([for available BSPs])
10  $1=
11  for bsp_make in `echo "${RTEMS_SOURCE_ROOT}/bsps/${RTEMS_CPU}"/*/config 2>/dev/null`; do
12    bsp_family=`echo "$bsp_make" | sed \
13      -e "s,^${RTEMS_SOURCE_ROOT}/bsps/${RTEMS_CPU}/,," \
14      -e "s,/config$,,"`
15    for bsp_cfgs in `ls "${RTEMS_SOURCE_ROOT}/bsps/${RTEMS_CPU}/$bsp_family/config/"*.cfg 2>/dev/null`; do
16      bsp_cfg=`echo "$bsp_cfgs" | sed \
17        -e "s,^${RTEMS_SOURCE_ROOT}/bsps/${RTEMS_CPU}/$bsp_family/config/,," \
18        -e "s,\.cfg$,,"`
19      $1="[$]$1 $bsp_cfg"
20    done
21  done
22  AS_IF([test -z "[$]$1"],
23    [AC_MSG_RESULT([none])],
24    [AC_MSG_RESULT([$]$1)])
25])dnl
Note: See TracBrowser for help on using the repository browser.