diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2001-01-29 15:27:25 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2001-01-29 15:27:25 +0000 |
commit | 560aae24e2aedf480676e5daf9c4c3e0eb62a120 (patch) | |
tree | e8c409e0f835f0ac3d317fb1597daba70e78183e /aclocal/env-rtemsbsp.m4 | |
parent | 2001-01-26 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff) | |
download | rtems-560aae24e2aedf480676e5daf9c4c3e0eb62a120.tar.bz2 |
2001-01-26 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* aclocal/enable-rtemsbsp.m4: Split out RTEMS_ENV_RTEMSBSP,
RTEMS_ENV_RTEMSCPU.
* aclocal/env-rtemsbsp.m4: New file for RTEMS_ENV_RTEMSBSP, add
special treatment for GCC_SPECS.
* aclocal/env-rtemscpu.m4: New file for RTEMS_ENV_RTEMSCPU, add
special treatment for GCC_SPECS.
* aclocal/bsp-enable-arg.m4: New file, introduce RTEMS_BSP_ARG_ENABLE.
* aclocal/prog-cc.m4: Add AC_PROG_CPP, use build_os in GCCSED hack.
* automake/compile.am: New treatment of CPP, GCCSPECS, use `..`
instead of $(shell ..) for LIBC_LIB*.
Diffstat (limited to 'aclocal/env-rtemsbsp.m4')
-rw-r--r-- | aclocal/env-rtemsbsp.m4 | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/aclocal/env-rtemsbsp.m4 b/aclocal/env-rtemsbsp.m4 new file mode 100644 index 0000000000..3c5ad6c0f3 --- /dev/null +++ b/aclocal/env-rtemsbsp.m4 @@ -0,0 +1,39 @@ +dnl $Id$ + +dnl Pass a single BSP via an environment variable +dnl used by per BSP configure scripts +AC_DEFUN(RTEMS_ENV_RTEMSBSP, +[dnl +AC_BEFORE([$0], [RTEMS_ENABLE_RTEMSBSP])dnl +AC_BEFORE([$0], [RTEMS_PROJECT_ROOT])dnl +AC_BEFORE([$0], [RTEMS_CHECK_CUSTOM_BSP])dnl + +AC_MSG_CHECKING([for RTEMS_BSP]) +AC_CACHE_VAL(rtems_cv_RTEMS_BSP, +[dnl + test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP"; +])dnl +if test -z "$rtems_cv_RTEMS_BSP"; then + AC_MSG_ERROR([Missing RTEMS_BSP]) +fi +RTEMS_BSP="$rtems_cv_RTEMS_BSP" +AC_MSG_RESULT(${RTEMS_BSP}) +AC_SUBST(RTEMS_BSP) + +RTEMS_BSP_SPECS="-specs bsp_specs -qrtems" +AC_SUBST(RTEMS_BSP_SPECS) + +GCC_SPECS="-B\$(PROJECT_ROOT)/$RTEMS_BSP/lib/" +AC_SUBST(GCC_SPECS) + +RTEMS_ROOT=$PROJECT_ROOT/c/$RTEMS_BSP +AC_SUBST(RTEMS_ROOT) + +RTEMS_ENABLE_BARE +AC_SUBST(BARE_CPU_MODEL) +AC_SUBST(BARE_CPU_CFLAGS) + +AM_CONDITIONAL(RTEMS_CONFIG_PER_BSP, test x = x); + +includedir="\${exec_prefix}/\$(RTEMS_BSP)/lib/include" +]) |