1 ################################################################################
5 ################################################################################
7 LTP_TESTSUITE_VERSION
= 20170116
8 LTP_TESTSUITE_SOURCE
= ltp-full-
$(LTP_TESTSUITE_VERSION
).
tar.xz
9 LTP_TESTSUITE_SITE
= https
://github.com
/linux-test-project
/ltp
/releases
/download
/$(LTP_TESTSUITE_VERSION
)
10 LTP_TESTSUITE_LICENSE
= GPLv2
, GPLv2
+
11 LTP_TESTSUITE_LICENSE_FILES
= COPYING
12 LTP_TESTSUITE_CONF_OPTS
+= \
13 --with-open-posix-testsuite \
14 --with-realtime-testsuite
16 ifeq ($(BR2_LINUX_KERNEL
),y
)
17 LTP_TESTSUITE_DEPENDENCIES
+= linux
18 LTP_TESTSUITE_MAKE_ENV
+= $(LINUX_MAKE_FLAGS
)
19 LTP_TESTSUITE_CONF_OPTS
+= --with-linux-dir
=$(LINUX_DIR
)
21 LTP_TESTSUITE_CONF_OPTS
+= --without-modules
24 # We change the prefix to a custom one, otherwise we get scripts and
25 # directories directly in /usr, such as /usr/runalltests.sh
26 LTP_TESTSUITE_CONF_OPTS
+= --prefix=/usr
/lib
/ltp-testsuite
28 # Needs libcap with file attrs which needs attr, so both required
29 ifeq ($(BR2_PACKAGE_LIBCAP
)$(BR2_PACKAGE_ATTR
),yy
)
30 LTP_TESTSUITE_DEPENDENCIES
+= libcap
32 LTP_TESTSUITE_CONF_ENV
+= ac_cv_lib_cap_cap_compare
=no
35 # ltp-testsuite uses <fts.h>, which isn't compatible with largefile
37 LTP_TESTSUITE_CFLAGS
= $(filter-out -D_FILE_OFFSET_BITS
=64,$(TARGET_CFLAGS
))
38 LTP_TESTSUITE_CPPFLAGS
= $(filter-out -D_FILE_OFFSET_BITS
=64,$(TARGET_CPPFLAGS
))
41 ifeq ($(BR2_PACKAGE_LIBTIRPC
),y
)
42 LTP_TESTSUITE_DEPENDENCIES
+= libtirpc host-pkgconf
43 LTP_TESTSUITE_CFLAGS
+= "`$(PKG_CONFIG_HOST_BINARY) --cflags libtirpc`"
44 LTP_TESTSUITE_LIBS
+= "`$(PKG_CONFIG_HOST_BINARY) --libs libtirpc`"
47 LTP_TESTSUITE_CONF_ENV
+= \
48 CFLAGS
="$(LTP_TESTSUITE_CFLAGS)" \
49 CPPFLAGS
="$(LTP_TESTSUITE_CPPFLAGS)" \
50 LIBS
="$(LTP_TESTSUITE_LIBS)" \
51 SYSROOT
="$(STAGING_DIR)"
53 # Requires uClibc fts and bessel support, normally not enabled
54 ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC
),y
)
55 define LTP_TESTSUITE_REMOVE_UNSUPPORTED
56 rm -rf
$(@D
)/testcases
/kernel
/controllers
/cpuset
/
57 rm -rf
$(@D
)/testcases
/misc
/math
/float
/bessel
/
58 rm -f
$(@D
)/testcases
/misc
/math
/float
/float_bessel.c
60 LTP_TESTSUITE_POST_PATCH_HOOKS
+= LTP_TESTSUITE_REMOVE_UNSUPPORTED
64 $(eval
$(autotools-package
))