source: rtems/aclocal/check-custom-bsp.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: 496 bytes
Line 
1AC_DEFUN([_RTEMS_CHECK_CUSTOM_BSP],[
2AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])dnl sets RTEMS_CPU, target
3AC_REQUIRE([RTEMS_SOURCE_TOP])dnl sets RTEMS_SOURCE_ROOT
4  $2=
5  for i in \
6    `ls "${RTEMS_SOURCE_ROOT}/bsps/${RTEMS_CPU}"/*/config/$1 2>/dev/null`;
7  do
8    AS_IF([test -r $i],[
9      $2="$i"
10      break;
11    ])
12  done
13])
14
15AC_DEFUN([RTEMS_CHECK_CUSTOM_BSP],[
16  _RTEMS_CHECK_CUSTOM_BSP([[$]$1.cfg],[BSP_FOUND])
17  AS_IF([test -z "$BSP_FOUND"],[
18    AC_MSG_ERROR([missing [$]$1.cfg])
19  ])
20])
Note: See TracBrowser for help on using the repository browser.