source: rtems/cpukit/aclocal/env-rtemsbsp.m4 @ 385b2e2

Last change on this file since 385b2e2 was 385b2e2, checked in by Ralf Corsepius <ralf.corsepius@…>, on Feb 18, 2003 at 12:58:44 PM

2003-02-18 Ralf Corsepius <corsepiu@…>

  • automake/local.am: Introduce depend-gcc. Remove ${ARCH}.
  • automake/compile.am: Remove GCCSPECS, GCC_SPECS, CONFIG.CC, CC, CPP. Add ${ARCH}. depend-gcc.
  • aclocal/prog-cc.m4: Set up RTEMS_CPPFLAGS.
  • aclocal/env-rtemscpu.m4: Remove GCC_SPECS.
  • aclocal/env-rtemsbsp.m4: Remove GCC_SPECS.
  • Property mode set to 100644
File size: 1.1 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
9
10AC_ARG_VAR([CPU_CFLAGS],[])
11AC_ARG_VAR([CFLAGS_OPTIMIZE_V],[])
12AC_ARG_VAR([CFLAGS_DEBUG_V],[])
13AC_ARG_VAR([CFLAGS_PROFILE_V],[])
14
15AC_ARG_VAR([RTEMS_BSP],[RTEMS_BSP to build])
16AC_MSG_CHECKING([for RTEMS_BSP])
17AC_CACHE_VAL(rtems_cv_RTEMS_BSP,
18[dnl
19  test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP";
20])dnl
21if test -z "$rtems_cv_RTEMS_BSP"; then
22  AC_MSG_ERROR([Missing RTEMS_BSP])
23fi
24RTEMS_BSP="$rtems_cv_RTEMS_BSP"
25AC_MSG_RESULT(${RTEMS_BSP})
26AC_SUBST(RTEMS_BSP)
27
28PROJECT_INCLUDE="\$(PROJECT_ROOT)/$RTEMS_BSP/lib/include"
29AC_SUBST(PROJECT_INCLUDE)
30
31project_libdir="${PROJECT_ROOT}/$RTEMS_BSP/lib"   
32AC_SUBST(project_libdir)
33
34RTEMS_ROOT="$PROJECT_ROOT/c/$RTEMS_BSP"
35AC_SUBST(RTEMS_ROOT)
36
37RTEMS_ENABLE_BARE
38AC_SUBST(BARE_CPU_MODEL)
39AC_SUBST(BARE_CPU_CFLAGS)
40
41AM_CONDITIONAL([MULTILIB],[false])
42
43includedir="\${exec_prefix}/${RTEMS_BSP}/lib/include"
44libdir="\${exec_prefix}/${RTEMS_BSP}/lib"
45])
Note: See TracBrowser for help on using the repository browser.