2011-02-25 Ralf Corsépius <ralf.corsepius@rtems.org>

* aclocal/canonical-target-name.m4:
	Stop pretending no_cpu* was buildable.
	Derive RTEMS_CPU from "$host_cpu".
	Error out if "$host" doesn't match "*-*-rtems*".
This commit is contained in:
Ralf Corsepius
2011-02-25 06:17:36 +00:00
parent 8dc08d2379
commit 38d1150ecf
6 changed files with 50 additions and 22 deletions
+7
View File
@@ -1,3 +1,10 @@
2011-02-25 Ralf Corsépius <ralf.corsepius@rtems.org>
* aclocal/canonical-target-name.m4:
Stop pretending no_cpu* was buildable.
Derive RTEMS_CPU from "$host_cpu".
Error out if "$host" doesn't match "*-*-rtems*".
2011-02-22 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Remove AM_CONDITIONAL(HAS_POSIX) (Unused).
+10 -8
View File
@@ -9,17 +9,19 @@ dnl Therefore autoconf's AC_CANONICAL_TARGET will fail for them
dnl and we have to fix it for rtems ourselves
AC_DEFUN([RTEMS_CANONICAL_TARGET_CPU],
[
AC_CANONICAL_HOST
[AC_REQUIRE([AC_CANONICAL_HOST])
AC_MSG_CHECKING(rtems target cpu)
case "${host}" in
no_cpu-*rtems*)
RTEMS_CPU=no_cpu
;;
*)
RTEMS_CPU=`echo $host | sed 's%^\([[^-]]*\)-\(.*\)$%\1%'`
*-*-rtems*)
RTEMS_CPU="$host_cpu";;
*)
;;
esac
AS_IF([test -n "$RTEMS_CPU"],
[dnl
AC_MSG_RESULT($RTEMS_CPU)],
[dnl
AC_MSG_RESULT([<none>])
AC_MSG_ERROR([unsupported host $host])])
AC_SUBST(RTEMS_CPU)
AC_MSG_RESULT($RTEMS_CPU)
])
+7
View File
@@ -1,3 +1,10 @@
2011-02-25 Ralf Corsépius <ralf.corsepius@rtems.org>
* aclocal/canonical-target-name.m4:
Stop pretending no_cpu* was buildable.
Derive RTEMS_CPU from "$host_cpu".
Error out if "$host" doesn't match "*-*-rtems*".
2011-02-25 Ralf Corsépius <ralf.corsepius@rtems.org>
* aclocal/check-networking.m4, aclocal/check-posix.m4:
+9 -6
View File
@@ -12,13 +12,16 @@ AC_DEFUN([RTEMS_CANONICAL_TARGET_CPU],
[AC_REQUIRE([AC_CANONICAL_HOST])
AC_MSG_CHECKING(rtems target cpu)
case "${host}" in
no_cpu-*rtems*)
RTEMS_CPU=no_cpu
;;
*)
RTEMS_CPU=`echo $host | sed 's%^\([[^-]]*\)-\(.*\)$%\1%'`
*-*-rtems*)
RTEMS_CPU="$host_cpu";;
*)
;;
esac
AS_IF([test -n "$RTEMS_CPU"],
[dnl
AC_MSG_RESULT($RTEMS_CPU)],
[dnl
AC_MSG_RESULT([<none>])
AC_MSG_ERROR([unsupported host $host])])
AC_SUBST(RTEMS_CPU)
AC_MSG_RESULT($RTEMS_CPU)
])
+7
View File
@@ -1,3 +1,10 @@
2011-02-25 Ralf Corsépius <ralf.corsepius@rtems.org>
* aclocal/canonical-target-name.m4:
Stop pretending no_cpu* was buildable.
Derive RTEMS_CPU from "$host_cpu".
Error out if "$host" doesn't match "*-*-rtems*".
2011-02-22 Ralf Corsépius <ralf.corsepius@rtems.org>
* support/src/tmtests_support.c:
+10 -8
View File
@@ -9,17 +9,19 @@ dnl Therefore autoconf's AC_CANONICAL_TARGET will fail for them
dnl and we have to fix it for rtems ourselves
AC_DEFUN([RTEMS_CANONICAL_TARGET_CPU],
[
AC_CANONICAL_HOST
[AC_REQUIRE([AC_CANONICAL_HOST])
AC_MSG_CHECKING(rtems target cpu)
case "${host}" in
no_cpu-*rtems*)
RTEMS_CPU=no_cpu
;;
*)
RTEMS_CPU=`echo $host | sed 's%^\([[^-]]*\)-\(.*\)$%\1%'`
*-*-rtems*)
RTEMS_CPU="$host_cpu";;
*)
;;
esac
AS_IF([test -n "$RTEMS_CPU"],
[dnl
AC_MSG_RESULT($RTEMS_CPU)],
[dnl
AC_MSG_RESULT([<none>])
AC_MSG_ERROR([unsupported host $host])])
AC_SUBST(RTEMS_CPU)
AC_MSG_RESULT($RTEMS_CPU)
])