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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [aclocal/] [env-rtemsbsp.m4] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
dnl env-rtemsbsp.m4,v 1.7 2002/08/06 07:31:47 ralf Exp
2
 
3
dnl Pass a single BSP via an environment variable
4
dnl used by per BSP configure scripts
5
AC_DEFUN(RTEMS_ENV_RTEMSBSP,
6
[dnl
7
AC_BEFORE([$0], [RTEMS_ENABLE_RTEMSBSP])dnl
8
AC_BEFORE([$0], [RTEMS_PROJECT_ROOT])dnl
9
AC_BEFORE([$0], [RTEMS_CHECK_CUSTOM_BSP])dnl
10
 
11
AC_ARG_VAR([RTEMS_BSP],[RTEMS_BSP to build])
12
AC_MSG_CHECKING([for RTEMS_BSP])
13
AC_CACHE_VAL(rtems_cv_RTEMS_BSP,
14
[dnl
15
  test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP";
16
])dnl
17
if test -z "$rtems_cv_RTEMS_BSP"; then
18
  AC_MSG_ERROR([Missing RTEMS_BSP])
19
fi
20
RTEMS_BSP="$rtems_cv_RTEMS_BSP"
21
AC_MSG_RESULT(${RTEMS_BSP})
22
AC_SUBST(RTEMS_BSP)
23
 
24
RTEMS_BSP_SPECS="-specs bsp_specs -qrtems"
25
AC_SUBST(RTEMS_BSP_SPECS)
26
 
27
GCC_SPECS="-B\$(PROJECT_ROOT)/lib/ -B\$(PROJECT_ROOT)/$RTEMS_BSP/lib/"
28
AC_SUBST(GCC_SPECS)
29
 
30
PROJECT_INCLUDE="\$(PROJECT_ROOT)/$RTEMS_BSP/lib/include"
31
AC_SUBST(PROJECT_INCLUDE)
32
 
33
PROJECT_RELEASE="\$(PROJECT_ROOT)/$RTEMS_BSP"
34
AC_SUBST(PROJECT_RELEASE)
35
 
36
RTEMS_ROOT=$PROJECT_ROOT/c/$RTEMS_BSP
37
AC_SUBST(RTEMS_ROOT)
38
 
39
RTEMS_ENABLE_BARE
40
AC_SUBST(BARE_CPU_MODEL)
41
AC_SUBST(BARE_CPU_CFLAGS)
42
 
43
AM_CONDITIONAL([MULTILIB],[false])
44
 
45
includedir="\${exec_prefix}/${RTEMS_BSP}/lib/include"
46
libdir="\${exec_prefix}/${RTEMS_BSP}/lib"
47
 
48
bsplibdir="\${exec_prefix}/${RTEMS_BSP}/lib"
49
AC_SUBST(bsplibdir)
50
])

powered by: WebSVN 2.1.0

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