source: rtems/aclocal/check-cpu.m4 @ 8c92fa3

4.104.114.84.95
Last change on this file since 8c92fa3 was 15aa5ffb, checked in by Joel Sherrill <joel.sherrill@…>, on 06/14/99 at 18:54:24

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

  • Property mode set to 100644
File size: 344 bytes
Line 
1dnl $Id$
2
3dnl check if RTEMS support a cpu
4AC_DEFUN(RTEMS_CHECK_CPU,
5[dnl
6AC_REQUIRE([RTEMS_TOP])
7AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])
8# Is this a supported CPU?
9AC_MSG_CHECKING([if cpu $RTEMS_CPU is supported])
10if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$RTEMS_CPU"; then
11  AC_MSG_RESULT(yes)
12else
13  AC_MSG_ERROR(no)
14fi
15])dnl
16
Note: See TracBrowser for help on using the repository browser.