All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/elfutils: ensure we have 5.0 kernel headers
@ 2025-02-13 18:15 Alex Bennée
  2025-02-16 13:53 ` Julien Olivain
  0 siblings, 1 reply; 2+ messages in thread
From: Alex Bennée @ 2025-02-13 18:15 UTC (permalink / raw)
  To: buildroot

It seems some of the external toolchains have fairly old headers. This
can cause a build failure of elfutils on Aarch64 due to a missing
definition of struct user_pac_mask.

Prevent the user selecting elfutils unless the kernel headers will
allow it to build.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
 package/elfutils/Config.in | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/package/elfutils/Config.in b/package/elfutils/Config.in
index c355048c6d..4995b4f0d2 100644
--- a/package/elfutils/Config.in
+++ b/package/elfutils/Config.in
@@ -1,12 +1,14 @@
-comment "elfutils needs a toolchain w/ wchar, dynamic library, threads"
+comment "elfutils needs a toolchain w/ wchar, dynamic library, threads, (kernel headers >5.0 for AArch64)"
 	depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS \
-		|| !BR2_TOOLCHAIN_HAS_THREADS
+		|| !BR2_TOOLCHAIN_HAS_THREADS \
+		&& (BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_0 || !BR2_aarch64)
 
 config BR2_PACKAGE_ELFUTILS
 	bool "elfutils"
 	depends on BR2_USE_WCHAR
 	depends on !BR2_STATIC_LIBS
 	depends on BR2_TOOLCHAIN_HAS_THREADS
+	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_0 || !BR2_aarch64 # user_pac_mask
 	select BR2_PACKAGE_ZLIB
 	select BR2_PACKAGE_ARGP_STANDALONE if !BR2_TOOLCHAIN_USES_GLIBC
 	select BR2_PACKAGE_MUSL_FTS if !BR2_TOOLCHAIN_USES_GLIBC
-- 
2.39.5

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-02-16 13:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-13 18:15 [Buildroot] [PATCH] package/elfutils: ensure we have 5.0 kernel headers Alex Bennée
2025-02-16 13:53 ` Julien Olivain

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.