source: rtems/c/src/exec/score/cpu/i386/configure.in @ 1972b1e

4.104.114.84.95
Last change on this file since 1972b1e was 1972b1e, checked in by Joel Sherrill <joel.sherrill@…>, on 12/01/99 at 14:46:02

Patch rtems-rc-19991123-rc-2.diff from Ralf Corsepius
<corsepiu@…> which implements automake support for some
score/cpu/<RTEMS_CPU> subdirectories and fixes a few minor configuration
bugs.

To apply:

rm -rf c/src/exec/score/cpu/a29k/wrap
rm -rf c/src/exec/score/cpu/hppa1.1/wrap
rm -rf c/src/exec/score/cpu/i386/wrap
rm -rf c/src/exec/score/cpu/mips64orion/wrap
rm -rf c/src/exec/score/cpu/no_cpu/wrap
patch -p1 < rtems-rc-19991123-rc-2.diff.gz

Notes:

  • I don't see a possiblity to convert the powerpc subdirectory in its current layout to automake the time being.
  • Besides the fact that this subdirectory is not in single-tree building layout, the actual showstopper is the ifeq $(RTEMS_CPU_MODEL),mpc750) gmake-conditional in powerpc/Makefile.in, which automake (correctly) refuses to handle.
  • The problem is *not* specific to the powerpc. Other CPUs basically have similar problems (SH:sh7032 vs sh7045, SPARC: erc32.h in score/cpu/sparc), but have been lucky to get around real issues (cf. configuration files below score/cpu/sh/).
  • From a configuration focused POV this problem boils down to a file/subdirectory selection problem:

ppc: 1 or others
sh: 1 out of 2
sparc: 1 out of 1

Automake's means to implement such behavior is using conditionals to be
evaluated at configuration-time. The old configuration scheme however
used make-time conditionals. The SH port was lucky to get around this
issue because it applies a selection from a limited set of possible
selections, the powerpc however applies a selection from an unlimited
set, based on data not being available at configuration time.

  • Currently I only see two general solutions:

1) make RTEMS_CPU_MODEL available at configuration time, ie. replace

make-time configuration by configuration-time configuration

2) Perform the selection at build-time, i.e. always install all files,

but use #ifdef #else #endif in source files. This is what the m68k has
exploited at other locations inside of the source-tree.

=> This directory is the last one remaining not using automake below the

whole exec/ hierarchy.

  • Property mode set to 100644
File size: 756 bytes
Line 
1dnl Process this file with autoconf to produce a configure script.
2dnl
3dnl $Id$
4
5AC_PREREQ(2.13)
6AC_INIT(cpu_asm.S)
7RTEMS_TOP(../../../../../..)
8AC_CONFIG_AUX_DIR(../../../../../..)
9
10RTEMS_CANONICAL_TARGET_CPU
11
12AM_INIT_AUTOMAKE(rtems-c-src-exec-score-cpu-i386,$RTEMS_VERSION,no)
13AM_MAINTAINER_MODE
14
15RTEMS_ENABLE_LIBCDIR
16
17RTEMS_ENV_RTEMSBSP
18
19RTEMS_CHECK_CPU
20RTEMS_CANONICAL_HOST
21
22RTEMS_PROJECT_ROOT
23
24dnl check target cc
25RTEMS_PROG_CC_FOR_TARGET
26RTEMS_CANONICALIZE_TOOLS
27
28RTEMS_CHECK_NEWLIB
29
30# Check if there is custom/*.cfg for this BSP
31RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
32
33PROJECT_INCLUDE="\$(PROJECT_ROOT)/$RTEMS_BSP/lib/include"
34AC_SUBST(PROJECT_INCLUDE)
35
36# Try to explicitly list a Makefile here
37AC_OUTPUT(
38Makefile
39rtems/Makefile
40rtems/score/Makefile)
Note: See TracBrowser for help on using the repository browser.