Changeset 15aa5ffb in rtems for aclocal


Ignore:
Timestamp:
Jun 14, 1999, 6:54:24 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
0ac8e382
Parents:
3b38683
Message:

Patch ("FIX: no_cpu/no_bsp") from Ralf Corsepius <corsepiu@…>:

This patch should fix the nastiest configuration bugs for no_cpu/no_bsp.

With this patch applied, configure --target=no_cpu-rtems now correctly
acknowledges its configuration, but later fails building when trying to
build libcsupport (I leave this problem for you :-).

Fixes/Changes?:

  • aclocal/canonicalize-target-name.m4: use RTEMS_CPU instead of target_cpu, switch to a native compiler setup if target = no_cpu*rtems, ie. implicitly use host=target (native) and RTEMS_CPU=no_cpu for --target=no_cpu*rtems.
  • add no_bsp/bsp_specs (Support -qrtems, -qrtems_debug; please check before adding :-)
  • Use RTEMS_CANONICALIZE_TARGET_CPU instead of AC_CANONICAL_SYSTEM in toplevel/configure.in
  • All references to $target_cpu in aclocal/*.m4, Makefile.ins and *.cfg files changed to RTEMS_CPU
  • bug fixes to exec/score/cpu/no_cpu/wrap (This part of the patch may result into patch rejections, because your recently posted patch may also have addressed this problem).

After applying this patch, please do:

cvs add c/src/lib/libbsp/no_cpu/no_bsp/bsp_specs
./autogen

Location:
aclocal
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • aclocal/canonical-target-name.m4

    r3b38683 r15aa5ffb  
    1111AC_DEFUN(RTEMS_CANONICAL_TARGET_CPU,
    1212[
    13 AC_REQUIRE([AC_CANONICAL_SYSTEM])
     13rtems_target=$target;
     14case "$target" in
     15no_cpu*) target=$host;;
     16*) ;;
     17esac
     18AC_CANONICAL_SYSTEM
    1419AC_MSG_CHECKING(rtems target cpu)
    1520changequote(,)dnl
    16 case "${target}" in
     21case "${rtems_target}" in
    1722  # hpux unix port should go here
    1823  i[3456]86-go32-rtems*)
    19         target_cpu=i386
     24        RTEMS_CPU=i386
    2025        ;;
    2126  i[3456]86-pc-linux*)          # unix "simulator" port
    22         target_cpu=unix
     27        RTEMS_CPU=unix
    2328        ;;
    2429  i[3456]86-*freebsd2*)         # unix "simulator" port
    25         target_cpu=unix
     30        RTEMS_CPU=unix
    2631        ;;
    2732  no_cpu-*rtems*)
    28         target_cpu=no_cpu
    29         ;;
    30   ppc*-*rtems*)
    31         target_cpu=powerpc
     33        RTEMS_CPU=no_cpu
    3234        ;;
    3335  sparc-sun-solaris*)           # unix "simulator" port
    34         target_cpu=unix
     36        RTEMS_CPU=unix
    3537        ;;
    3638  *)
    37         target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
     39        RTEMS_CPU=`echo $rtems_target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
    3840        ;;
    3941esac
    4042changequote([,])dnl
    41 AC_MSG_RESULT($target_cpu)
     43AC_MSG_RESULT($RTEMS_CPU)
    4244])
  • aclocal/check-cpu.m4

    r3b38683 r15aa5ffb  
    77AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])
    88# Is this a supported CPU?
    9 AC_MSG_CHECKING([if cpu $target_cpu is supported])
    10 if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$target_cpu"; then
     9AC_MSG_CHECKING([if cpu $RTEMS_CPU is supported])
     10if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$RTEMS_CPU"; then
    1111  AC_MSG_RESULT(yes)
    1212else
Note: See TracChangeset for help on using the changeset viewer.