Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/picotool: fix libusb dependencies
@ 2024-07-21 17:38 Fabrice Fontaine
  2024-07-22 12:14 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 3+ messages in thread
From: Fabrice Fontaine @ 2024-07-21 17:38 UTC (permalink / raw)
  To: buildroot; +Cc: Fabrice Fontaine, Marcus Hoffmann

libusb dependencies are wrong since the addition of the package in
commit f7aac1c008f9c59f8c669bade17864b099221065:
 - BR2_HOST_GCC_AT_LEAST_4_9 is used instead of
   BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
 - BR2_TOOLCHAIN_HAS_THREADS is missing

Fixes: f7aac1c008f9c59f8c669bade17864b099221065
 - http://autobuild.buildroot.org/results/22689afc092e33b6e3c1c7ffea0d0e3b5bf76d99

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/picotool/Config.in | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/package/picotool/Config.in b/package/picotool/Config.in
index 0046f8ad61..bbbcef405d 100644
--- a/package/picotool/Config.in
+++ b/package/picotool/Config.in
@@ -1,10 +1,13 @@
-comment "picotool needs a toolchain w/ C++ and gcc >= 4.9"
-	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_HOST_GCC_AT_LEAST_4_9
+comment "picotool needs a toolchain w/ C++, threads, gcc >= 4.9"
+	depends on !BR2_INSTALL_LIBSTDCPP || \
+		BR2_TOOLCHAIN_HAS_THREADS || \
+		!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
 
 config BR2_PACKAGE_PICOTOOL
 	bool "picotool"
 	depends on BR2_INSTALL_LIBSTDCPP
-	depends on BR2_HOST_GCC_AT_LEAST_4_9 # libusb
+	depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
+	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # libusb
 	select BR2_PACKAGE_LIBUSB
 	select BR2_PACKAGE_PICO_SDK
 	help
-- 
2.43.0

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

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

end of thread, other threads:[~2024-07-22 12:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-21 17:38 [Buildroot] [PATCH 1/1] package/picotool: fix libusb dependencies Fabrice Fontaine
2024-07-22 12:14 ` Thomas Petazzoni via buildroot
2024-07-22 12:16   ` Marcus Hoffmann via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox