* [Buildroot] [PATCH v2] rt-tests: disable NPTL is missing
@ 2014-01-13 6:56 Baruch Siach
2014-01-13 8:10 ` Thomas Petazzoni
2014-01-16 8:25 ` Peter Korsgaard
0 siblings, 2 replies; 5+ messages in thread
From: Baruch Siach @ 2014-01-13 6:56 UTC (permalink / raw)
To: buildroot
Fixes
http://autobuild.buildroot.net/results/8aa/8aaa4b56a53241b7342fede568fbc72a7656cc38/.
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
v2: exclude linuxthreads-{old,new} for internal toolchains (Peter Korsgaard)
---
package/rt-tests/Config.in | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/package/rt-tests/Config.in b/package/rt-tests/Config.in
index 36c111bd200c..58a88a8af182 100644
--- a/package/rt-tests/Config.in
+++ b/package/rt-tests/Config.in
@@ -1,9 +1,10 @@
config BR2_PACKAGE_RT_TESTS
bool "rt-tests"
depends on BR2_TOOLCHAIN_HAS_THREADS
- # Too old uClibc, does not provide priority-inheritance
- # mutexes
- depends on !BR2_avr32
+ # priority-inheritance mutex needs NPTL
+ depends on !BR2_PTHREADS && !BR2_PTHREADS_OLD
+ # no NPTL for these archs
+ depends on !BR2_avr32 && !BR2_xtensa && !BR2_arc
help
Set of utilities for testing the real-time behaviour of a
Linux system.
@@ -23,5 +24,6 @@ config BR2_PACKAGE_RT_TESTS
http://rt.wiki.kernel.org
comment "rt-tests needs a toolchain w/ threads"
- depends on !BR2_avr32
+ depends on !BR2_PTHREADS && !BR2_PTHREADS_OLD
+ depends on !BR2_avr32 && !BR2_xtensa && !BR2_arc
depends on !BR2_TOOLCHAIN_HAS_THREADS
--
1.8.5.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH v2] rt-tests: disable NPTL is missing
2014-01-13 6:56 [Buildroot] [PATCH v2] rt-tests: disable NPTL is missing Baruch Siach
@ 2014-01-13 8:10 ` Thomas Petazzoni
2014-01-13 8:25 ` Baruch Siach
2014-01-13 8:27 ` Peter Korsgaard
2014-01-16 8:25 ` Peter Korsgaard
1 sibling, 2 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2014-01-13 8:10 UTC (permalink / raw)
To: buildroot
Dear Baruch Siach,
On Mon, 13 Jan 2014 08:56:27 +0200, Baruch Siach wrote:
> + # priority-inheritance mutex needs NPTL
> + depends on !BR2_PTHREADS && !BR2_PTHREADS_OLD
No, these symbols are specific to the internal toolchain backend, and
do not make sense for external toolchains. Therefore, they shouldn't be
used for package dependencies.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH v2] rt-tests: disable NPTL is missing
2014-01-13 8:10 ` Thomas Petazzoni
@ 2014-01-13 8:25 ` Baruch Siach
2014-01-13 8:27 ` Peter Korsgaard
1 sibling, 0 replies; 5+ messages in thread
From: Baruch Siach @ 2014-01-13 8:25 UTC (permalink / raw)
To: buildroot
Hi Thomas,
On Mon, Jan 13, 2014 at 04:10:12PM +0800, Thomas Petazzoni wrote:
> On Mon, 13 Jan 2014 08:56:27 +0200, Baruch Siach wrote:
>
> > + # priority-inheritance mutex needs NPTL
> > + depends on !BR2_PTHREADS && !BR2_PTHREADS_OLD
>
> No, these symbols are specific to the internal toolchain backend, and
> do not make sense for external toolchains. Therefore, they shouldn't be
> used for package dependencies.
Well, my v1 patch didn't have this dependency. Do you have any better
suggestion for the NPTL situation?
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH v2] rt-tests: disable NPTL is missing
2014-01-13 8:10 ` Thomas Petazzoni
2014-01-13 8:25 ` Baruch Siach
@ 2014-01-13 8:27 ` Peter Korsgaard
1 sibling, 0 replies; 5+ messages in thread
From: Peter Korsgaard @ 2014-01-13 8:27 UTC (permalink / raw)
To: buildroot
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
> Dear Baruch Siach,
> On Mon, 13 Jan 2014 08:56:27 +0200, Baruch Siach wrote:
>> + # priority-inheritance mutex needs NPTL
>> + depends on !BR2_PTHREADS && !BR2_PTHREADS_OLD
> No, these symbols are specific to the internal toolchain backend, and
> do not make sense for external toolchains. Therefore, they shouldn't be
> used for package dependencies.
Notice that the dependency is !BR_THREADS, E.G. only hide if using the
internal uClibc toolchain with linuxthreads. That I believe is OK.
For external uClibc toolchains we don't know the threads variant, which
is why the 2nd line disables it for the specific archs where we know
NPTL isn't available.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH v2] rt-tests: disable NPTL is missing
2014-01-13 6:56 [Buildroot] [PATCH v2] rt-tests: disable NPTL is missing Baruch Siach
2014-01-13 8:10 ` Thomas Petazzoni
@ 2014-01-16 8:25 ` Peter Korsgaard
1 sibling, 0 replies; 5+ messages in thread
From: Peter Korsgaard @ 2014-01-16 8:25 UTC (permalink / raw)
To: buildroot
>>>>> "Baruch" == Baruch Siach <baruch@tkos.co.il> writes:
> Fixes
> http://autobuild.buildroot.net/results/8aa/8aaa4b56a53241b7342fede568fbc72a7656cc38/.
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
> ---
> v2: exclude linuxthreads-{old,new} for internal toolchains (Peter Korsgaard)
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-01-16 8:25 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-13 6:56 [Buildroot] [PATCH v2] rt-tests: disable NPTL is missing Baruch Siach
2014-01-13 8:10 ` Thomas Petazzoni
2014-01-13 8:25 ` Baruch Siach
2014-01-13 8:27 ` Peter Korsgaard
2014-01-16 8:25 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox