From 9eccdd56a756d7e669b80c94dabc70fa558c07af Mon Sep 17 00:00:00 2001
From: Jerome Forissier <jerome@forissier.org>
Date: Fri, 15 Oct 2021 22:39:57 +0200
Subject: [PATCH] buildroot: Update toolchain when GDBSERVER=y

Fix the following build error:

 $ make GDBSERVER=y
 ...
 Makefile.legacy:9: *** "You have legacy configuration in your .config! Please check your configuration.".  Stop.

The error was introduced by the upgrade to Buildroot 2021.08 [1].

The deprecated option can be found by running "make menuconfig" in
out-br/ and checking the "Legacy options" submenu. It shows that
"gcc 8.x support removed" is selected. We can also see that
BR2_GCC_VERSION_8_X=y appears just below the comment "Legacy options
removed in 2021.08" in out-br/.config. This options comes from file
br-ext/configs/toolchain-br.

Upgrade the toolchain to 10.x which is available in Buildroot 2021.08
and corresponds to the pre-built version we use by default ("make
toolchains" currently downloads 10.2).

Link: https://github.com/OP-TEE/manifest/commit/e8d2210
Signed-off-by: Jerome Forissier <jerome@forissier.org>
Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
---
 br-ext/configs/toolchain-br | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/br-ext/configs/toolchain-br b/br-ext/configs/toolchain-br
index 3ec445e..d03e90e 100644
--- a/br-ext/configs/toolchain-br
+++ b/br-ext/configs/toolchain-br
@@ -1,3 +1,3 @@
 BR2_TOOLCHAIN_BUILDROOT=y
-BR2_GCC_VERSION_8_X=y
+BR2_GCC_VERSION_10_X=y
 BR2_KERNEL_HEADERS_4_19=y
-- 
GitLab