mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-11-26 23:03:50 -10:00
There was a conflict between musl and kernel headers prior to 5.11, due
to a bug in kernel headers, which was fixed in a85cbe6159ff ("uapi: move
constants from <linux/kernel.h> to <linux/const.h>") in v5.11, and
backported to stable/LTS kernels.
Upsteam ltp-testsuite has been unreceptive to accepting the workaround,
as they argue that the kernel headers have been fixed, and people should
update their toolchains.
However, it is not always practical, or even possible, to update the
toolchain, so lets require kernel headers at least 5.11 for musl-based
toolchains.
Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
[yann.morin.1998@free.fr: reword commit log]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
44 lines
1.3 KiB
Plaintext
44 lines
1.3 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
|
|
# 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 || BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_11
|
|
depends on BR2_PACKAGE_LTP_TESTSUITE_ARCH_SUPPORTS
|
|
select BR2_PACKAGE_LIBTIRPC if !BR2_TOOLCHAIN_HAS_NATIVE_RPC
|
|
select BR2_PACKAGE_MUSL_FTS if !BR2_TOOLCHAIN_USES_GLIBC
|
|
help
|
|
The Linux Test Project provides a huge testsuite for Linux.
|
|
|
|
http://linux-test-project.github.io
|
|
|
|
if BR2_PACKAGE_LTP_TESTSUITE
|
|
|
|
config BR2_PACKAGE_LTP_TESTSUITE_OPEN_POSIX
|
|
bool "Open POSIX testsuite"
|
|
default y
|
|
help
|
|
Test suite for POSIX compliance. Included with the LTP.
|
|
|
|
config BR2_PACKAGE_LTP_TESTSUITE_REALTIME
|
|
bool "Realtime testsuite"
|
|
default y
|
|
help
|
|
Test suite for realtime kernels. Included with the LTP.
|
|
|
|
endif
|
|
|
|
comment "ltp-testsuite needs a toolchain w/ NPTL"
|
|
depends on BR2_PACKAGE_LTP_TESTSUITE_ARCH_SUPPORTS
|
|
depends on BR2_USE_MMU
|
|
depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL
|