mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-28 07:20:16 +00:00
that is a somewhat experimental, multilib-related patch:
Changes:
* Use RTEMS_ENV_RTEMSCPU instead of RTEMS_ENV_RTEMSBSP in
configure.ins below exec/.
At the moment, RTEMS_ENV_RTEMSCPU is more or less an optical change
to emphasize that these subdirectories shall not depend on RTEMS_BSP
than a real behavioral change.
* Add AC_DEFINE_* to several aclocal/*.m4 macros to prepare
autoheader/autoconf generated targopts.h and similiar configuration
headers.
* c/src/configure.in: remove exec from cfg_subdirs if multilibs are
enabled (c/src is build per bsp, exec shall be build per cpu in c/
or from the toplevel in future, when multilibs are enabled.)
Notes:
* This patch should not have any impact on the current building scheme.
* --enable-multilib still does not work.
* running bootstrap from the toplevel directory is required.
CVS: ----------------------------------------------------------------------
CVS: Enter Log. Lines beginning with `CVS:' are removed automatically
CVS:
CVS: Committing in .
CVS:
CVS: Modified Files:
CVS: c/src/tests/libtests/termios/init.c
CVS: ----------------------------------------------------------------------
53 lines
1.3 KiB
Plaintext
53 lines
1.3 KiB
Plaintext
dnl $Id$
|
|
|
|
dnl Override the set of BSPs to be built.
|
|
dnl used by the toplevel configure script
|
|
dnl RTEMS_ENABLE_RTEMSBSP(rtems_bsp_list)
|
|
AC_DEFUN(RTEMS_ENABLE_RTEMSBSP,
|
|
[
|
|
AC_BEFORE([$0], [RTEMS_ENV_RTEMSBSP])dnl
|
|
AC_ARG_ENABLE(rtemsbsp,
|
|
[ --enable-rtemsbsp=bsp1 bsp2 .. BSPs to include in build],
|
|
[case "${enableval}" in
|
|
yes|no) AC_MSG_ERROR([missing argument to --enable-rtemsbsp=\"bsp1 bsp2\"]);;
|
|
*) $1=$enableval;;
|
|
esac],[$1=""])
|
|
])
|
|
|
|
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_ROOT=$RTEMS_TOPdir/'$(top_builddir)'/c/$RTEMS_BSP
|
|
## AC_SUBST(RTEMS_ROOT)
|
|
])
|
|
|
|
AC_DEFUN(RTEMS_ENV_RTEMSCPU,
|
|
[AC_REQUIRE([RTEMS_ENABLE_MULTILIB])
|
|
if test x"$multilib" = x"no"; then
|
|
RTEMS_ENV_RTEMSBSP
|
|
else
|
|
rtems_cv_RTEMS_BSP="multilib"
|
|
RTEMS_BSP="$rtems_cv_RTEMS_BSP"
|
|
AC_SUBST(RTEMS_BSP)
|
|
## RTEMS_ROOT=$RTEMS_TOPdir/'$(top_builddir)'/c
|
|
## AC_SUBST(RTEMS_ROOT)
|
|
fi
|
|
])
|