Skip to contentSkip to conversation

linux: select host-openssl for all architectures when building latest version

PATCH Applied Thomas Petazzoni via buildroot 1 participant 4 messages Aug 24, 2025 – Dec 18, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux: select host-openssl for all architectures when building latest version

Since at least Linux 6.16, but possibly earlier, host-openssl is now needed on the vast majority (if not all?) CPU architectures.

Indeed, in order to fix build issues, we would have to add: armeb, microblaze, loongarch, m68k, mips, mipsel, mips64, mips64el, powerpc, powerpc64, powerpc64el, riscv, s390, and possibly others.

So intead, when "latest kernel" is used with the default architecture configuration, always select host-openssl independently of the selected architectures.

Fixes:

https://autobuild.buildroot.net/results/9a314e759f7640d760003e46f86153300478ec60/ (mipsel)
https://autobuild.buildroot.net/results/3bcc674ea5a7cdf031200b0cd2f9f71400ba391c/ (mips64el)
https://autobuild.buildroot.net/results/b24983fd91f408de56479b7d7d57fc9fd3333d7d/ (s390)
https://autobuild.buildroot.net/results/b262fc6f67a9fed55faffcdd580d89f4664e1e16/ (powerpc64)
https://autobuild.buildroot.net/results/45da1538457b18671fa18efe3e1aa57a15561370/ (m68k)
https://autobuild.buildroot.net/results/0a457375d2509f1b29a449dfa50f29fc7e56e568/ (armeb)
https://autobuild.buildroot.net/results/814ca5f048827a635dea0199878fa82d5012b649/ (loongarch64)
https://autobuild.buildroot.net/results/b684d0b37e5187aa9b31693356f8515857d19f7a/ (microblaze)

---
 linux/Config.in | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
linux/Config.in +2 -3
index b4b0295dfe..56473d1b03 100644
@@ -175,12 +175,11 @@ config BR2_LINUX_KERNEL_USE_DEFCONFIG
 
 config BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG
 	bool "Use the architecture default configuration"
-	# We know that the default configuration on some architectures
+	# We know that the default configuration on many architectures
 	# requires host-openssl, so select it for the latest kernel
 	# version. This is mainly needed to fix autobuilder testing.
 	select BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL if \
-	       BR2_LINUX_KERNEL_LATEST_VERSION && \
-	       (BR2_aarch64 || BR2_aarch64_be || BR2_arcle || BR2_arceb || BR2_sparc || BR2_x86_64)
+	       BR2_LINUX_KERNEL_LATEST_VERSION
 	help
 	  This option will use the default configuration for the
 	  selected architecture. I.e, it is equivalent to running
Signature · 6 lines
2.50.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
author Reviewed-by Romain Naour on v1 1/1
#1 lore raw

Hello Thomas, All,

Le 24/08/2025 à 11:29, Thomas Petazzoni via buildroot a écrit :

Quoted 2 lines

Since at least Linux 6.16, but possibly earlier, host-openssl is now needed on the vast majority (if not all?) CPU architectures.

It seems related to signature tools build for the host that are now enabled by
default: CONFIG_MODULE_SIG_KEY and CONFIG_MODULE_SIG_FORMAT:

$(obj)/signing_key.x509: $(filter-out $(PKCS11_URI),$(CONFIG_MODULE_SIG_KEY)) $(obj)/extract-cert FORCE
certs/extract-cert.c:21:#include <openssl/bio.h>

hostprogs-always-$(CONFIG_MODULE_SIG_FORMAT) += sign-file scripts/sign-file.c:25:#include <openssl

Quoted 8 lines

Indeed, in order to fix build issues, we would have to add: armeb, microblaze, loongarch, m68k, mips, mipsel, mips64, mips64el, powerpc, powerpc64, powerpc64el, riscv, s390, and possibly others.

So intead, when "latest kernel" is used with the default architecture configuration, always select host-openssl independently of the selected architectures.

Nowadays, even bootloaders (u-boot) needs host-openssl (BR2_TARGET_UBOOT_NEEDS_OPENSSL)

Best regards,
Romain

Quoted 26 lines

Fixes:

https://autobuild.buildroot.net/results/9a314e759f7640d760003e46f86153300478ec60/ (mipsel)
https://autobuild.buildroot.net/results/3bcc674ea5a7cdf031200b0cd2f9f71400ba391c/ (mips64el)
https://autobuild.buildroot.net/results/b24983fd91f408de56479b7d7d57fc9fd3333d7d/ (s390)
https://autobuild.buildroot.net/results/b262fc6f67a9fed55faffcdd580d89f4664e1e16/ (powerpc64)
https://autobuild.buildroot.net/results/45da1538457b18671fa18efe3e1aa57a15561370/ (m68k)
https://autobuild.buildroot.net/results/0a457375d2509f1b29a449dfa50f29fc7e56e568/ (armeb)
https://autobuild.buildroot.net/results/814ca5f048827a635dea0199878fa82d5012b649/ (loongarch64)
https://autobuild.buildroot.net/results/b684d0b37e5187aa9b31693356f8515857d19f7a/ (microblaze)

---
 linux/Config.in | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
linux/Config.in +0 -1
index b4b0295dfe..56473d1b03 100644
@@ -175,12 +175,11 @@ config BR2_LINUX_KERNEL_USE_DEFCONFIG
 
 config BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG
 	bool "Use the architecture default configuration"
-	# We know that the default configuration on some architectures

linux/Config.in config BR2_LINUX_KERNEL_USE_DEFCONFIG · line 185

Quoted 10 lines
linux/Config.in +2 -2
+	# We know that the default configuration on many architectures
 	# requires host-openssl, so select it for the latest kernel
 	# version. This is mainly needed to fix autobuilder testing.
 	select BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL if \
-	       BR2_LINUX_KERNEL_LATEST_VERSION && \
-	       (BR2_aarch64 || BR2_aarch64_be || BR2_arcle || BR2_arceb || BR2_sparc || BR2_x86_64)
+	       BR2_LINUX_KERNEL_LATEST_VERSION
 	help
 	  This option will use the default configuration for the
 	  selected architecture. I.e, it is equivalent to running

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

#2 lore raw
Quoted 21 lines · Romain Naour via buildroot

Hello Thomas, All,

Le 24/08/2025 à 11:29, Thomas Petazzoni via buildroot a écrit :

Quoted 2 lines

Since at least Linux 6.16, but possibly earlier, host-openssl is now needed on the vast majority (if not all?) CPU architectures.

It seems related to signature tools build for the host that are now enabled by
default: CONFIG_MODULE_SIG_KEY and CONFIG_MODULE_SIG_FORMAT:

$(obj)/signing_key.x509: $(filter-out $(PKCS11_URI),$(CONFIG_MODULE_SIG_KEY)) $(obj)/extract-cert FORCE
certs/extract-cert.c:21:#include <openssl/bio.h>

hostprogs-always-$(CONFIG_MODULE_SIG_FORMAT) += sign-file scripts/sign-file.c:25:#include <openssl

Quoted 5 lines

Indeed, in order to fix build issues, we would have to add: armeb, microblaze, loongarch, m68k, mips, mipsel, mips64, mips64el, powerpc, powerpc64, powerpc64el, riscv, s390, and possibly others.

Quoted 8 lines
Quoted 3 lines

So intead, when "latest kernel" is used with the default architecture configuration, always select host-openssl independently of the selected architectures.

Nowadays, even bootloaders (u-boot) needs host-openssl (BR2_TARGET_UBOOT_NEEDS_OPENSSL)

Applied to master. Thanks.

For info, I added extra info (including what Romain pointed out) in the commit log:
https://gitlab.com/buildroot.org/buildroot/-/commit/bba86304b0ac4ae266cfb52e54a239b0850b10ca

Quoted 35 lines

Best regards,
Romain

Quoted 31 lines

Fixes:

https://autobuild.buildroot.net/results/9a314e759f7640d760003e46f86153300478ec60/ (mipsel)

https://autobuild.buildroot.net/results/3bcc674ea5a7cdf031200b0cd2f9f71400ba391c/ (mips64el)

https://autobuild.buildroot.net/results/b24983fd91f408de56479b7d7d57fc9fd3333d7d/ (s390)

https://autobuild.buildroot.net/results/b262fc6f67a9fed55faffcdd580d89f4664e1e16/ (powerpc64)

https://autobuild.buildroot.net/results/45da1538457b18671fa18efe3e1aa57a15561370/ (m68k)

https://autobuild.buildroot.net/results/0a457375d2509f1b29a449dfa50f29fc7e56e568/ (armeb)

https://autobuild.buildroot.net/results/814ca5f048827a635dea0199878fa82d5012b649/ (loongarch64)

https://autobuild.buildroot.net/results/b684d0b37e5187aa9b31693356f8515857d19f7a/ (microblaze)

---
 linux/Config.in | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
linux/Config.in +0 -0
index b4b0295dfe..56473d1b03 100644
@@ -175,12 +175,11 @@ config BR2_LINUX_KERNEL_USE_DEFCONFIG
 
Quoted 14 lines
Quoted 13 lines
linux/Config.in +2 -3
 config BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG
 	bool "Use the architecture default configuration"
-	# We know that the default configuration on some architectures
+	# We know that the default configuration on many architectures
 	# requires host-openssl, so select it for the latest kernel
 	# version. This is mainly needed to fix autobuilder testing.
 	select BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL if \
-	       BR2_LINUX_KERNEL_LATEST_VERSION && \
-	       (BR2_aarch64 || BR2_aarch64_be || BR2_arcle || BR2_arceb || 
 BR2_sparc || BR2_x86_64)
+	       BR2_LINUX_KERNEL_LATEST_VERSION
 	help
 	  This option will use the default configuration for the
Quoted 1 line

selected architecture. I.e, it is equivalent to running

Best regards,

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

#3 lore raw
In reply to Thomas Petazzoni via buildroot

In reply of:

Quoted 22 lines

Since at least Linux 6.16, but possibly earlier, host-openssl is now needed on the vast majority (if not all?) CPU architectures.

Indeed, in order to fix build issues, we would have to add: armeb, microblaze, loongarch, m68k, mips, mipsel, mips64, mips64el, powerpc, powerpc64, powerpc64el, riscv, s390, and possibly others.

So intead, when "latest kernel" is used with the default architecture configuration, always select host-openssl independently of the selected architectures.

Fixes:

https://autobuild.buildroot.net/results/9a314e759f7640d760003e46f86153300478ec60/ (mipsel)
https://autobuild.buildroot.net/results/3bcc674ea5a7cdf031200b0cd2f9f71400ba391c/ (mips64el)
https://autobuild.buildroot.net/results/b24983fd91f408de56479b7d7d57fc9fd3333d7d/ (s390)
https://autobuild.buildroot.net/results/b262fc6f67a9fed55faffcdd580d89f4664e1e16/ (powerpc64)
https://autobuild.buildroot.net/results/45da1538457b18671fa18efe3e1aa57a15561370/ (m68k)
https://autobuild.buildroot.net/results/0a457375d2509f1b29a449dfa50f29fc7e56e568/ (armeb)
https://autobuild.buildroot.net/results/814ca5f048827a635dea0199878fa82d5012b649/ (loongarch64)
https://autobuild.buildroot.net/results/b684d0b37e5187aa9b31693356f8515857d19f7a/ (microblaze)

Quoted 1 line

Applied to 2025.02.x and 2025.11.x. Thanks

Quoted 30 lines
---
 linux/Config.in | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
linux/Config.in +2 -3
index b4b0295dfe..56473d1b03 100644
@@ -175,12 +175,11 @@ config BR2_LINUX_KERNEL_USE_DEFCONFIG
 
 config BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG
 	bool "Use the architecture default configuration"
-	# We know that the default configuration on some architectures
+	# We know that the default configuration on many architectures
 	# requires host-openssl, so select it for the latest kernel
 	# version. This is mainly needed to fix autobuilder testing.
 	select BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL if \
-	       BR2_LINUX_KERNEL_LATEST_VERSION && \
-	       (BR2_aarch64 || BR2_aarch64_be || BR2_arcle || BR2_arceb || BR2_sparc || BR2_x86_64)
+	       BR2_LINUX_KERNEL_LATEST_VERSION
 	help
 	  This option will use the default configuration for the
 	  selected architecture. I.e, it is equivalent to running
Signature · 6 lines
2.50.1

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

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