source: rtems/macros/enable-rtemsbsp.m4 @ 3174a7ed

4.104.114.84.9
Last change on this file since 3174a7ed was 3174a7ed, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 31, 2000 at 9:20:00 PM

2000-10-30 Ralf Corsepius <corsepiu@…>

  • configure.in: New, Cygnus/GNU style configuration.
  • Makefile.am: Add macros/, reflect new configure.in, ACLOCAL_AMFLAGS = -I $(RTEMS_TOPdir)/macros
  • automake/compile.am: BSP_SPECS, remove RTEMS_CANONICALIZATION.
  • automake/lib.am: Remove RTEMS_CANONICALIZATION.
  • macros/tool-prefix.m4: Remove.
  • macros/target.m4: Remove RTEMS_CONFIG_SUBDIRS, RTEMS_OUTPUT_SUBDIRS.
  • macros/enable-rtemsbsp.m4: Add RTEMS_CONFIG_PER_BSP, add setting RTEMS_ROOT.
  • macros/i386-gas-code16.m4: Define NEW_GAS only for 16bit mode-
  • macros/multilib.m4: Various minor fixes.
  • macros/project-root.m4: Remove setting PROJECT_TOPdir, PROJECT_ROOT, RTEMS_ROOT.
  • macros/rtems-top.m4: Remove RTEMS_CANONICALIZATION, TARGET_SUBDIRS; Add with_target_subdirs, PROJECT_TOPdir, PROJECT_ROOT.
  • Property mode set to 100644
File size: 1.5 KB
Line 
1dnl $Id$
2
3dnl Override the set of BSPs to be built.
4dnl used by the toplevel configure script
5dnl RTEMS_ENABLE_RTEMSBSP(rtems_bsp_list)
6AC_DEFUN(RTEMS_ENABLE_RTEMSBSP,
7[
8AC_BEFORE([$0], [RTEMS_ENV_RTEMSBSP])dnl
9AC_ARG_ENABLE(rtemsbsp,
10[  --enable-rtemsbsp=bsp1 bsp2 ..      BSPs to include in build],
11[case "${enableval}" in
12  yes|no) AC_MSG_ERROR([missing argument to --enable-rtemsbsp=\"bsp1 bsp2\"]);;
13  *) $1=$enableval;;
14esac],[$1=""])
15])
16
17dnl Pass a single BSP via an environment variable
18dnl used by per BSP configure scripts
19AC_DEFUN(RTEMS_ENV_RTEMSBSP,
20[dnl
21AC_BEFORE([$0], [RTEMS_ENABLE_RTEMSBSP])dnl
22AC_BEFORE([$0], [RTEMS_PROJECT_ROOT])dnl
23AC_BEFORE([$0], [RTEMS_CHECK_CUSTOM_BSP])dnl
24
25AC_MSG_CHECKING([for RTEMS_BSP])
26AC_CACHE_VAL(rtems_cv_RTEMS_BSP,
27[dnl
28  test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP";
29])dnl
30if test -z "$rtems_cv_RTEMS_BSP"; then
31  AC_MSG_ERROR([Missing RTEMS_BSP])
32fi
33RTEMS_BSP="$rtems_cv_RTEMS_BSP"
34AC_MSG_RESULT(${RTEMS_BSP})
35AC_SUBST(RTEMS_BSP)
36
37RTEMS_ENABLE_BARE
38AC_SUBST(BARE_CPU_MODEL)
39AC_SUBST(BARE_CPU_CFLAGS)
40
41RTEMS_ROOT=$PROJECT_ROOT/c/$RTEMS_BSP
42AC_SUBST(RTEMS_ROOT)
43AM_CONDITIONAL(RTEMS_CONFIG_PER_BSP, test x = x);
44])
45
46AC_DEFUN(RTEMS_ENV_RTEMSCPU,
47[AC_REQUIRE([RTEMS_ENABLE_MULTILIB])
48
49if test x"$multilib" = x"no"; then
50  RTEMS_ENV_RTEMSBSP
51  RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
52else
53  rtems_cv_RTEMS_BSP="multilib"
54  RTEMS_BSP="$rtems_cv_RTEMS_BSP"
55  AC_SUBST(RTEMS_BSP)
56  RTEMS_ROOT=$PROJECT_ROOT/c
57  AC_SUBST(RTEMS_ROOT)
58fi
59])
Note: See TracBrowser for help on using the repository browser.