OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [aclocal/] [enable-rtemsbsp.m4] - Blame information for rev 745

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
dnl $Id: enable-rtemsbsp.m4,v 1.2 2001-09-27 11:59:11 chris Exp $
2
 
3
dnl Override the set of BSPs to be built.
4
dnl used by the toplevel configure script
5
dnl RTEMS_ENABLE_RTEMSBSP(rtems_bsp_list)
6
AC_DEFUN(RTEMS_ENABLE_RTEMSBSP,
7
[
8
AC_BEFORE([$0], [RTEMS_ENV_RTEMSBSP])dnl
9
AC_ARG_ENABLE(rtemsbsp,
10
[  --enable-rtemsbsp=bsp1 bsp2 ..      BSPs to include in build],
11
[case "${enableval}" in
12
  yes|no) AC_MSG_ERROR([missing argument to --enable-rtemsbsp=\"bsp1 bsp2\"]);;
13
  *) $1=$enableval;;
14
esac],[$1=""])
15
])
16
 
17
dnl Pass a single BSP via an environment variable
18
dnl used by per BSP configure scripts
19
AC_DEFUN(RTEMS_ENV_RTEMSBSP,
20
[dnl
21
AC_BEFORE([$0], [RTEMS_ENABLE_RTEMSBSP])dnl
22
AC_BEFORE([$0], [RTEMS_PROJECT_ROOT])dnl
23
AC_BEFORE([$0], [RTEMS_CHECK_CUSTOM_BSP])dnl
24
 
25
AC_MSG_CHECKING([for RTEMS_BSP])
26
AC_CACHE_VAL(rtems_cv_RTEMS_BSP,
27
[dnl
28
  test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP";
29
])dnl
30
if test -z "$rtems_cv_RTEMS_BSP"; then
31
  AC_MSG_ERROR([Missing RTEMS_BSP])
32
fi
33
RTEMS_BSP="$rtems_cv_RTEMS_BSP"
34
AC_MSG_RESULT(${RTEMS_BSP})
35
AC_SUBST(RTEMS_BSP)
36
])

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.