All pastes #920242 Raw Edit

Anonymous

public diff v1 · immutable
#920242 ·published 2008-02-27 08:42 UTC
rendered paste body
Index: tools/configure===================================================================--- tools/configure	(revision 16431)+++ tools/configure	(working copy)@@ -174,11 +174,18 @@  fi } +#+# functions for setting up cross-compiler names and options+# also set endianess and what the exact recommended gcc version is+# the gcc version should most likely match what versions we build with+# rockboxdev.sh+# shcc () {  prefixtools sh-elf-  GCCOPTS="$CCOPTS -m1"  GCCOPTIMIZE="-fomit-frame-pointer -fschedule-insns"  endian="big"+ gccchoice="4.0.3" }  calmrisccc () {@@ -193,6 +200,7 @@  GCCOPTS="$CCOPTS -m5206e -Wa\,-m5249 -malign-int -mstrict-align"  GCCOPTIMIZE="-fomit-frame-pointer"  endian="big"+ gccchoice="3.4.6" }  arm7tdmicc () {@@ -203,6 +211,7 @@  fi  GCCOPTIMIZE="-fomit-frame-pointer"  endian="little"+ gccchoice="4.0.3" }  arm9tdmicc () {@@ -210,6 +219,7 @@  GCCOPTS="$CCOPTS -mcpu=arm9tdmi -mlong-calls"  GCCOPTIMIZE="-fomit-frame-pointer"  endian="little"+ gccchoice="4.0.3" }  arm946cc () {@@ -217,20 +227,15 @@  GCCOPTS="$CCOPTS -mcpu=arm9e -mlong-calls"  GCCOPTIMIZE="-fomit-frame-pointer"  endian="little"+ gccchoice="4.0.3" } -arm9cc () {- prefixtools arm-elf-- GCCOPTS="$CCOPTS -mcpu=arm9 -mlong-calls"- GCCOPTIMIZE="-fomit-frame-pointer"- endian="little"-}- arm926ejscc () {  prefixtools arm-elf-  GCCOPTS="$CCOPTS -mcpu=arm926ej-s -mlong-calls"  GCCOPTIMIZE="-fomit-frame-pointer"  endian="little"+ gccchoice="4.0.3" }  arm1136jfscc () {@@ -238,6 +243,7 @@  GCCOPTS="$CCOPTS -mcpu=arm1136jf-s -mlong-calls"  GCCOPTIMIZE="-fomit-frame-pointer"  endian="little"+ gccchoice="4.0.3" }  whichadvanced () {@@ -1720,8 +1726,29 @@    GCCOPTS="$GCCOPTS -Wno-override-init"  fi + case $prefix in+   "")+     # simulator+   ;;+   i586-mingw32msvc-)+     # cross-compile for win32+   ;;+   *)+   # Verify that the cross-compiler is of a recommended version!+   if test "$gccver" != "$gccchoice"; then+     echo "WARNING: Your cross-compiler $CC $gccver is not of the recommended"+     echo "WARNING: version $gccchoice!"+     echo "WARNING: This may cause your build to fail since it may be a version"+     echo "WARNING: that isn't functional or known to not be the best choice."+     echo "WARNING: If you suffer from build problems, you know that this is"+     echo "WARNING: a likely source for them..."+   fi+   ;;+ esac+ fi + echo "Using $LD $ldver"  # check the compiler for SH platforms