Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2 1/1] package/mtd: integck needs threads
@ 2017-08-14 19:01 Bernd Kuhls
  2017-08-14 19:29 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Bernd Kuhls @ 2017-08-14 19:01 UTC (permalink / raw)
  To: buildroot

The test programs depend on pthreads:
http://git.infradead.org/mtd-utils.git/blob/1bfee8660131fca7a18f68e9548a18ca6b3378a0:/configure.ac#l43

Our option BR2_PACKAGE_MTD_INTEGCK is the only option which enables
building the test programs so it needs to depend on threads because
BR2_PACKAGE_MTD_TESTS as a hidden option cannot be selected.

Fixes
http://autobuild.buildroot.net/results/879/879c79e505f65387a46c4be263dc8783c8ca61bf/

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
v2: threads are only needed for test programs (Baruch)

 package/mtd/Config.in | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/mtd/Config.in b/package/mtd/Config.in
index a1df4cfc0..15057a00e 100644
--- a/package/mtd/Config.in
+++ b/package/mtd/Config.in
@@ -174,9 +174,13 @@ config BR2_PACKAGE_MTD_UBIBLOCK
 
 config BR2_PACKAGE_MTD_INTEGCK
 	bool "integck"
+	depends on BR2_TOOLCHAIN_HAS_THREADS
 	depends on BR2_USE_MMU # fork()
 	select BR2_PACKAGE_MTD_TESTS
 	help
 	  Install the integck test program.
 
+comment "integck needs a toolchain w/ threads"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS
+
 endif
-- 
2.11.0

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

end of thread, other threads:[~2017-08-14 19:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-14 19:01 [Buildroot] [PATCH v2 1/1] package/mtd: integck needs threads Bernd Kuhls
2017-08-14 19:29 ` Thomas Petazzoni

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