Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2 next 1/7] toolchain: add common binutils version hidden config options
@ 2016-05-31 11:11 Vicente Olivert Riera
  2016-05-31 11:11 ` [Buildroot] [PATCH v2 next 2/7] toolchain-external: add support for binutils version dependency Vicente Olivert Riera
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: Vicente Olivert Riera @ 2016-05-31 11:11 UTC (permalink / raw)
  To: buildroot

This commit adds a number of hidden Config.in options, that will be used
to handle dependencies on the binutils 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.

These options will be helpful when we need to make packages depend on
certain version of binutils. Further patches will do this for gcc and
valgrind packages.

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
Changes v1 -> v2:
 - Explain in the commit log why we need these options. (Yann)

 toolchain/toolchain-common.in | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/toolchain/toolchain-common.in b/toolchain/toolchain-common.in
index 1fe28a9..deede7b 100644
--- a/toolchain/toolchain-common.in
+++ b/toolchain/toolchain-common.in
@@ -327,6 +327,45 @@ config BR2_TOOLCHAIN_GCC_AT_LEAST
 	default "4.4"	if BR2_TOOLCHAIN_GCC_AT_LEAST_4_4
 	default "4.3"	if BR2_TOOLCHAIN_GCC_AT_LEAST_4_3
 
+config BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_20
+	bool
+
+config BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_21
+	bool
+	select BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_20
+
+config BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_22
+	bool
+	select BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_21
+
+config BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_23
+	bool
+	select BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_22
+
+config BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_24
+	bool
+	select BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_23
+
+config BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_25
+	bool
+	select BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_24
+
+config BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_26
+	bool
+	select BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_25
+
+# This order guarantees that the highest version is set, as kconfig
+# stops affecting a value on the first matching default.
+config BR2_TOOLCHAIN_BINUTILS_AT_LEAST
+	string
+	default "2.26" if BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_26
+	default "2.25" if BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_25
+	default "2.24" if BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_24
+	default "2.23" if BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_23
+	default "2.22" if BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_22
+	default "2.21" if BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_21
+	default "2.20" if BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_20
+
 config BR2_TOOLCHAIN_HAS_SYNC_1
 	bool
 	default y
-- 
2.7.3

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2016-06-17 11:54 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-31 11:11 [Buildroot] [PATCH v2 next 1/7] toolchain: add common binutils version hidden config options Vicente Olivert Riera
2016-05-31 11:11 ` [Buildroot] [PATCH v2 next 2/7] toolchain-external: add support for binutils version dependency Vicente Olivert Riera
2016-05-31 11:11 ` [Buildroot] [PATCH v2 next 3/7] binutils: handle ARC more atomically Vicente Olivert Riera
2016-06-07 21:13   ` Yann E. MORIN
2016-05-31 11:11 ` [Buildroot] [PATCH v2 next 4/7] binutils: select the appropriate BR2_TOOLCHAIN_BINUTILS_AT_LEAST_X_Y Vicente Olivert Riera
2016-06-07 21:15   ` Yann E. MORIN
2016-05-31 11:11 ` [Buildroot] [PATCH v2 next 5/7] docs: add documentation for BR2_TOOLCHAIN_BINUTILS_AT_LEAST Vicente Olivert Riera
2016-05-31 11:13 ` [Buildroot] [PATCH v2 next 6/7] Disable gcc-4.8 + binutils >= 2.25 + MIPS combination Vicente Olivert Riera
2016-05-31 11:13   ` [Buildroot] [PATCH v2 next 7/7] valgrind: disable for MIPS soft-float when using binutils >= 2.25 Vicente Olivert Riera
2016-06-07 21:38     ` Yann E. MORIN
2016-06-07 21:23   ` [Buildroot] [PATCH v2 next 6/7] Disable gcc-4.8 + binutils >= 2.25 + MIPS combination Yann E. MORIN
2016-06-08 21:21 ` [Buildroot] [PATCH v2 next 1/7] toolchain: add common binutils version hidden config options Thomas Petazzoni
2016-06-17 11:54   ` Vicente Olivert Riera

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox