Skip to contentSkip to conversation

package/blake3: add target variant

PATCH Applied [email protected] 2 participants 6 messages Feb 4 – Feb 13

lore
Share & tools
lore
#0 lore raw

cover package/blake3: add target variant

From: "Yann E. MORIN" <[email protected]>

Hello All!

This small series extends blake3 to being a target package, in addition to being a host package.

Regards,
Yann E. MORIN.

The following changes since commit 27fed8e7ba87671161c6ae9ab4aeb20533ede93d

beaglev_fire: remove fdt set from boot script (2026-02-04 12:03:13 +0100)

are available as patches in this mail series,

for you to apply patches up to b2d5a34a036132c546c17f2f3687b8ccf7c0e967

package/blake3: add target support (2026-02-04 13:36:54 +0100)

----------------------------------------------------------------
Yann E. MORIN (3):
package/blake3: explicitly disable threading & examples package/blake3: bump to version 1.8.3 package/blake3: add target support

 package/Config.in          |  1 +
 package/blake3/Config.in   |  8 ++++++++
 package/blake3/blake3.hash |  2 +-
 package/blake3/blake3.mk   | 12 +++++++++++-
 4 files changed, 21 insertions(+), 2 deletions(-)
 create mode 100644 package/blake3/Config.in

--

                                        ____________
.-----------------.--------------------:       _    :------------------.
|  Yann E. MORIN  | Real-Time Embedded |    __/ )   | /"\ ASCII RIBBON |
|                 | Software  Designer |  _/ - /'   | \ / CAMPAIGN     |
| +33 638.411.245 '--------------------: (_    `--, |  X  AGAINST      |
| yann.morin (at) orange.com           |_="    ,--' | / \ HTML MAIL    |

'--------------------------------------:______/_____:------------------'

____________________________________________________________________________________________________________
Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration, Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law; they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments. As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified. Thank you.

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#4 lore raw

PATCH 2/3 package/blake3: bump to version 1.8.3

From: "Yann E. MORIN" <[email protected]>

---
 package/blake3/blake3.hash | 2 +-
 package/blake3/blake3.mk   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
package/blake3/blake3.hash +1 -1
index 6bcfefb2b8..6e7d02db6c 100644
@@ -1,5 +1,5 @@
 # sha256 computed locally
-sha256  6b51aefe515969785da02e87befafc7fdc7a065cd3458cf1141f29267749e81f  blake3-1.8.2.tar.gz
+sha256  5a11e3f834719b6c1cae7aced1e848a37013f6f10f97272e7849aa0da769f295  blake3-1.8.3.tar.gz
 sha256  00fcc7a934ddbc9ece2a7cc063ac788e284b703b1d705ccbba72d462aa97921e  LICENSE_A2
 sha256  a5695f57ea0c221e0e8b7d784ff774c35e88c3d3270353646a925880bb3492cc  LICENSE_A2LLVM
 sha256  a2010f343487d3f7618affe54f789f5487602331c0a8d03f49e9a7c547cf0499  LICENSE_CC0
package/blake3/blake3.mk +1 -1
index 1055a2c073..a2094fc4c0 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-BLAKE3_VERSION = 1.8.2
+BLAKE3_VERSION = 1.8.3
 BLAKE3_SITE = $(call github,BLAKE3-team,BLAKE3,$(BLAKE3_VERSION))
 BLAKE3_SUBDIR = c
 BLAKE3_LICENSE = Apache-2.0 or Apache-2.0 with exceptions or CC0-1.0
Signature · 18 lines
2.34.1

____________________________________________________________________________________________________________
Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
Thank you.

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 1/3 package/blake3: explicitly disable threading & examples

In reply to [email protected]

From: "Yann E. MORIN" <[email protected]>

Use of threading requires a C++20 compiler, and the oneTBB implementation. oneTBB is missing from Buildroot, but a system one may be used if found.

Even if the default for threading is disabled, explcitly state so, in case the default changes in the future.

Also disable examples, we don't and won't need them.

---
 package/blake3/blake3.mk | 4 ++++
 1 file changed, 4 insertions(+)
package/blake3/blake3.mk +4 -0
index 9d1323192c..1055a2c073 100644
@@ -10,6 +10,10 @@ BLAKE3_SUBDIR = c
 BLAKE3_LICENSE = Apache-2.0 or Apache-2.0 with exceptions or CC0-1.0
 BLAKE3_LICENSE_FILES = LICENSE_A2 LICENSE_A2LLVM LICENSE_CC0
 
+HOST_BLAKE3_CONF_OPTS = \
+	-DBLAKE3_USE_TBB=OFF \
+	-DBLAKE3_EXAMPLES=OFF
+
 # The package is a dependency to ccache so ccache cannot be a dependency
 HOST_BLAKE3_ADD_CCACHE_DEPENDENCY = NO
 
Signature · 18 lines
2.34.1

____________________________________________________________________________________________________________
Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
Thank you.

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#5 lore raw

PATCH 3/3 package/blake3: add target support

In reply to [email protected]

From: "Yann E. MORIN" <[email protected]>

Blake3 unconditionally enables C++ support, which unconditionally requires C++20 when built with cmake >= 3.12, even when this is not required.

Fixing this does not look trivial, and rather than botching the build, just require C++20, available from gcc 8.x onward.

---
 package/Config.in        | 1 +
 package/blake3/Config.in | 8 ++++++++
 package/blake3/blake3.mk | 6 ++++++
 3 files changed, 15 insertions(+)
 create mode 100644 package/blake3/Config.in
package/Config.in +1 -0
index 258ad1883d..864db99d02 100644
@@ -2122,6 +2122,7 @@ menu "Other"
 	source "package/avro-c/Config.in"
 	source "package/basu/Config.in"
 	source "package/bdwgc/Config.in"
+	source "package/blake3/Config.in"
 	source "package/boost/Config.in"
 	source "package/c-capnproto/Config.in"
 	source "package/capnproto/Config.in"
package/blake3/Config.in new file +8 -0
new file mode 100644
index 0000000000..afad6541d9
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_BLAKE3
+	bool "blake3"
+	depends on BR2_INSTALL_LIBSTDCPP
+	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_8  # C++20
+	help
+	  BLAKE3 is a cryptographic hash function.
+
+	  https://github.com/BLAKE3-team/BLAKE3
package/blake3/blake3.mk +6 -0
index a2094fc4c0..9218e5bbba 100644
@@ -10,6 +10,11 @@ BLAKE3_SUBDIR = c
 BLAKE3_LICENSE = Apache-2.0 or Apache-2.0 with exceptions or CC0-1.0
 BLAKE3_LICENSE_FILES = LICENSE_A2 LICENSE_A2LLVM LICENSE_CC0
 
+BLAKE3_INSTALL_STAGING = YES
+
+BLAKE3_CONF_OPTS = \
+	-DBLAKE3_USE_TBB=OFF \
+	-DBLAKE3_EXAMPLES=OFF
 HOST_BLAKE3_CONF_OPTS = \
 	-DBLAKE3_USE_TBB=OFF \
 	-DBLAKE3_EXAMPLES=OFF
@@ -23,4 +28,5 @@ HOST_BLAKE3_CONF_OPTS += \
 	-UCMAKE_C_COMPILER_LAUNCHER \
 	-UCMAKE_CXX_COMPILER_LAUNCHER
 
+$(eval $(cmake-package))
 $(eval $(host-cmake-package))
Signature · 18 lines
2.34.1

____________________________________________________________________________________________________________
Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
Thank you.

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

Re: [Buildroot] [PATCH 1/3] package/blake3: explicitly disable threading & examples

In reply to [email protected]
Quoted 6 lines · On 04/02/2026 13:37, [email protected] wrote:

From: "Yann E. MORIN" <[email protected]>

Use of threading requires a C++20 compiler, and the oneTBB implementation. oneTBB is missing from Buildroot, but a system one may be used if found.

Quoted 7 lines

Even if the default for threading is disabled, explcitly state so, in case the default changes in the future.

Also disable examples, we don't and won't need them.

Series applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#3 lore raw

Re: [Buildroot] [PATCH 1/3] package/blake3: explicitly disable threading & examples

In reply to [email protected]

In reply of:

Quoted 11 lines

Use of threading requires a C++20 compiler, and the oneTBB implementation. oneTBB is missing from Buildroot, but a system one may be used if found.

Even if the default for threading is disabled, explcitly state so, in case the default changes in the future.

Also disable examples, we don't and won't need them.

Applied to 2025.11.x. Thanks

Quoted 38 lines
---
 package/blake3/blake3.mk | 4 ++++
 1 file changed, 4 insertions(+)
package/blake3/blake3.mk +4 -0
index 9d1323192c..1055a2c073 100644
@@ -10,6 +10,10 @@ BLAKE3_SUBDIR = c
 BLAKE3_LICENSE = Apache-2.0 or Apache-2.0 with exceptions or CC0-1.0
 BLAKE3_LICENSE_FILES = LICENSE_A2 LICENSE_A2LLVM LICENSE_CC0
 
+HOST_BLAKE3_CONF_OPTS = \
+	-DBLAKE3_USE_TBB=OFF \
+	-DBLAKE3_EXAMPLES=OFF
+
 # The package is a dependency to ccache so ccache cannot be a dependency
 HOST_BLAKE3_ADD_CCACHE_DEPENDENCY = NO
 
Signature · 18 lines
2.34.1

____________________________________________________________________________________________________________
Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
Thank you.

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot