summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-08-04 20:00:33 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-08-05 10:40:19 +0200
commit8ba2a76892c5da7ffe86d06ed89d3dc3e7f7e9e8 (patch)
tree6a03985786e3e6bdc10a69d781aabbfca0d54480
parent2d4e2e238a0ea9395152ae71d882d79b1f35094c (diff)
downloadbuildroot-8ba2a76892c5da7ffe86d06ed89d3dc3e7f7e9e8.tar.gz
buildroot-8ba2a76892c5da7ffe86d06ed89d3dc3e7f7e9e8.zip
toolchain: add common gcc version hidden config options
This commit adds a number of hidden Config.in options, that will be used to handle dependencies on the gcc version. We mimic the model that was used for the kernel headers dependency mechanism. These hidden options will be selected by the internal and external toolchain backend logic respectively, in follow-up commits. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
-rw-r--r--toolchain/toolchain-common.in44
1 files changed, 44 insertions, 0 deletions
diff --git a/toolchain/toolchain-common.in b/toolchain/toolchain-common.in
index b7a11a4325..4be55c3cdb 100644
--- a/toolchain/toolchain-common.in
+++ b/toolchain/toolchain-common.in
@@ -254,3 +254,47 @@ config BR2_TOOLCHAIN_HEADERS_AT_LEAST
default "3.1" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_1
default "3.0" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
default "2.6"
+
+config BR2_TOOLCHAIN_GCC_AT_LEAST_4_3
+ bool
+
+config BR2_TOOLCHAIN_GCC_AT_LEAST_4_4
+ bool
+ select BR2_TOOLCHAIN_GCC_AT_LEAST_4_3
+
+config BR2_TOOLCHAIN_GCC_AT_LEAST_4_5
+ bool
+ select BR2_TOOLCHAIN_GCC_AT_LEAST_4_4
+
+config BR2_TOOLCHAIN_GCC_AT_LEAST_4_6
+ bool
+ select BR2_TOOLCHAIN_GCC_AT_LEAST_4_5
+
+config BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
+ bool
+ select BR2_TOOLCHAIN_GCC_AT_LEAST_4_6
+
+config BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
+ bool
+ select BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
+
+config BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
+ bool
+ select BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
+
+config BR2_TOOLCHAIN_GCC_AT_LEAST_5
+ bool
+ select BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
+
+# This order guarantees that the highest version is set, as kconfig
+# stops affecting a value on the first matching default.
+config BR2_TOOLCHAIN_GCC_AT_LEAST
+ string
+ default "5" if BR2_TOOLCHAIN_GCC_AT_LEAST_5
+ default "4.9" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
+ default "4.8" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
+ default "4.7" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
+ default "4.6" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_6
+ default "4.5" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_5
+ default "4.4" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_4
+ default "4.3" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_3
OpenPOWER on IntegriCloud