Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Anonymous
Wednesday, February 27th, 2008 at 8:42:38am UTC 

  1. Index: tools/configure
  2. ===================================================================
  3. --- tools/configure     (revision 16431)
  4. +++ tools/configure     (working copy)
  5. @@ -174,11 +174,18 @@
  6.   fi
  7.  }
  8.  
  9. +#
  10. +# functions for setting up cross-compiler names and options
  11. +# also set endianess and what the exact recommended gcc version is
  12. +# the gcc version should most likely match what versions we build with
  13. +# rockboxdev.sh
  14. +#
  15.  shcc () {
  16.   prefixtools sh-elf-
  17.   GCCOPTS="$CCOPTS -m1"
  18.   GCCOPTIMIZE="-fomit-frame-pointer -fschedule-insns"
  19.   endian="big"
  20. + gccchoice="4.0.3"
  21.  }
  22.  
  23.  calmrisccc () {
  24. @@ -193,6 +200,7 @@
  25.   GCCOPTS="$CCOPTS -m5206e -Wa\,-m5249 -malign-int -mstrict-align"
  26.   GCCOPTIMIZE="-fomit-frame-pointer"
  27.   endian="big"
  28. + gccchoice="3.4.6"
  29.  }
  30.  
  31.  arm7tdmicc () {
  32. @@ -203,6 +211,7 @@
  33.   fi
  34.   GCCOPTIMIZE="-fomit-frame-pointer"
  35.   endian="little"
  36. + gccchoice="4.0.3"
  37.  }
  38.  
  39.  arm9tdmicc () {
  40. @@ -210,6 +219,7 @@
  41.   GCCOPTS="$CCOPTS -mcpu=arm9tdmi -mlong-calls"
  42.   GCCOPTIMIZE="-fomit-frame-pointer"
  43.   endian="little"
  44. + gccchoice="4.0.3"
  45.  }
  46.  
  47.  arm946cc () {
  48. @@ -217,20 +227,15 @@
  49.   GCCOPTS="$CCOPTS -mcpu=arm9e -mlong-calls"
  50.   GCCOPTIMIZE="-fomit-frame-pointer"
  51.   endian="little"
  52. + gccchoice="4.0.3"
  53.  }
  54.  
  55. -arm9cc () {
  56. - prefixtools arm-elf-
  57. - GCCOPTS="$CCOPTS -mcpu=arm9 -mlong-calls"
  58. - GCCOPTIMIZE="-fomit-frame-pointer"
  59. - endian="little"
  60. -}
  61. -
  62.  arm926ejscc () {
  63.   prefixtools arm-elf-
  64.   GCCOPTS="$CCOPTS -mcpu=arm926ej-s -mlong-calls"
  65.   GCCOPTIMIZE="-fomit-frame-pointer"
  66.   endian="little"
  67. + gccchoice="4.0.3"
  68.  }
  69.  
  70.  arm1136jfscc () {
  71. @@ -238,6 +243,7 @@
  72.   GCCOPTS="$CCOPTS -mcpu=arm1136jf-s -mlong-calls"
  73.   GCCOPTIMIZE="-fomit-frame-pointer"
  74.   endian="little"
  75. + gccchoice="4.0.3"
  76.  }
  77.  
  78.  whichadvanced () {
  79. @@ -1720,8 +1726,29 @@
  80.     GCCOPTS="$GCCOPTS -Wno-override-init"
  81.   fi
  82.  
  83. + case $prefix in
  84. +   "")
  85. +     # simulator
  86. +   ;;
  87. +   i586-mingw32msvc-)
  88. +     # cross-compile for win32
  89. +   ;;
  90. +   *)
  91. +   # Verify that the cross-compiler is of a recommended version!
  92. +   if test "$gccver" != "$gccchoice"; then
  93. +     echo "WARNING: Your cross-compiler $CC $gccver is not of the recommended"
  94. +     echo "WARNING: version $gccchoice!"
  95. +     echo "WARNING: This may cause your build to fail since it may be a version"
  96. +     echo "WARNING: that isn't functional or known to not be the best choice."
  97. +     echo "WARNING: If you suffer from build problems, you know that this is"
  98. +     echo "WARNING: a likely source for them..."
  99. +   fi
  100. +   ;;
  101. + esac
  102. +
  103.  fi
  104.  
  105. +
  106.  echo "Using $LD $ldver"
  107.  
  108.  # check the compiler for SH platforms

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right
worth-right
worth-right