[RTnet-developers] [PATCH] fix ppc/powerpc arch configuration ambiguity
Brought to you by:
bet-frogger,
kiszka
|
From: Wolfgang G. <wg...@gr...> - 2009-07-16 14:54:40
|
The configure script does not properly determine the real arch of the
kernel used for PowerPC, either "ppc" or "powerpc". This patch updates
configure to look for the string "ppc" in the symbolic link
"include/asm" of the kernel. If it does find it, the arch "ppc" is
selected, "powerpc" otherwise.
Signed-off-by: Wolfgang Grandegger <wg...@de...>
Tested-by: Giammarco Zacheo <g.z...@gm...>
---
configure.ac | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
Index: rtnet/configure.ac
===================================================================
--- rtnet.orig/configure.ac
+++ rtnet/configure.ac
@@ -59,7 +59,7 @@ case "$host" in
wanted_kernel_arch=CONFIG_ARM
;;
powerpc-*|ppc-*)
- RTNET_TARGET_ARCH=ppc
+ RTNET_TARGET_ARCH=powerpc
wanted_kernel_arch=CONFIG_PPC
;;
# mips-*|mipsel-*)
@@ -225,6 +225,13 @@ else
AC_MSG_RESULT([$RTEXT_LINUX_DIR (kernel ${RTEXT_LINUX_VERSION}${CONFIG_SMP:+-SMP} + Xenomai)])
fi
+# Fixup real arch for powerpc
+if test "${RTNET_TARGET_ARCH}" = "powerpc" ; then
+ AC_MSG_CHECKING([for real PowerPC arch])
+ readlink ${CONFIG_RTNET_LINUX_DIR}/include/asm | grep -q ppc && RTNET_TARGET_ARCH="ppc"
+ AC_MSG_RESULT([$RTNET_TARGET_ARCH])
+fi
+
#
# from now we think we've found some RT-extension, so if we got an error
# it will be fatal, thus exit with AC_MSG_ERROR
|