kumquat-buildroot/package/ltp-testsuite/Config.in
Romain Naour 583f59702b package/ltp-testsuite: refine architecture dependency
As stated in commit [1], sparc toolchains doesn't have
any of __sync_*() family of functions implementation.

When __sync_add_and_fetch() is missing, ltp fallback to a local
implementation of tst_atomic_add_return() specific for each
supported architecture.
But there is none for sparc.

So add a dependency on BR2_TOOLCHAIN_HAS_SYNC_4 except for
architectures where a specific implementation is provided
in ltp-testsuite.

Fixes:
http://autobuild.buildroot.net/results/d7c/d7c3b145a64ed3916b89ddb4090050f3b9205e37

[1] 6856e417da

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2017-05-10 23:38:28 +02:00

32 lines
1.0 KiB
Plaintext

config BR2_PACKAGE_LTP_TESTSUITE_ARCH_SUPPORTS
bool
# Needs __sync*() built-ins for 4-byte data, except on a few
# architectures for which a specific implementation is
# provided in ltp-testsuite
default y if BR2_TOOLCHAIN_HAS_SYNC_4
default y if BR2_arc
default y if BR2_i386
default y if BR2_powerpc
default y if BR2_powepc64
default y if BR2_powerpc64le
default y if BR2_x86_64
# does not build on nios2, cachectl.h issue
depends on !BR2_nios2
config BR2_PACKAGE_LTP_TESTSUITE
bool "ltp-testsuite"
depends on BR2_USE_MMU # fork()
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
depends on !BR2_TOOLCHAIN_USES_MUSL
depends on BR2_PACKAGE_LTP_TESTSUITE_ARCH_SUPPORTS
select BR2_PACKAGE_LIBTIRPC if !BR2_TOOLCHAIN_HAS_NATIVE_RPC
help
The Linux Test Project provides a huge testsuite for Linux.
http://linux-test-project.github.io
comment "ltp-testsuite needs a glibc or uClibc toolchain w/ NPTL"
depends on BR2_PACKAGE_LTP_TESTSUITE_ARCH_SUPPORTS
depends on BR2_USE_MMU
depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || BR2_TOOLCHAIN_USES_MUSL