1 ################################################################################
5 ################################################################################
7 LTP_TESTSUITE_VERSION
= 20160126
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-power-management-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 # Needs libcap with file attrs which needs attr, so both required
25 ifeq ($(BR2_PACKAGE_LIBCAP
)$(BR2_PACKAGE_ATTR
),yy
)
26 LTP_TESTSUITE_DEPENDENCIES
+= libcap
28 LTP_TESTSUITE_CONF_ENV
+= ac_cv_lib_cap_cap_compare
=no
31 # ltp-testsuite uses <fts.h>, which isn't compatible with largefile
33 LTP_TESTSUITE_CFLAGS
= $(filter-out -D_FILE_OFFSET_BITS
=64,$(TARGET_CFLAGS
))
34 LTP_TESTSUITE_CPPFLAGS
= $(filter-out -D_FILE_OFFSET_BITS
=64,$(TARGET_CPPFLAGS
))
37 ifeq ($(BR2_PACKAGE_LIBTIRPC
),y
)
38 LTP_TESTSUITE_DEPENDENCIES
+= libtirpc host-pkgconf
39 LTP_TESTSUITE_CFLAGS
+= "`$(PKG_CONFIG_HOST_BINARY) --cflags libtirpc`"
40 LTP_TESTSUITE_LIBS
+= "`$(PKG_CONFIG_HOST_BINARY) --libs libtirpc`"
43 LTP_TESTSUITE_CONF_ENV
+= \
44 CFLAGS
="$(LTP_TESTSUITE_CFLAGS)" \
45 CPPFLAGS
="$(LTP_TESTSUITE_CPPFLAGS)" \
46 LIBS
="$(LTP_TESTSUITE_LIBS)" \
47 SYSROOT
="$(STAGING_DIR)"
49 # Requires uClibc fts and bessel support, normally not enabled
50 ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC
),y
)
51 define LTP_TESTSUITE_REMOVE_UNSUPPORTED
52 rm -rf
$(@D
)/testcases
/kernel
/controllers
/cpuset
/
53 rm -rf
$(@D
)/testcases
/misc
/math
/float
/bessel
/
54 rm -f
$(@D
)/testcases
/misc
/math
/float
/float_bessel.c
56 LTP_TESTSUITE_POST_PATCH_HOOKS
+= LTP_TESTSUITE_REMOVE_UNSUPPORTED
60 $(eval
$(autotools-package
))