source: rtems/cpukit/aclocal/env-rtemsbsp.m4 @ 8e4cd5a

4.104.114.84.95
Last change on this file since 8e4cd5a was 8e4cd5a, checked in by Ralf Corsepius <ralf.corsepius@…>, on 12/06/02 at 11:21:50

2002-12-06 Ralf Corsepius <corsepiu@…>

  • automake/multilib.am: Don't include @RTEMS_BSP@.cfg.
  • automake/compile.am: Remove hard-coded CFLAGS_PROFILE_V. Add autoconf-supplied CPU_CFLAGS, CFLAGS_OPTIMIZE_V, CFLAGS_DEBUG_V, CFLAGS_PROFILE_V. Hard-code RTEMS_CFLAGS_PROFILE = -pg
  • aclocal/prog-cc.m4: Sync with toplevel/aclocal/prog-cc.m4. Remove GCCSED.
  • aclocal/env-rtemsbsp.m4: Add AC_ARG_VAR for CPU_CFLAGS, CFLAGS_OPTIMIZE_V, CFLAGS_DEBUG_V, CFLAGS_PROFILE_V.
  • Property mode set to 100644
File size: 1.2 KB
Line 
1dnl $Id$
2
3dnl Pass a single BSP via an environment variable
4dnl used by per BSP configure scripts
5AC_DEFUN(RTEMS_ENV_RTEMSBSP,
6[dnl
7AC_BEFORE([$0], [RTEMS_ENABLE_RTEMSBSP])dnl
8AC_BEFORE([$0], [RTEMS_PROJECT_ROOT])dnl
9AC_BEFORE([$0], [RTEMS_CHECK_CUSTOM_BSP])dnl
10
11AC_ARG_VAR([CPU_CFLAGS],[])
12AC_ARG_VAR([CFLAGS_OPTIMIZE_V],[])
13AC_ARG_VAR([CFLAGS_DEBUG_V],[])
14AC_ARG_VAR([CFLAGS_PROFILE_V],[])
15
16AC_ARG_VAR([RTEMS_BSP],[RTEMS_BSP to build])
17AC_MSG_CHECKING([for RTEMS_BSP])
18AC_CACHE_VAL(rtems_cv_RTEMS_BSP,
19[dnl
20  test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP";
21])dnl
22if test -z "$rtems_cv_RTEMS_BSP"; then
23  AC_MSG_ERROR([Missing RTEMS_BSP])
24fi
25RTEMS_BSP="$rtems_cv_RTEMS_BSP"
26AC_MSG_RESULT(${RTEMS_BSP})
27AC_SUBST(RTEMS_BSP)
28
29PROJECT_INCLUDE="\$(PROJECT_ROOT)/$RTEMS_BSP/lib/include"
30AC_SUBST(PROJECT_INCLUDE)
31
32project_libdir="${PROJECT_ROOT}/$RTEMS_BSP/lib"   
33AC_SUBST(project_libdir)
34
35RTEMS_ROOT="$PROJECT_ROOT/c/$RTEMS_BSP"
36AC_SUBST(RTEMS_ROOT)
37
38GCC_SPECS="-isystem \$(PROJECT_INCLUDE)"
39AC_SUBST(GCC_SPECS)
40
41RTEMS_ENABLE_BARE
42AC_SUBST(BARE_CPU_MODEL)
43AC_SUBST(BARE_CPU_CFLAGS)
44
45AM_CONDITIONAL([MULTILIB],[false])
46
47includedir="\${exec_prefix}/${RTEMS_BSP}/lib/include"
48libdir="\${exec_prefix}/${RTEMS_BSP}/lib"
49])
Note: See TracBrowser for help on using the repository browser.