summaryrefslogtreecommitdiff
path: root/tools/configure
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-03-27 15:31:30 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-10-13 16:27:07 +0000
commitb4865b05b0a3cc45f2873599c6411bef92f40b1c (patch)
treef9deee24e506d50e1f1ecaf954e9ae10799980ad /tools/configure
parente91f89a410dc4639dbe78f392c11b2a44ff9036a (diff)
downloadrockbox-b4865b05b0a3cc45f2873599c6411bef92f40b1c.tar.gz
rockbox-b4865b05b0a3cc45f2873599c6411bef92f40b1c.zip
Build: Bump all toolchains to GCC 4.9.4 + Binutils 2.26.1
GCC 4.9.4 was already used for MIPS and all hosted targets; this enables it across the board for everything (ie m68k and arm native) Other changes: * Use '-Os' as the default optiomization for all targets (was only disabled for arm native) * Enable -funit-at-a-time and -Wextra * Drop all obsolete toolchain patches * Update ARM multilib/exception patch * Bump toolchain libs (gmp, mpfr, mpc) to recommended versions, and add 'isl' to enable better optimization & vectorization opportunities. (Will revisit optimization for the codecs and plugins at a later date) Confirmed working: * armv4t (ipodmini2g and many other PP502x targets) * arm >= v5 (sansaclipplus, ipod6g, ipodnano2g, sansafuzeplus) * m68k (ihp100) Change-Id: If9ed405ae0f289d9adea46d4cf46bfefc2f4250d
Diffstat (limited to 'tools/configure')
-rwxr-xr-xtools/configure20
1 files changed, 4 insertions, 16 deletions
diff --git a/tools/configure b/tools/configure
index 2b34ed4cff..11c8513c92 100755
--- a/tools/configure
+++ b/tools/configure
@@ -8,7 +8,7 @@
8# 8#
9 9
10# global CC options for all platforms 10# global CC options for all platforms
11CCOPTS="-W -Wall -Wundef -O -nostdlib -ffreestanding -Wstrict-prototypes -pipe -std=gnu99" 11CCOPTS="-W -Wall -Wextra -Wundef -Os -nostdlib -ffreestanding -Wstrict-prototypes -pipe -std=gnu99 -funit-at-a-time"
12 12
13# LD options for the core 13# LD options for the core
14LDOPTS="" 14LDOPTS=""
@@ -136,7 +136,7 @@ app_set_lcd_size () {
136 136
137findarmgcc() { 137findarmgcc() {
138 prefixtools arm-elf-eabi- 138 prefixtools arm-elf-eabi-
139 gccchoice="4.4.4" 139 gccchoice="4.9.4"
140} 140}
141 141
142# scan the $PATH for the given command 142# scan the $PATH for the given command
@@ -502,6 +502,7 @@ calmrisccc () {
502 GCCOPTS="-Wl\,--no-check-sections $CCOPTS" 502 GCCOPTS="-Wl\,--no-check-sections $CCOPTS"
503 GCCOPTIMIZE="-fomit-frame-pointer" 503 GCCOPTIMIZE="-fomit-frame-pointer"
504 endian="big" 504 endian="big"
505 gccchoice="4.9.4"
505} 506}
506 507
507coldfirecc () { 508coldfirecc () {
@@ -509,7 +510,7 @@ coldfirecc () {
509 GCCOPTS="$CCOPTS -mcpu=5249 -malign-int -mstrict-align" 510 GCCOPTS="$CCOPTS -mcpu=5249 -malign-int -mstrict-align"
510 GCCOPTIMIZE="-fomit-frame-pointer" 511 GCCOPTIMIZE="-fomit-frame-pointer"
511 endian="big" 512 endian="big"
512 gccchoice="4.5.2" 513 gccchoice="4.9.4"
513} 514}
514 515
515arm7tdmicc () { 516arm7tdmicc () {
@@ -2588,7 +2589,6 @@ fi
2588 sysfont="08-Rockfont" 2589 sysfont="08-Rockfont"
2589 if [ "$ARG_ARM_THUMB" != 0 ]; then ARG_ARM_THUMB=1; fi 2590 if [ "$ARG_ARM_THUMB" != 0 ]; then ARG_ARM_THUMB=1; fi
2590 arm9tdmicc 2591 arm9tdmicc
2591 GCCOPTS=`echo $GCCOPTS | sed 's/ -O / -Os /'`
2592 ;; 2592 ;;
2593 2593
2594 2594
@@ -2631,7 +2631,6 @@ fi
2631 sysfont="08-Rockfont" 2631 sysfont="08-Rockfont"
2632 if [ "$ARG_ARM_THUMB" != 0 ]; then ARG_ARM_THUMB=1; fi 2632 if [ "$ARG_ARM_THUMB" != 0 ]; then ARG_ARM_THUMB=1; fi
2633 arm9tdmicc 2633 arm9tdmicc
2634 GCCOPTS=`echo $GCCOPTS | sed 's/ -O / -Os /'`
2635 ;; 2634 ;;
2636 2635
2637 2636
@@ -2676,7 +2675,6 @@ fi
2676 t_model="sansa-c200v2" 2675 t_model="sansa-c200v2"
2677 if [ "$ARG_ARM_THUMB" != 0 ]; then ARG_ARM_THUMB=1; fi 2676 if [ "$ARG_ARM_THUMB" != 0 ]; then ARG_ARM_THUMB=1; fi
2678 arm9tdmicc 2677 arm9tdmicc
2679 GCCOPTS=`echo $GCCOPTS | sed 's/ -O / -Os /'`
2680 ;; 2678 ;;
2681 2679
2682 60|sansaclipv2) 2680 60|sansaclipv2)
@@ -4519,16 +4517,6 @@ echo "Using $LD $ldver"
4519makever=`make --version | head -1` 4517makever=`make --version | head -1`
4520echo "Detected make $makever" 4518echo "Detected make $makever"
4521 4519
4522if test "$CC" = "m68k-elf-gcc"; then
4523 # convert -O to -Os to get smaller binaries!
4524 GCCOPTS=`echo $GCCOPTS | sed 's/ -O / -Os /'`
4525fi
4526if test "$CC" = "mipsel-elf-gcc"; then
4527 # convert -O to -Os to get smaller binaries!
4528 GCCOPTS=`echo $GCCOPTS | sed 's/ -O / -Os /'`
4529fi
4530
4531
4532if [ "$ARG_CCACHE" = "1" ]; then 4520if [ "$ARG_CCACHE" = "1" ]; then
4533 echo "Enable ccache for building" 4521 echo "Enable ccache for building"
4534 ccache="ccache" 4522 ccache="ccache"