toolchain/gcc: switch to version 8 by default
authorPaul Spooren <mail@aparcar.org>
Wed, 2 Oct 2019 07:15:44 +0000 (21:15 -1000)
committerPetr Štetiar <ynezz@true.cz>
Wed, 9 Oct 2019 07:13:44 +0000 (09:13 +0200)
Main motivation for this commit is the introduction of
`-ffile-prefix-map=` which alows reproducible build path.

Compile tested on Linux and macOS without errors on the following
targets:

 * ath79
 * imx6
 * brcm2708
 * brcm63xx
 * ixp4xx
 * ramips
 * sunxi
 * x86

Thanks to Andre for the iremap fixup.

Ref: https://reproducible-builds.org/docs/build-path/
Tested-by: Andre Heider <a.heider@gmail.com>
Tested-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Signed-off-by: Paul Spooren <mail@aparcar.org>
[refactored into separate commit]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
toolchain/gcc/Config.in
toolchain/gcc/Config.version

index 2c592a904b72e5bf786b03ed3a532be93ff40c70..3882815d7f611ec6d7d80aa42dedb5ddf0da1832 100644 (file)
@@ -2,8 +2,7 @@
 
 choice
        prompt "GCC compiler Version" if TOOLCHAINOPTS
-       default GCC_USE_VERSION_8 if arc
-       default GCC_USE_VERSION_7
+       default GCC_USE_VERSION_8
        help
          Select the version of gcc you wish to use.
 
index fd8d3873fa8ebb925332b2779f794642f37fb382..0658f3d52b8db33ac325bc27b6c7f52aaeb2a385 100644 (file)
@@ -2,9 +2,8 @@ config GCC_VERSION_5
        default y if GCC_USE_VERSION_5
        bool
 
-config GCC_VERSION_8
-       default y if GCC_USE_VERSION_8
-       default y if arc && !GCC_USE_VERSION_9
+config GCC_VERSION_7
+       default y if GCC_USE_VERSION_7
        bool
 
 config GCC_VERSION_9
@@ -14,6 +13,6 @@ config GCC_VERSION_9
 config GCC_VERSION
        string
        default "5.5.0"         if GCC_VERSION_5
-       default "8.3.0"         if GCC_VERSION_8
+       default "7.4.0"         if GCC_VERSION_7
        default "9.2.0"         if GCC_VERSION_9
-       default "7.4.0"
+       default "8.3.0"