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 <[email protected]> Tested-by: Giammarco Zacheo <[email protected]> --- 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 ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ RTnet-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/rtnet-developers

