[Buildroot] [PATCH] rt-tests: Make it available only when NPLT is selected
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Mon Apr 2 14:25:32 UTC 2012
Le Mon, 2 Apr 2012 15:15:54 +0100,
Markos Chandras <markos.chandras at imgtec.com> a écrit :
> rt-tests package requires some definitions (like PTHREAD_PRIO_INHERIT
> etc) which are only available in Native Posix Linux Thread
> implementation.
>
> Signed-off-by: Markos Chandras <markos.chandras at imgtec.com>
I agree there is a problem, but unfortunately this solution will break
external toolchains and crosstool-ng toolchains that use glibc or
eglibc. Those toolchains have NPTL support, but BR2_PTHREADS_NATIVE is
not defined when using such toolchains.
I guess the real solution would be something like:
config BR2_TOOLCHAIN_HAS_NPTL
bool
and then for internal backend, select this option is
BR2_PTHREADS_NATIVE is enabled. For external backend, select this
option when glibc/eglibc is used, and add an option when the uClibc
library is used. Some similar solution must be found for the
crosstool-NG backend.
Regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
More information about the buildroot
mailing list