* [Buildroot] [PATCH v2,1/1] package/efivar: needs threads
@ 2023-02-23 16:28 Fabrice Fontaine
2023-02-23 22:34 ` Thomas Petazzoni via buildroot
2023-03-05 17:34 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2023-02-23 16:28 UTC (permalink / raw)
To: buildroot; +Cc: Fabrice Fontaine
Add a thread dependency as Upstream quickly closed
https://github.com/rhboot/efivar/pull/238 to fix the following build
failure without threads raised since bump to version 38 in commit
f24029b561fbda0953c7dbd93d2485b03873996d and
https://github.com/rhboot/efivar/commit/cff88dd96b9d43e2c5875a24ba6180b196890ded:
thread-test.c:14:10: fatal error: pthread.h: No such file or directory
14 | #include <pthread.h>
| ^~~~~~~~~~~
Fixes:
- http://autobuild.buildroot.org/results/f2da14f91dc602a32dd5b2b7bdf3d3aa43afa7f4
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
Changes v1 -> v2:
- Add a thread dependency
package/efibootmgr/Config.in | 5 +++--
package/efivar/Config.in | 5 +++--
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/package/efibootmgr/Config.in b/package/efibootmgr/Config.in
index 98ff71c996..5800e6c143 100644
--- a/package/efibootmgr/Config.in
+++ b/package/efibootmgr/Config.in
@@ -2,6 +2,7 @@ config BR2_PACKAGE_EFIBOOTMGR
bool "efibootmgr"
depends on BR2_PACKAGE_EFIVAR_ARCH_SUPPORTS # efivar
depends on !BR2_STATIC_LIBS # efivar
+ depends on BR2_TOOLCHAIN_HAS_THREADS # efivar
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12 # efivar
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # efivar
depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_MIPS
@@ -15,9 +16,9 @@ config BR2_PACKAGE_EFIBOOTMGR
https://github.com/rhboot/efibootmgr
-comment "efibootmgr needs a toolchain w/ dynamic library, headers >= 3.12, gcc >= 4.9"
+comment "efibootmgr needs a toolchain w/ dynamic library, threads, headers >= 3.12, gcc >= 4.9"
depends on BR2_PACKAGE_EFIVAR_ARCH_SUPPORTS
- depends on BR2_STATIC_LIBS || \
+ depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS || \
!BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12 || \
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_MIPS
diff --git a/package/efivar/Config.in b/package/efivar/Config.in
index 74f2bb5abb..d4402dbcf7 100644
--- a/package/efivar/Config.in
+++ b/package/efivar/Config.in
@@ -9,6 +9,7 @@ config BR2_PACKAGE_EFIVAR
depends on BR2_PACKAGE_EFIVAR_ARCH_SUPPORTS
depends on !BR2_STATIC_LIBS # dlfcn.h
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12 # linux/nvme.h
+ depends on BR2_TOOLCHAIN_HAS_THREADS
# linux/nvme.h has been renamed to linux/nvme_ioctl.h since 4.4,
# and the efivar source handles that situation. However, some
# Sourcery CodeBench toolchains use 4.4 kernel headers but they
@@ -22,9 +23,9 @@ config BR2_PACKAGE_EFIVAR
https://github.com/rhboot/efivar
-comment "efivar needs a toolchain w/ dynamic library, headers >= 3.12, gcc >= 4.9"
+comment "efivar needs a toolchain w/ dynamic library, threads, headers >= 3.12, gcc >= 4.9"
depends on BR2_PACKAGE_EFIVAR_ARCH_SUPPORTS
- depends on BR2_STATIC_LIBS || \
+ depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS || \
!BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12 || \
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_MIPS
--
2.39.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH v2,1/1] package/efivar: needs threads
2023-02-23 16:28 [Buildroot] [PATCH v2,1/1] package/efivar: needs threads Fabrice Fontaine
@ 2023-02-23 22:34 ` Thomas Petazzoni via buildroot
2023-03-05 17:34 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-02-23 22:34 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: buildroot
On Thu, 23 Feb 2023 17:28:47 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> Add a thread dependency as Upstream quickly closed
> https://github.com/rhboot/efivar/pull/238 to fix the following build
> failure without threads raised since bump to version 38 in commit
> f24029b561fbda0953c7dbd93d2485b03873996d and
> https://github.com/rhboot/efivar/commit/cff88dd96b9d43e2c5875a24ba6180b196890ded:
>
> thread-test.c:14:10: fatal error: pthread.h: No such file or directory
> 14 | #include <pthread.h>
> | ^~~~~~~~~~~
>
> Fixes:
> - http://autobuild.buildroot.org/results/f2da14f91dc602a32dd5b2b7bdf3d3aa43afa7f4
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> Changes v1 -> v2:
> - Add a thread dependency
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH v2,1/1] package/efivar: needs threads
2023-02-23 16:28 [Buildroot] [PATCH v2,1/1] package/efivar: needs threads Fabrice Fontaine
2023-02-23 22:34 ` Thomas Petazzoni via buildroot
@ 2023-03-05 17:34 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2023-03-05 17:34 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: buildroot
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
> Add a thread dependency as Upstream quickly closed
> https://github.com/rhboot/efivar/pull/238 to fix the following build
> failure without threads raised since bump to version 38 in commit
> f24029b561fbda0953c7dbd93d2485b03873996d and
> https://github.com/rhboot/efivar/commit/cff88dd96b9d43e2c5875a24ba6180b196890ded:
> thread-test.c:14:10: fatal error: pthread.h: No such file or directory
> 14 | #include <pthread.h>
> | ^~~~~~~~~~~
> Fixes:
> - http://autobuild.buildroot.org/results/f2da14f91dc602a32dd5b2b7bdf3d3aa43afa7f4
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> Changes v1 -> v2:
> - Add a thread dependency
Committed to 2022.11.x, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-03-05 17:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-23 16:28 [Buildroot] [PATCH v2,1/1] package/efivar: needs threads Fabrice Fontaine
2023-02-23 22:34 ` Thomas Petazzoni via buildroot
2023-03-05 17:34 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox