source: rtems/testsuites/aclocal/env-rtemsbsp.m4 @ a4b8a37d

4.104.114.84.9
Last change on this file since a4b8a37d was a4b8a37d, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 6, 2005 at 2:56:27 PM

2004-01-06 Ralf Corsepius <ralf.corsepius@…>

  • aclocal/env-rtemsbsp.m4: Remove CPU_CFLAGS, CFLAGS_OPTIMIZE_V, CFLAGS_DEBUG_V.
  • aclocal/prog-cc.m4: Don't invoke _RTEMS_FLAGS to set up RTEMS_CFLAGS.
  • aclocal/prog-cxx.m4: Let CXXFLAGS default to CFLAGS. Don't invoke _RTEMS_FLAGS to set up RTEMS_CXXFLAGS. Remove amfastdepCXX conditional.
  • Property mode set to 100644
File size: 1.3 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([RTEMS_BSP_FAMILY],[RTEMS's BSP directory])
12AC_ARG_VAR([RTEMS_CPU_MODEL],[RTEMS's cpu model])
13
14AC_ARG_VAR([RTEMS_BSP],[RTEMS_BSP to build])
15AC_MSG_CHECKING([for RTEMS_BSP])
16AC_CACHE_VAL(rtems_cv_RTEMS_BSP,
17[dnl
18  test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP";
19])dnl
20if test -z "$rtems_cv_RTEMS_BSP"; then
21  AC_MSG_ERROR([Missing RTEMS_BSP])
22fi
23RTEMS_BSP="$rtems_cv_RTEMS_BSP"
24AC_MSG_RESULT(${RTEMS_BSP})
25AC_SUBST(RTEMS_BSP)
26
27RTEMS_BSP_SPECS="-specs bsp_specs -qrtems"
28AC_SUBST(RTEMS_BSP_SPECS)
29
30GCC_SPECS="-B\$(PROJECT_ROOT)/lib/ -B\$(PROJECT_ROOT)/$RTEMS_BSP/lib/"
31AC_SUBST(GCC_SPECS)
32
33RTEMS_ENABLE_BARE
34AC_SUBST(BARE_CPU_MODEL)
35AC_SUBST(BARE_CPU_CFLAGS)
36
37AM_CONDITIONAL([MULTILIB],[false])
38
39includedir="\${exec_prefix}/${RTEMS_BSP}/lib/include"
40libdir="\${exec_prefix}/${RTEMS_BSP}/lib"
41
42AC_SUBST([PROJECT_INCLUDE],["\$(PROJECT_ROOT)/$RTEMS_BSP/lib/include"])
43AC_SUBST([PROJECT_LIB],["\$(PROJECT_ROOT)/$RTEMS_BSP/lib"])
44AC_SUBST([PROJECT_RELEASE],["\$(PROJECT_ROOT)/$RTEMS_BSP"])
45
46AC_SUBST([project_libdir],["\$(libdir)"])
47AC_SUBST([project_includedir],["\$(includedir)"])
48])
Note: See TracBrowser for help on using the repository browser.