1config BR2_PACKAGE_LTP_TESTSUITE_ARCH_SUPPORTS
2	bool
3	# Needs __sync*() built-ins for 4-byte data, except on a few
4	# architectures for which a specific implementation is
5	# provided in ltp-testsuite
6	default y if BR2_TOOLCHAIN_HAS_SYNC_4
7	default y if BR2_arc
8	# does not build on nios2, cachectl.h issue
9	depends on !BR2_nios2
10
11config BR2_PACKAGE_LTP_TESTSUITE
12	bool "ltp-testsuite"
13	depends on BR2_USE_MMU # fork()
14	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
15	depends on !BR2_TOOLCHAIN_USES_MUSL || BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_11
16	depends on BR2_PACKAGE_LTP_TESTSUITE_ARCH_SUPPORTS
17	select BR2_PACKAGE_LIBTIRPC if !BR2_TOOLCHAIN_HAS_NATIVE_RPC
18	select BR2_PACKAGE_MUSL_FTS if !BR2_TOOLCHAIN_USES_GLIBC
19	help
20	  The Linux Test Project provides a huge testsuite for Linux.
21
22	  http://linux-test-project.github.io
23
24if BR2_PACKAGE_LTP_TESTSUITE
25
26config BR2_PACKAGE_LTP_TESTSUITE_OPEN_POSIX
27	bool "Open POSIX testsuite"
28	default y
29	help
30	  Test suite for POSIX compliance. Included with the LTP.
31
32config BR2_PACKAGE_LTP_TESTSUITE_REALTIME
33	bool "Realtime testsuite"
34	default y
35	help
36	  Test suite for realtime kernels. Included with the LTP.
37
38endif
39
40comment "ltp-testsuite needs a toolchain w/ NPTL"
41	depends on BR2_PACKAGE_LTP_TESTSUITE_ARCH_SUPPORTS
42	depends on BR2_USE_MMU
43	depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL
44