update buildroot to 2017.02.11
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
From 9bbadb7ece1b068465279e7248b3439d443054a6 Mon Sep 17 00:00:00 2001
|
||||
From: Erico Nunes <nunes.erico@gmail.com>
|
||||
Date: Fri, 30 Sep 2016 17:43:08 +0200
|
||||
Subject: [PATCH] rpc-tirpc: disable tirpc_auth_authdes_*create tests
|
||||
|
||||
Due to Buildroot patch 0007-Disable-DES-authentification-support.patch on
|
||||
libtirpc, this library is built without method authdes_create. Any code
|
||||
that uses this library, like the rpc-tirpc testsuite, thus fails to link.
|
||||
|
||||
In the context of Buildroot, instead of disabling ltp-testsuite entirely,
|
||||
just disable the problematic tests.
|
||||
|
||||
Upstream-status: not applicable
|
||||
Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
|
||||
[Erico: Rebase for ltp 20160920]
|
||||
Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
|
||||
---
|
||||
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/Makefile | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/Makefile b/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/Makefile
|
||||
index 45bc8a6..c04a088 100644
|
||||
--- a/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/Makefile
|
||||
+++ b/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/Makefile
|
||||
@@ -19,4 +19,8 @@
|
||||
top_srcdir ?= ../../../../../../..
|
||||
|
||||
include $(top_srcdir)/include/mk/env_pre.mk
|
||||
+
|
||||
+FILTER_OUT_DIRS += tirpc_auth_authdes_seccreate \
|
||||
+ tirpc_auth_authdes_create
|
||||
+
|
||||
include $(top_srcdir)/include/mk/generic_trunk_target.mk
|
||||
--
|
||||
2.7.4
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
From 4ab7dc5fd201318e2a62dbd3ba1680b97034ec65 Mon Sep 17 00:00:00 2001
|
||||
From: Erico Nunes <nunes.erico@gmail.com>
|
||||
Date: Fri, 30 Sep 2016 17:45:03 +0200
|
||||
Subject: [PATCH] uClibc-ng has no profil() support
|
||||
|
||||
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
|
||||
[Erico: Rebase for ltp 20160920]
|
||||
Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
|
||||
---
|
||||
testcases/kernel/syscalls/profil/profil01.c | 9 +++++++++
|
||||
1 file changed, 9 insertions(+)
|
||||
|
||||
diff --git a/testcases/kernel/syscalls/profil/profil01.c b/testcases/kernel/syscalls/profil/profil01.c
|
||||
index 2fc47aa..f8afd57 100644
|
||||
--- a/testcases/kernel/syscalls/profil/profil01.c
|
||||
+++ b/testcases/kernel/syscalls/profil/profil01.c
|
||||
@@ -37,6 +37,9 @@
|
||||
#define PROFIL_BUFLEN (32*1024)
|
||||
|
||||
char *TCID = "profil01";
|
||||
+
|
||||
+#if !defined(__UCLIBC__)
|
||||
+
|
||||
int TST_TOTAL = 1;
|
||||
|
||||
static volatile sig_atomic_t profil_done;
|
||||
@@ -124,3 +127,9 @@ int main(int ac, char *av[])
|
||||
|
||||
tst_exit();
|
||||
}
|
||||
+#else /* systems that dont support profil */
|
||||
+int main(void)
|
||||
+{
|
||||
+ tst_brkm(TCONF, NULL, "system doesn't have profil support");
|
||||
+}
|
||||
+#endif
|
||||
--
|
||||
2.7.4
|
||||
|
||||
@@ -0,0 +1,84 @@
|
||||
From bb966fd9efc3b9bec3ca72b0e72dd760434e0f10 Mon Sep 17 00:00:00 2001
|
||||
From: Erico Nunes <nunes.erico@gmail.com>
|
||||
Date: Fri, 30 Sep 2016 17:45:16 +0200
|
||||
Subject: [PATCH] uClibc-ng need __UCLIBC_SV4_DEPRECATED__ enabled for ustat
|
||||
|
||||
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
|
||||
[Erico: Rebase for ltp 20160920]
|
||||
Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
|
||||
---
|
||||
testcases/kernel/syscalls/ustat/ustat01.c | 12 ++++++++++++
|
||||
testcases/kernel/syscalls/ustat/ustat02.c | 10 ++++++++++
|
||||
2 files changed, 22 insertions(+)
|
||||
|
||||
diff --git a/testcases/kernel/syscalls/ustat/ustat01.c b/testcases/kernel/syscalls/ustat/ustat01.c
|
||||
index 494647b..35e0bb1 100644
|
||||
--- a/testcases/kernel/syscalls/ustat/ustat01.c
|
||||
+++ b/testcases/kernel/syscalls/ustat/ustat01.c
|
||||
@@ -21,7 +21,9 @@
|
||||
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
+#if !defined(__UCLIBC__) || defined(__UCLIBC_SV4_DEPRECATED__)
|
||||
#include <sys/ustat.h>
|
||||
+#endif
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include "test.h"
|
||||
@@ -30,6 +32,9 @@
|
||||
static void setup(void);
|
||||
|
||||
char *TCID = "ustat01";
|
||||
+
|
||||
+#if !defined(__UCLIBC__) || defined(__UCLIBC_SV4_DEPRECATED__)
|
||||
+
|
||||
int TST_TOTAL = 1;
|
||||
|
||||
static dev_t dev_num;
|
||||
@@ -79,3 +84,10 @@ static void setup(void)
|
||||
|
||||
dev_num = buf.st_dev;
|
||||
}
|
||||
+#else /* systems that dont support ustat */
|
||||
+int main(void)
|
||||
+{
|
||||
+ tst_brkm(TCONF, NULL, "system doesn't have ustat support");
|
||||
+}
|
||||
+#endif
|
||||
+
|
||||
diff --git a/testcases/kernel/syscalls/ustat/ustat02.c b/testcases/kernel/syscalls/ustat/ustat02.c
|
||||
index edada31..795c605 100644
|
||||
--- a/testcases/kernel/syscalls/ustat/ustat02.c
|
||||
+++ b/testcases/kernel/syscalls/ustat/ustat02.c
|
||||
@@ -22,7 +22,9 @@
|
||||
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
+#if !defined(__UCLIBC__) || defined(__UCLIBC_SV4_DEPRECATED__)
|
||||
#include <sys/ustat.h>
|
||||
+#endif
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include "test.h"
|
||||
@@ -32,6 +34,8 @@ static void setup(void);
|
||||
|
||||
char *TCID = "ustat02";
|
||||
|
||||
+#if !defined(__UCLIBC__) || defined(__UCLIBC_SV4_DEPRECATED__)
|
||||
+
|
||||
static dev_t invalid_dev = -1;
|
||||
static dev_t root_dev;
|
||||
struct ustat ubuf;
|
||||
@@ -101,3 +105,9 @@ static void setup(void)
|
||||
|
||||
root_dev = buf.st_dev;
|
||||
}
|
||||
+#else /* systems that dont support ustat */
|
||||
+int main(void)
|
||||
+{
|
||||
+ tst_brkm(TCONF, NULL, "system doesn't have ustat support");
|
||||
+}
|
||||
+#endif
|
||||
--
|
||||
2.7.4
|
||||
|
||||
@@ -0,0 +1,157 @@
|
||||
From 780bec6c2742231ca73d4dee51c727815cf857b3 Mon Sep 17 00:00:00 2001
|
||||
From: Erico Nunes <nunes.erico@gmail.com>
|
||||
Date: Fri, 30 Sep 2016 17:45:31 +0200
|
||||
Subject: [PATCH] rusers.h is unused and not available for uClibc-ng / libtirpc
|
||||
|
||||
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
|
||||
[Erico: Rebase for ltp 20160920]
|
||||
Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
|
||||
---
|
||||
.../tests_pack/rpc_suite/rpc/rpc_auth_auth_destroy/rpc_auth_destroy.c | 1 -
|
||||
.../rpc_suite/rpc/rpc_auth_authnone_create/rpc_authnone_create.c | 1 -
|
||||
.../rpc_suite/rpc/rpc_auth_authunix_create/rpc_authunix_create.c | 1 -
|
||||
.../rpc/rpc_auth_authunix_create_default/rpc_authunix_create_default.c | 1 -
|
||||
.../rpc_suite/rpc/rpc_createdestroy_clnttcp_create/rpc_clnttcp_create.c | 1 -
|
||||
.../rpc/rpc_createdestroy_clnttcp_create/rpc_clnttcp_create_limits.c | 1 -
|
||||
.../rpc/rpc_createdestroy_clnttcp_create/rpc_clnttcp_create_stress.c | 1 -
|
||||
.../rpc/rpc_createdestroy_clntudp_bufcreate/rpc_clntudp_bufcreate.c | 1 -
|
||||
.../rpc_createdestroy_clntudp_bufcreate/rpc_clntudp_bufcreate_limits.c | 1 -
|
||||
.../rpc_suite/rpc/rpc_createdestroy_clntudp_create/rpc_clntudp_create.c | 1 -
|
||||
.../rpc/rpc_createdestroy_clntudp_create/rpc_clntudp_create_stress.c | 1 -
|
||||
11 files changed, 11 deletions(-)
|
||||
|
||||
diff --git a/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_auth_auth_destroy/rpc_auth_destroy.c b/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_auth_auth_destroy/rpc_auth_destroy.c
|
||||
index 7f157e1..728c023 100644
|
||||
--- a/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_auth_auth_destroy/rpc_auth_destroy.c
|
||||
+++ b/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_auth_auth_destroy/rpc_auth_destroy.c
|
||||
@@ -30,7 +30,6 @@
|
||||
#include <time.h>
|
||||
#include <rpc/rpc.h>
|
||||
#include <sys/socket.h>
|
||||
-#include <rpcsvc/rusers.h>
|
||||
#include <utmp.h>
|
||||
#include <sys/time.h>
|
||||
#include <netdb.h>
|
||||
diff --git a/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_auth_authnone_create/rpc_authnone_create.c b/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_auth_authnone_create/rpc_authnone_create.c
|
||||
index d9a3111..8d80a5e 100644
|
||||
--- a/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_auth_authnone_create/rpc_authnone_create.c
|
||||
+++ b/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_auth_authnone_create/rpc_authnone_create.c
|
||||
@@ -30,7 +30,6 @@
|
||||
#include <time.h>
|
||||
#include <rpc/rpc.h>
|
||||
#include <sys/socket.h>
|
||||
-#include <rpcsvc/rusers.h>
|
||||
#include <utmp.h>
|
||||
#include <sys/time.h>
|
||||
#include <netdb.h>
|
||||
diff --git a/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_auth_authunix_create/rpc_authunix_create.c b/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_auth_authunix_create/rpc_authunix_create.c
|
||||
index cabffc7..a4d1d6f 100644
|
||||
--- a/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_auth_authunix_create/rpc_authunix_create.c
|
||||
+++ b/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_auth_authunix_create/rpc_authunix_create.c
|
||||
@@ -30,7 +30,6 @@
|
||||
#include <time.h>
|
||||
#include <rpc/rpc.h>
|
||||
#include <sys/socket.h>
|
||||
-#include <rpcsvc/rusers.h>
|
||||
#include <utmp.h>
|
||||
#include <sys/time.h>
|
||||
#include <netdb.h>
|
||||
diff --git a/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_auth_authunix_create_default/rpc_authunix_create_default.c b/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_auth_authunix_create_default/rpc_authunix_create_default.c
|
||||
index 4f10466..863aec7 100644
|
||||
--- a/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_auth_authunix_create_default/rpc_authunix_create_default.c
|
||||
+++ b/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_auth_authunix_create_default/rpc_authunix_create_default.c
|
||||
@@ -30,7 +30,6 @@
|
||||
#include <time.h>
|
||||
#include <rpc/rpc.h>
|
||||
#include <sys/socket.h>
|
||||
-#include <rpcsvc/rusers.h>
|
||||
#include <utmp.h>
|
||||
#include <sys/time.h>
|
||||
#include <netdb.h>
|
||||
diff --git a/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clnttcp_create/rpc_clnttcp_create.c b/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clnttcp_create/rpc_clnttcp_create.c
|
||||
index 290f357..e849468 100644
|
||||
--- a/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clnttcp_create/rpc_clnttcp_create.c
|
||||
+++ b/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clnttcp_create/rpc_clnttcp_create.c
|
||||
@@ -30,7 +30,6 @@
|
||||
#include <time.h>
|
||||
#include <rpc/rpc.h>
|
||||
#include <sys/socket.h>
|
||||
-#include <rpcsvc/rusers.h>
|
||||
#include <utmp.h>
|
||||
#include <sys/time.h>
|
||||
#include <netdb.h>
|
||||
diff --git a/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clnttcp_create/rpc_clnttcp_create_limits.c b/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clnttcp_create/rpc_clnttcp_create_limits.c
|
||||
index 55bac16..8c1800b 100644
|
||||
--- a/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clnttcp_create/rpc_clnttcp_create_limits.c
|
||||
+++ b/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clnttcp_create/rpc_clnttcp_create_limits.c
|
||||
@@ -30,7 +30,6 @@
|
||||
#include <time.h>
|
||||
#include <rpc/rpc.h>
|
||||
#include <sys/socket.h>
|
||||
-#include <rpcsvc/rusers.h>
|
||||
#include <utmp.h>
|
||||
#include <sys/time.h>
|
||||
#include <netdb.h>
|
||||
diff --git a/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clnttcp_create/rpc_clnttcp_create_stress.c b/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clnttcp_create/rpc_clnttcp_create_stress.c
|
||||
index 09d1bf9..384a00d 100644
|
||||
--- a/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clnttcp_create/rpc_clnttcp_create_stress.c
|
||||
+++ b/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clnttcp_create/rpc_clnttcp_create_stress.c
|
||||
@@ -30,7 +30,6 @@
|
||||
#include <time.h>
|
||||
#include <rpc/rpc.h>
|
||||
#include <sys/socket.h>
|
||||
-#include <rpcsvc/rusers.h>
|
||||
#include <utmp.h>
|
||||
#include <sys/time.h>
|
||||
#include <netdb.h>
|
||||
diff --git a/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clntudp_bufcreate/rpc_clntudp_bufcreate.c b/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clntudp_bufcreate/rpc_clntudp_bufcreate.c
|
||||
index 3e15306..285eb21 100644
|
||||
--- a/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clntudp_bufcreate/rpc_clntudp_bufcreate.c
|
||||
+++ b/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clntudp_bufcreate/rpc_clntudp_bufcreate.c
|
||||
@@ -30,7 +30,6 @@
|
||||
#include <time.h>
|
||||
#include <rpc/rpc.h>
|
||||
#include <sys/socket.h>
|
||||
-#include <rpcsvc/rusers.h>
|
||||
#include <utmp.h>
|
||||
#include <sys/time.h>
|
||||
#include <netdb.h>
|
||||
diff --git a/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clntudp_bufcreate/rpc_clntudp_bufcreate_limits.c b/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clntudp_bufcreate/rpc_clntudp_bufcreate_limits.c
|
||||
index a7030a2..1f2690a 100644
|
||||
--- a/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clntudp_bufcreate/rpc_clntudp_bufcreate_limits.c
|
||||
+++ b/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clntudp_bufcreate/rpc_clntudp_bufcreate_limits.c
|
||||
@@ -30,7 +30,6 @@
|
||||
#include <time.h>
|
||||
#include <rpc/rpc.h>
|
||||
#include <sys/socket.h>
|
||||
-#include <rpcsvc/rusers.h>
|
||||
#include <utmp.h>
|
||||
#include <sys/time.h>
|
||||
#include <netdb.h>
|
||||
diff --git a/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clntudp_create/rpc_clntudp_create.c b/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clntudp_create/rpc_clntudp_create.c
|
||||
index 06f4740..faa8ef6 100644
|
||||
--- a/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clntudp_create/rpc_clntudp_create.c
|
||||
+++ b/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clntudp_create/rpc_clntudp_create.c
|
||||
@@ -30,7 +30,6 @@
|
||||
#include <time.h>
|
||||
#include <rpc/rpc.h>
|
||||
#include <sys/socket.h>
|
||||
-#include <rpcsvc/rusers.h>
|
||||
#include <utmp.h>
|
||||
#include <sys/time.h>
|
||||
#include <netdb.h>
|
||||
diff --git a/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clntudp_create/rpc_clntudp_create_stress.c b/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clntudp_create/rpc_clntudp_create_stress.c
|
||||
index ca38aa0..974f5fb 100644
|
||||
--- a/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clntudp_create/rpc_clntudp_create_stress.c
|
||||
+++ b/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clntudp_create/rpc_clntudp_create_stress.c
|
||||
@@ -30,7 +30,6 @@
|
||||
#include <time.h>
|
||||
#include <rpc/rpc.h>
|
||||
#include <sys/socket.h>
|
||||
-#include <rpcsvc/rusers.h>
|
||||
#include <utmp.h>
|
||||
#include <sys/time.h>
|
||||
#include <netdb.h>
|
||||
--
|
||||
2.7.4
|
||||
|
||||
28
bsp/buildroot-2017.02.11/package/ltp-testsuite/Config.in
Normal file
28
bsp/buildroot-2017.02.11/package/ltp-testsuite/Config.in
Normal file
@@ -0,0 +1,28 @@
|
||||
comment "ltp-testsuite needs specific uClibc options, see help"
|
||||
depends on BR2_PACKAGE_LTP_TESTSUITE
|
||||
depends on BR2_TOOLCHAIN_USES_UCLIBC
|
||||
|
||||
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
|
||||
select BR2_PACKAGE_LIBTIRPC if !BR2_TOOLCHAIN_HAS_NATIVE_RPC
|
||||
# does not build, cachectl.h issue
|
||||
depends on !BR2_nios2
|
||||
help
|
||||
The Linux Test Project provides a huge testsuite for Linux.
|
||||
|
||||
The LTP testsuite uses several functions that are considered
|
||||
obsolete, such as sigset() and others. Therefore, the LTP
|
||||
testsuite does not build with Buildroot's default uClibc
|
||||
configuration, and options such as DO_XSI_MATH,
|
||||
UCLIBC_HAS_OBSOLETE_BSD_SIGNAL and UCLIBC_SV4_DEPRECATED
|
||||
are needed.
|
||||
|
||||
http://linux-test-project.github.io
|
||||
|
||||
comment "ltp-testsuite needs a glibc or uClibc toolchain w/ NPTL"
|
||||
depends on !BR2_nios2
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || BR2_TOOLCHAIN_USES_MUSL
|
||||
@@ -0,0 +1,2 @@
|
||||
# From: https://github.com/linux-test-project/ltp/releases/download/20170116/ltp-full-20170116.tar.xz.sha1
|
||||
sha1 b42047fe0d30db9b2c760bd1ab901ecb133835fc ltp-full-20170116.tar.xz
|
||||
@@ -0,0 +1,72 @@
|
||||
################################################################################
|
||||
#
|
||||
# ltp-testsuite
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LTP_TESTSUITE_VERSION = 20170116
|
||||
LTP_TESTSUITE_SOURCE = ltp-full-$(LTP_TESTSUITE_VERSION).tar.xz
|
||||
LTP_TESTSUITE_SITE = https://github.com/linux-test-project/ltp/releases/download/$(LTP_TESTSUITE_VERSION)
|
||||
LTP_TESTSUITE_LICENSE = GPLv2, GPLv2+
|
||||
LTP_TESTSUITE_LICENSE_FILES = COPYING
|
||||
|
||||
# Do not enable Open POSIX testsuite as it doesn't cross-compile
|
||||
# properly: t0 program is built for the host machine. Notice that due
|
||||
# to a bug, --without-open-posix-testsuite actually enables the test
|
||||
# suite.
|
||||
# See https://github.com/linux-test-project/ltp/issues/143 (invalid
|
||||
# autoconf test) and
|
||||
# https://github.com/linux-test-project/ltp/issues/144 (Open POSIX
|
||||
# testsuite not cross-compiling).
|
||||
LTP_TESTSUITE_CONF_OPTS += \
|
||||
--with-realtime-testsuite
|
||||
|
||||
ifeq ($(BR2_LINUX_KERNEL),y)
|
||||
LTP_TESTSUITE_DEPENDENCIES += linux
|
||||
LTP_TESTSUITE_MAKE_ENV += $(LINUX_MAKE_FLAGS)
|
||||
LTP_TESTSUITE_CONF_OPTS += --with-linux-dir=$(LINUX_DIR)
|
||||
else
|
||||
LTP_TESTSUITE_CONF_OPTS += --without-modules
|
||||
endif
|
||||
|
||||
# We change the prefix to a custom one, otherwise we get scripts and
|
||||
# directories directly in /usr, such as /usr/runalltests.sh
|
||||
LTP_TESTSUITE_CONF_OPTS += --prefix=/usr/lib/ltp-testsuite
|
||||
|
||||
# Needs libcap with file attrs which needs attr, so both required
|
||||
ifeq ($(BR2_PACKAGE_LIBCAP)$(BR2_PACKAGE_ATTR),yy)
|
||||
LTP_TESTSUITE_DEPENDENCIES += libcap
|
||||
else
|
||||
LTP_TESTSUITE_CONF_ENV += ac_cv_lib_cap_cap_compare=no
|
||||
endif
|
||||
|
||||
# ltp-testsuite uses <fts.h>, which isn't compatible with largefile
|
||||
# support.
|
||||
LTP_TESTSUITE_CFLAGS = $(filter-out -D_FILE_OFFSET_BITS=64,$(TARGET_CFLAGS))
|
||||
LTP_TESTSUITE_CPPFLAGS = $(filter-out -D_FILE_OFFSET_BITS=64,$(TARGET_CPPFLAGS))
|
||||
LTP_TESTSUITE_LIBS =
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBTIRPC),y)
|
||||
LTP_TESTSUITE_DEPENDENCIES += libtirpc host-pkgconf
|
||||
LTP_TESTSUITE_CFLAGS += "`$(PKG_CONFIG_HOST_BINARY) --cflags libtirpc`"
|
||||
LTP_TESTSUITE_LIBS += "`$(PKG_CONFIG_HOST_BINARY) --libs libtirpc`"
|
||||
endif
|
||||
|
||||
LTP_TESTSUITE_CONF_ENV += \
|
||||
CFLAGS="$(LTP_TESTSUITE_CFLAGS)" \
|
||||
CPPFLAGS="$(LTP_TESTSUITE_CPPFLAGS)" \
|
||||
LIBS="$(LTP_TESTSUITE_LIBS)" \
|
||||
SYSROOT="$(STAGING_DIR)"
|
||||
|
||||
# Requires uClibc fts and bessel support, normally not enabled
|
||||
ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
|
||||
define LTP_TESTSUITE_REMOVE_UNSUPPORTED
|
||||
rm -rf $(@D)/testcases/kernel/controllers/cpuset/
|
||||
rm -rf $(@D)/testcases/misc/math/float/bessel/
|
||||
rm -f $(@D)/testcases/misc/math/float/float_bessel.c
|
||||
endef
|
||||
LTP_TESTSUITE_POST_PATCH_HOOKS += LTP_TESTSUITE_REMOVE_UNSUPPORTED
|
||||
endif
|
||||
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user