nilfs-utils: need NPTL threads

nilfs-utils use clock_nanosleep(), which comes with NPTL threads. We
keep the dependency on threads, because sem_open() is really related
to thread support. The dependency on NPTL for clock_nanosleep() might
be lifted in the future, as it seems to be a bug in uClibc-ng.

Signed-off-by: Kurt Van Dijck <dev.kurt@vandijck-laurijssen.be>
[Thomas: update Config.in comment.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Kurt Van Dijck 2018-01-04 11:10:51 +01:00 committed by Thomas Petazzoni
parent 60f492040a
commit 9f2ced651b

View File

@ -1,6 +1,7 @@
config BR2_PACKAGE_NILFS_UTILS
bool "nilfs-utils"
depends on BR2_TOOLCHAIN_HAS_THREADS # sem_open()
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # clock_nanosleep()
depends on BR2_USE_MMU # util-linux libmount, libblkid
select BR2_PACKAGE_UTIL_LINUX_LIBUUID
select BR2_PACKAGE_UTIL_LINUX_LIBBLKID
@ -11,5 +12,6 @@ config BR2_PACKAGE_NILFS_UTILS
https://github.com/nilfs-dev/nilfs-utils
comment "nilfs-utils needs a toolchain w/ threads"
depends on !BR2_TOOLCHAIN_HAS_THREADS
comment "nilfs-utils needs a toolchain w/ threads, NPTL"
depends on !BR2_TOOLCHAIN_HAS_THREADS || \
!BR2_TOOLCHAIN_HAS_THREADS_NPTL