From f5bafe1128fef86e5035e1fb98e35d2a905bb2c2 Mon Sep 17 00:00:00 2001 From: Rene Rebe Date: Mon, 4 Aug 2003 09:23:42 +0000 Subject: [PATCH] use the arch-target for the sparc64 cross compiler the kernel already defines and use another example arch-target for the gcc3-cross (now arm ...) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@1010 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- architecture/sparc/config.in | 2 +- package/base/gcc3-cross/config-300.in | 2 +- package/base/linux24/lx_config.sh | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/architecture/sparc/config.in b/architecture/sparc/config.in index a6f2b14fd..236c905e1 100644 --- a/architecture/sparc/config.in +++ b/architecture/sparc/config.in @@ -36,7 +36,7 @@ fi # Enable cross compiler if a 64bit kernel is requested if [ "$ROCKCFG_SPARC_64BIT_KERNEL" = 1 ] ; then ROCKCFGSET_PKG_CROSSCC=1 - ROCKCFGSET_PKG_CROSSCC_ARCH_TARGET="sparc64-unknown-linux-gnu" + ROCKCFGSET_PKG_CROSSCC_ARCH_TARGET="sparc64-linux-gnu" fi # Now the optimisations that result from the options above diff --git a/package/base/gcc3-cross/config-300.in b/package/base/gcc3-cross/config-300.in index e6a502e3a..040a25d24 100644 --- a/package/base/gcc3-cross/config-300.in +++ b/package/base/gcc3-cross/config-300.in @@ -27,7 +27,7 @@ menu_begin MENU_PKG_CROSSCC 'Cross Compiler Options' if [ "$ROCKCFG_PKG_CROSSCC" = 1 ] ; then pkgenable linux24-header-cross glibc23-cross binutils-cross gcc3-cross text 'Target architecture' ROCKCFG_PKG_CROSSCC_ARCH_TARGET \ - 'sparc64-unknown-linux-gnu' + 'arm-linux-gnu' fi menu_end diff --git a/package/base/linux24/lx_config.sh b/package/base/linux24/lx_config.sh index fd296dccd..d721a19a4 100644 --- a/package/base/linux24/lx_config.sh +++ b/package/base/linux24/lx_config.sh @@ -24,6 +24,9 @@ treever=${pkg/linux/} ; treever=${treever/-*/} archdir="$base/download/$repository/linux$treever" srctar="linux-${vanilla_ver}.tar.bz2" +[ $arch = sparc -a "$ROCKCFG_SPARC_64BIT_KERNEL" = 1 ] && \ + archprefix=sparc64-unknown-linux-gnu + lx_cpu=`echo "$arch_machine" | sed -e s/x86/i386/ \ -e s/i.86/i386/ -e s/powerpc/ppc/`