[Buildroot] [PATCH 1/2] configs/rock5b: Freeze gcc to version 11

Kilian Zinnecker kilian.zinnecker at mail.de
Tue Aug 8 05:01:21 UTC 2023


This patch sets the gcc version to use for the Radxa Rock 5B to
version 11. Recently the gcc default version in buildroot was
changed to gcc 12. However, the used kernel for the Rock 5B is a
custom kernel, provided by Radxa, with specific changes. It is
derived from a 5.10 version of the mainline kernel. When compiled
with gcc 12 some kernel code parts break, due to warnings. Some of
those parts are fixed in later versions of the mainline kernel.
Others are parts customized, non-mainline code, for which no fix
seems to exist currently.

Signed-off-by: Kilian Zinnecker <kilian.zinnecker at mail.de>
---
 configs/rock5b_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configs/rock5b_defconfig b/configs/rock5b_defconfig
index 6e525d9676..93d34f8cf3 100644
--- a/configs/rock5b_defconfig
+++ b/configs/rock5b_defconfig
@@ -6,6 +6,7 @@ BR2_ROOTFS_POST_SCRIPT_ARGS=""
 BR2_TARGET_GENERIC_HOSTNAME="rock5b"
 BR2_TARGET_GENERIC_ISSUE="Welcome to the rock5b board"
 BR2_SYSTEM_DHCP="eth0"
+BR2_GCC_VERSION_11_X=y
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_GIT=y
 BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/radxa/kernel.git"
-- 
2.34.1




More information about the buildroot mailing list