Patchwork [3/8] rt-tests: requires thread support in the toolchain

login
register
mail settings
Submitter Thomas Petazzoni
Date Dec. 9, 2012, 6:13 p.m.
Message ID <3b534b03d272d7da09743acab71910ab1acb6592.1355076808.git.thomas.petazzoni@free-electrons.com>
Download mbox | patch
Permalink /patch/204761/
State Accepted
Headers show

Comments

Thomas Petazzoni - Dec. 9, 2012, 6:13 p.m.
The rt-tests package extensively use threads, so this package should
only be available if the toolchain has thread support.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 package/rt-tests/Config.in |    1 +
 1 file changed, 1 insertion(+)
Peter Korsgaard - Dec. 9, 2012, 8:53 p.m.
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:

 Thomas> The rt-tests package extensively use threads, so this package should
 Thomas> only be available if the toolchain has thread support.

 Thomas> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
 Thomas> ---
 Thomas>  package/rt-tests/Config.in |    1 +
 Thomas>  1 file changed, 1 insertion(+)

 Thomas> diff --git a/package/rt-tests/Config.in b/package/rt-tests/Config.in
 Thomas> index e645266..337c020 100644
 Thomas> --- a/package/rt-tests/Config.in
 Thomas> +++ b/package/rt-tests/Config.in
 Thomas> @@ -1,5 +1,6 @@
 Thomas>  config BR2_PACKAGE_RT_TESTS
 Thomas>  	bool "rt-tests"
 Thomas> +	depends on BR2_TOOLCHAIN_HAS_THREADS

You forgot to add a comment when not available. I've added that and
committed, thanks.

Patch

diff --git a/package/rt-tests/Config.in b/package/rt-tests/Config.in
index e645266..337c020 100644
--- a/package/rt-tests/Config.in
+++ b/package/rt-tests/Config.in
@@ -1,5 +1,6 @@ 
 config BR2_PACKAGE_RT_TESTS
 	bool "rt-tests"
+	depends on BR2_TOOLCHAIN_HAS_THREADS
 	help
 	  Set of utilities for testing the real-time behaviour of a
 	  Linux system.