Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Angelo Compagnucci <angelo.compagnucci@gmail.com>
To: buildroot@buildroot.org
Cc: Biagio Montaruli <biagio.hkr@gmail.com>,
	Edgar Bonet <bonet@grenoble.cnrs.fr>,
	Ludovic Desroches <ludovic.desroches@microchip.com>,
	Simon Dawson <spdawson@gmail.com>,
	Angelo Compagnucci <angelo.compagnucci@gmail.com>
Subject: [Buildroot] [PATCH 1/5] boot/at91bootstrap3: bump 3.x series to 3.10.4
Date: Tue, 10 Nov 2026 22:55:53 +0100	[thread overview]
Message-ID: <20261110215557.2248804-2-angelo.compagnucci@gmail.com> (raw)
In-Reply-To: <20261110215557.2248804-1-angelo.compagnucci@gmail.com>

The patch fixing the build with GCC 15 is not upstream in 3.10.4 yet
and applies as is: copy it to the v3.10.4 directory. The v3.10.3 copy
stays, used by the defconfigs that fetch v3.10.3 from git
(acmesystems_acqua_a5_* and at91sam9x5ek_*).

Release notes:
https://github.com/linux4sam/at91bootstrap/releases/tag/v3.10.4

Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>
---
 boot/at91bootstrap3/Config.in                 |  4 +-
 boot/at91bootstrap3/at91bootstrap3.hash       |  2 +-
 ...conditionally-define-bool-false-and-.patch | 47 +++++++++++++++++++
 3 files changed, 50 insertions(+), 3 deletions(-)
 create mode 100644 boot/at91bootstrap3/v3.10.4/0001-include-types.h-conditionally-define-bool-false-and-.patch

diff --git a/boot/at91bootstrap3/Config.in b/boot/at91bootstrap3/Config.in
index 83d3a02121..6181f39bb1 100644
--- a/boot/at91bootstrap3/Config.in
+++ b/boot/at91bootstrap3/Config.in
@@ -22,7 +22,7 @@ config BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION
 	bool "4.0.0"
 
 config BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION_3X
-	bool "3.10.3"
+	bool "3.10.4"
 
 config BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT
 	bool "Custom Git repository"
@@ -61,7 +61,7 @@ endif
 config BR2_TARGET_AT91BOOTSTRAP3_VERSION
 	string
 	default "v4.0.0" if BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION
-	default "v3.10.3" if BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION_3X
+	default "v3.10.4" if BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION_3X
 	default BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION \
 		if BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT || BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_SVN
 	default "custom"	if BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_TARBALL
diff --git a/boot/at91bootstrap3/at91bootstrap3.hash b/boot/at91bootstrap3/at91bootstrap3.hash
index e611f163c9..9727a88850 100644
--- a/boot/at91bootstrap3/at91bootstrap3.hash
+++ b/boot/at91bootstrap3/at91bootstrap3.hash
@@ -1,4 +1,4 @@
 # Locally calculated
-sha256  b6ae5bcaacc5a949f400182e036ae053049638444a3ba8b1dd154ec5f7898d8e  at91bootstrap3-v3.10.3.tar.gz
+sha256  b6b4cd4b127efbe103754673d28eb2abb9772b5378d9c8cbfc01c63b58d27451  at91bootstrap3-v3.10.4.tar.gz
 sha256  08c5b95df28be7f2e0439fb2b77fe27524f97c499850641e4540c07ea0b2c25d  at91bootstrap3-v4.0.0.tar.gz
 sha256  5a3809b1c2ba13b7242572322951311c584419f1f8516f665d6c06f0668d78de  LICENSES/MIT.txt
diff --git a/boot/at91bootstrap3/v3.10.4/0001-include-types.h-conditionally-define-bool-false-and-.patch b/boot/at91bootstrap3/v3.10.4/0001-include-types.h-conditionally-define-bool-false-and-.patch
new file mode 100644
index 0000000000..352c1c0a43
--- /dev/null
+++ b/boot/at91bootstrap3/v3.10.4/0001-include-types.h-conditionally-define-bool-false-and-.patch
@@ -0,0 +1,47 @@
+From 908c65678867565a934ea5a967bfe7e204d1ccaf Mon Sep 17 00:00:00 2001
+From: Edgar Bonet <bonet@grenoble.cnrs.fr>
+Date: Wed, 25 Jun 2025 11:13:43 +0200
+Subject: [PATCH] include/types.h: conditionally define bool, false and true
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+include/types.h typedefs ‘bool’ and macro-defines ‘false’ and ‘true’.
+However, since C23, these are predefine keywords. As C23 is the default
+C dialect for GCC 15, building with this compiler fails with:
+
+    include/types.h:23:23: error: ‘bool’ cannot be defined via ‘typedef’
+       23 | typedef unsigned char bool;
+          |                       ^~~~
+    include/types.h:23:23: note: ‘bool’ is a keyword with ‘-std=c23’ onwards
+
+Fix this build failure by only defining ‘bool’, ‘false’ and ‘true’ on C
+dialects older than C23.
+
+Upstream: https://github.com/linux4sam/at91bootstrap/pull/188
+[Edgar: backport to v3.10.3]
+
+Signed-off-by: Edgar Bonet <bonet@grenoble.cnrs.fr>
+---
+ include/types.h | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/include/types.h b/include/types.h
+index 1246a4df..2c1a41cf 100644
+--- a/include/types.h
++++ b/include/types.h
+@@ -42,8 +42,11 @@ typedef signed long long s64;
+ typedef unsigned long size_t;
+ typedef signed long ssize_t;
+ 
++/* bool, false and true are predefined since C23. */
++#if __STDC_VERSION__ < 202311L
+ typedef unsigned char bool;
+ #define false	0U
+ #define true	1U
++#endif
+ 
+ #endif /* TYPES_H_ */
+-- 
+2.43.0
+
-- 
2.53.0

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

  reply	other threads:[~2026-11-10 21:56 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-10 21:55 [Buildroot] [PATCH 0/5] at91bootstrap3: bump to 3.10.4, re-add the Arietta G25 defconfigs Angelo Compagnucci
2026-11-10 21:55 ` Angelo Compagnucci [this message]
2026-11-11 11:55   ` [Buildroot] [PATCH 1/5] boot/at91bootstrap3: bump 3.x series to 3.10.4 Edgar Bonet via buildroot
2026-11-10 21:55 ` [Buildroot] [PATCH 2/5] configs/acmesystems_acqua_a5_*: bump AT91Bootstrap " Angelo Compagnucci
2026-11-11 11:55   ` Edgar Bonet via buildroot
2026-11-10 21:55 ` [Buildroot] [PATCH 3/5] configs/at91sam9x5ek*: " Angelo Compagnucci
2026-11-10 21:55 ` [Buildroot] [PATCH 4/5] boot/at91bootstrap3: drop the patch for 3.10.3 Angelo Compagnucci
2026-11-10 21:55 ` [Buildroot] [PATCH 5/5] configs/acmesystems_arietta_g25_{128mb, 256mb}_defconfig: re-add defconfigs Angelo Compagnucci
2026-11-11 15:45 ` [Buildroot] [PATCH v2 1/6] boot/at91bootstrap3: bump 3.x series to 3.10.4 Angelo Compagnucci
2026-11-11 15:45   ` [Buildroot] [PATCH v2 2/6] configs/acmesystems_acqua_a5_*: bump AT91Bootstrap " Angelo Compagnucci
2026-11-11 15:45   ` [Buildroot] [PATCH v2 3/6] configs/at91sam9x5ek*: " Angelo Compagnucci
2026-11-11 15:45   ` [Buildroot] [PATCH v2 4/6] boot/at91bootstrap3: drop the patch for 3.10.3 Angelo Compagnucci
2026-11-11 15:45   ` [Buildroot] [PATCH v2 5/6] boot/at91bootstrap3: find the memory@ node of Linux device trees Angelo Compagnucci
2026-11-11 18:13     ` Edgar Bonet via buildroot
2026-11-11 18:50       ` Angelo Compagnucci
2026-11-11 15:45   ` [Buildroot] [PATCH v2 6/6] configs/acmesystems_arietta_g25_{128mb, 256mb}_defconfig: re-add defconfigs Angelo Compagnucci
2026-11-11 18:37   ` [Buildroot] [PATCH v3 1/7] boot/at91bootstrap3: bump 3.x series to 3.10.4 Angelo Compagnucci
2026-11-11 18:37     ` [Buildroot] [PATCH v3 2/7] configs/acmesystems_acqua_a5_*: bump AT91Bootstrap " Angelo Compagnucci
2026-11-11 18:37     ` [Buildroot] [PATCH v3 3/7] configs/at91sam9x5ek*: " Angelo Compagnucci
2026-11-11 18:37     ` [Buildroot] [PATCH v3 4/7] boot/at91bootstrap3: drop the patch for 3.10.3 Angelo Compagnucci
2026-11-11 18:37     ` [Buildroot] [PATCH v3 5/7] boot/at91bootstrap3: find the memory@ node of Linux device trees Angelo Compagnucci
2026-11-11 18:37     ` [Buildroot] [PATCH v3 6/7] configs/acmesystems_arietta_g25_{128mb, 256mb}_defconfig: re-add defconfigs Angelo Compagnucci
2026-11-11 18:37     ` [Buildroot] [PATCH v3 7/7] DEVELOPERS: remove Biagio Montaruli Angelo Compagnucci

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261110215557.2248804-2-angelo.compagnucci@gmail.com \
    --to=angelo.compagnucci@gmail.com \
    --cc=biagio.hkr@gmail.com \
    --cc=bonet@grenoble.cnrs.fr \
    --cc=buildroot@buildroot.org \
    --cc=ludovic.desroches@microchip.com \
    --cc=spdawson@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox