All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 0/2] External GCC12 toolchain support
@ 2022-03-22 22:21 Florian Fainelli
  2022-03-22 22:21 ` [Buildroot] [PATCH 1/2] toolchain/Config.in: add BR2_TOOLCHAIN_GCC_AT_LEAST_12 blind option Florian Fainelli
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Florian Fainelli @ 2022-03-22 22:21 UTC (permalink / raw)
  To: buildroot; +Cc: opendmb, Florian Fainelli, mmayer

This patch series allows us to use Linaro's GCC12 snapshot that can be
downloaded from here:

https://snapshots.linaro.org/gnu-toolchain/12.0-2021.10-1/aarch64-linux-gnu/

Florian Fainelli (2):
  toolchain/Config.in: add BR2_TOOLCHAIN_GCC_AT_LEAST_12 blind option
  toolchain/toolchain-external/toolchain-external-custom: add gcc 12
    version selection

 toolchain/Config.in                                   | 11 +++++++++--
 .../toolchain-external-custom/Config.in.options       |  4 ++++
 2 files changed, 13 insertions(+), 2 deletions(-)

-- 
2.25.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* [Buildroot] [PATCH 1/2] toolchain/Config.in: add BR2_TOOLCHAIN_GCC_AT_LEAST_12 blind option
  2022-03-22 22:21 [Buildroot] [PATCH 0/2] External GCC12 toolchain support Florian Fainelli
@ 2022-03-22 22:21 ` Florian Fainelli
  2022-03-22 22:21 ` [Buildroot] [PATCH 2/2] toolchain/toolchain-external/toolchain-external-custom: add gcc 12 version selection Florian Fainelli
  2022-04-03  2:33 ` [Buildroot] [PATCH 0/2] External GCC12 toolchain support Florian Fainelli
  2 siblings, 0 replies; 4+ messages in thread
From: Florian Fainelli @ 2022-03-22 22:21 UTC (permalink / raw)
  To: buildroot; +Cc: opendmb, Florian Fainelli, mmayer

In order to add gcc 12 support for internal and external toolchain
in follow-up commits, introduce BR2_TOOLCHAIN_GCC_AT_LEAST_12 symbol.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
 toolchain/Config.in | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/toolchain/Config.in b/toolchain/Config.in
index d2c81217c84a..b572a89f2f85 100644
--- a/toolchain/Config.in
+++ b/toolchain/Config.in
@@ -117,7 +117,8 @@ config BR2_TOOLCHAIN_HAS_GCC_BUG_43744
 	depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_8 || \
 		BR2_TOOLCHAIN_GCC_AT_LEAST_9 || \
 		BR2_TOOLCHAIN_GCC_AT_LEAST_10 || \
-		BR2_TOOLCHAIN_GCC_AT_LEAST_11
+		BR2_TOOLCHAIN_GCC_AT_LEAST_11 || \
+		BR2_TOOLCHAIN_GCC_AT_LEAST_12
 
 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63261. This bug no
 # longer exists in gcc 8.x.
@@ -150,7 +151,8 @@ config BR2_TOOLCHAIN_HAS_GCC_BUG_68485
 config BR2_TOOLCHAIN_HAS_GCC_BUG_83143
 	bool
 	default y if BR2_sh
-	depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_10 || BR2_TOOLCHAIN_GCC_AT_LEAST_11
+	depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_10 || BR2_TOOLCHAIN_GCC_AT_LEAST_11 || \
+		   BR2_TOOLCHAIN_GCC_AT_LEAST_12
 
 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85180. This bug no
 # longer exists in gcc 8.x.
@@ -698,10 +700,15 @@ config BR2_TOOLCHAIN_GCC_AT_LEAST_11
 	bool
 	select BR2_TOOLCHAIN_GCC_AT_LEAST_10
 
+config BR2_TOOLCHAIN_GCC_AT_LEAST_12
+	bool
+	select BR2_TOOLCHAIN_GCC_AT_LEAST_11
+
 # 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 "12"	if BR2_TOOLCHAIN_GCC_AT_LEAST_12
 	default "11"	if BR2_TOOLCHAIN_GCC_AT_LEAST_11
 	default "10"	if BR2_TOOLCHAIN_GCC_AT_LEAST_10
 	default "9"	if BR2_TOOLCHAIN_GCC_AT_LEAST_9
-- 
2.25.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* [Buildroot] [PATCH 2/2] toolchain/toolchain-external/toolchain-external-custom: add gcc 12 version selection
  2022-03-22 22:21 [Buildroot] [PATCH 0/2] External GCC12 toolchain support Florian Fainelli
  2022-03-22 22:21 ` [Buildroot] [PATCH 1/2] toolchain/Config.in: add BR2_TOOLCHAIN_GCC_AT_LEAST_12 blind option Florian Fainelli
@ 2022-03-22 22:21 ` Florian Fainelli
  2022-04-03  2:33 ` [Buildroot] [PATCH 0/2] External GCC12 toolchain support Florian Fainelli
  2 siblings, 0 replies; 4+ messages in thread
From: Florian Fainelli @ 2022-03-22 22:21 UTC (permalink / raw)
  To: buildroot; +Cc: opendmb, Florian Fainelli, mmayer

This patch allows to use an external toolchain based on gcc 12.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
 .../toolchain-external-custom/Config.in.options               | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/toolchain/toolchain-external/toolchain-external-custom/Config.in.options b/toolchain/toolchain-external/toolchain-external-custom/Config.in.options
index 9346fa3feb75..683204e56ebd 100644
--- a/toolchain/toolchain-external/toolchain-external-custom/Config.in.options
+++ b/toolchain/toolchain-external/toolchain-external-custom/Config.in.options
@@ -31,6 +31,10 @@ choice
 	  Set to the gcc version that is used by your external
 	  toolchain.
 
+config BR2_TOOLCHAIN_EXTERNAL_GCC_12
+	bool "12.x"
+	select BR2_TOOLCHAIN_GCC_AT_LEAST_12
+
 config BR2_TOOLCHAIN_EXTERNAL_GCC_11
 	bool "11.x"
 	select BR2_TOOLCHAIN_GCC_AT_LEAST_11
-- 
2.25.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 0/2] External GCC12 toolchain support
  2022-03-22 22:21 [Buildroot] [PATCH 0/2] External GCC12 toolchain support Florian Fainelli
  2022-03-22 22:21 ` [Buildroot] [PATCH 1/2] toolchain/Config.in: add BR2_TOOLCHAIN_GCC_AT_LEAST_12 blind option Florian Fainelli
  2022-03-22 22:21 ` [Buildroot] [PATCH 2/2] toolchain/toolchain-external/toolchain-external-custom: add gcc 12 version selection Florian Fainelli
@ 2022-04-03  2:33 ` Florian Fainelli
  2 siblings, 0 replies; 4+ messages in thread
From: Florian Fainelli @ 2022-04-03  2:33 UTC (permalink / raw)
  To: buildroot, Thomas Petazzoni, Yann E. MORIN,
	Arnout Vandecappelle (Essensium/Mind)
  Cc: opendmb, mmayer

Hi all,

On 3/22/2022 3:21 PM, Florian Fainelli wrote:
> This patch series allows us to use Linaro's GCC12 snapshot that can be
> downloaded from here:
> 
> https://snapshots.linaro.org/gnu-toolchain/12.0-2021.10-1/aarch64-linux-gnu/

Should I be resending this?

> 
> Florian Fainelli (2):
>    toolchain/Config.in: add BR2_TOOLCHAIN_GCC_AT_LEAST_12 blind option
>    toolchain/toolchain-external/toolchain-external-custom: add gcc 12
>      version selection
> 
>   toolchain/Config.in                                   | 11 +++++++++--
>   .../toolchain-external-custom/Config.in.options       |  4 ++++
>   2 files changed, 13 insertions(+), 2 deletions(-)
> 

-- 
Florian
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2022-04-03  2:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-22 22:21 [Buildroot] [PATCH 0/2] External GCC12 toolchain support Florian Fainelli
2022-03-22 22:21 ` [Buildroot] [PATCH 1/2] toolchain/Config.in: add BR2_TOOLCHAIN_GCC_AT_LEAST_12 blind option Florian Fainelli
2022-03-22 22:21 ` [Buildroot] [PATCH 2/2] toolchain/toolchain-external/toolchain-external-custom: add gcc 12 version selection Florian Fainelli
2022-04-03  2:33 ` [Buildroot] [PATCH 0/2] External GCC12 toolchain support Florian Fainelli

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.