diff options
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2018-02-25 22:55:05 -0500 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2018-03-15 14:22:49 +0000 |
commit | d7bf8c17eca8f8c89898a7794462c773c449e983 (patch) | |
tree | d18618fca85ca5f0c077032cc7b009344b60f663 /import-layers/yocto-poky/meta/recipes-extended/ltp/ltp | |
parent | e2b5abdc9f28cdf8578e5b9be803c8e697443c20 (diff) | |
download | blackbird-openbmc-d7bf8c17eca8f8c89898a7794462c773c449e983.tar.gz blackbird-openbmc-d7bf8c17eca8f8c89898a7794462c773c449e983.zip |
Yocto 2.4
Move OpenBMC to Yocto 2.4(rocko)
Tested: Built and verified Witherspoon and Palmetto images
Change-Id: I12057b18610d6fb0e6903c60213690301e9b0c67
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'import-layers/yocto-poky/meta/recipes-extended/ltp/ltp')
25 files changed, 214 insertions, 154 deletions
diff --git a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0002-Add-knob-to-control-whether-numa-support-should-be-c.patch b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0002-Add-knob-to-control-whether-numa-support-should-be-c.patch index 0684beeee..98650205d 100644 --- a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0002-Add-knob-to-control-whether-numa-support-should-be-c.patch +++ b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0002-Add-knob-to-control-whether-numa-support-should-be-c.patch @@ -9,6 +9,7 @@ during build depending upong numa being staged or not Signed-off-by: Roy.Li <rongqing.li@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> +Upstream-Status: Pending --- m4/ltp-numa.m4 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0003-Add-knob-to-control-tirpc-support.patch b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0003-Add-knob-to-control-tirpc-support.patch index bf1176fc4..5cf1e05f7 100644 --- a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0003-Add-knob-to-control-tirpc-support.patch +++ b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0003-Add-knob-to-control-tirpc-support.patch @@ -8,6 +8,7 @@ does not yet work. Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org> Signed-off-by: Khem Raj <raj.khem@gmail.com> +Upstream-Status: Pending --- configure.ac | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0004-build-Add-option-to-select-libc-implementation.patch b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0004-build-Add-option-to-select-libc-implementation.patch index 2de936304..cf744639c 100644 --- a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0004-build-Add-option-to-select-libc-implementation.patch +++ b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0004-build-Add-option-to-select-libc-implementation.patch @@ -10,6 +10,7 @@ different and does not implement all GNU extentions Disable tests specifically not building _yet_ on musl based systems Signed-off-by: Khem Raj <raj.khem@gmail.com> +Upstream-Status: Pending --- Makefile | 5 +++++ testcases/kernel/Makefile | 5 ++++- diff --git a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0005-kernel-controllers-Link-with-libfts-explicitly-on-mu.patch b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0005-kernel-controllers-Link-with-libfts-explicitly-on-mu.patch index 8dab1ed2e..b9390e2c8 100644 --- a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0005-kernel-controllers-Link-with-libfts-explicitly-on-mu.patch +++ b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0005-kernel-controllers-Link-with-libfts-explicitly-on-mu.patch @@ -7,6 +7,7 @@ musl does not implement fts like glibc and therefore it depends on external implementation for all fts APIs Signed-off-by: Khem Raj <raj.khem@gmail.com> +Upstream-Status: Pending --- testcases/kernel/controllers/Makefile.inc | 3 +++ testcases/kernel/controllers/cpuset/Makefile.inc | 3 +++ diff --git a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0006-fix-PATH_MAX-undeclared-when-building-with-musl.patch b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0006-fix-PATH_MAX-undeclared-when-building-with-musl.patch deleted file mode 100644 index 8874b9574..000000000 --- a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0006-fix-PATH_MAX-undeclared-when-building-with-musl.patch +++ /dev/null @@ -1,30 +0,0 @@ -From 32644bde4d33b677614534ec37030e57883b8e15 Mon Sep 17 00:00:00 2001 -From: Dengke Du <dengke.du@windriver.com> -Date: Thu, 9 Feb 2017 16:41:12 +0800 -Subject: [PATCH 1/3] fix PATH_MAX undeclared when building with musl - -fix PATH_MAX undeclared when building with musl. - -Signed-off-by: Dengke Du <dengke.du@windriver.com> -Upstream-Status: Pending ---- - include/tst_test.h | 3 +++ - 1 file changed, 3 insertions(+) - -diff --git a/include/tst_test.h b/include/tst_test.h -index 7ff33b2..9779c0e 100644 ---- a/include/tst_test.h -+++ b/include/tst_test.h -@@ -19,6 +19,9 @@ - #define TST_TEST_H__ - - #include <unistd.h> -+#ifndef __GLIBC__ -+#include <limits.h> -+#endif - - #include "tst_common.h" - #include "tst_res_flags.h" --- -2.7.4 - diff --git a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0007-fix-__WORDSIZE-undeclared-when-building-with-musl.patch b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0007-fix-__WORDSIZE-undeclared-when-building-with-musl.patch index 8d0e73992..2f4ca6375 100644 --- a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0007-fix-__WORDSIZE-undeclared-when-building-with-musl.patch +++ b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0007-fix-__WORDSIZE-undeclared-when-building-with-musl.patch @@ -1,30 +1,31 @@ -From a2639bd0f0d3f9f3049ee33e6710fed06225f54f Mon Sep 17 00:00:00 2001 +From d1a27570457fb6e1d6bafe81bfa0f3507b137e32 Mon Sep 17 00:00:00 2001 From: Dengke Du <dengke.du@windriver.com> Date: Thu, 9 Feb 2017 18:20:58 +0800 -Subject: [PATCH 1/2] fix __WORDSIZE undeclared when building with musl +Subject: [PATCH] fix __WORDSIZE undeclared when building with musl fix __WORDSIZE undeclared when building with musl. +Upstream-Status: Submitted [https://github.com/linux-test-project/ltp/pull/177] + Signed-off-by: Dengke Du <dengke.du@windriver.com> -Upstream-Status: Pending --- include/old/test.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/old/test.h b/include/old/test.h -index d492560..263e92e 100644 +index b36764d83..cc6f1b551 100644 --- a/include/old/test.h +++ b/include/old/test.h -@@ -58,6 +58,9 @@ - #include "tst_clone.h" - #include "old_device.h" - #include "old_tmpdir.h" +@@ -44,6 +44,9 @@ + #include <string.h> + #include <stdlib.h> + #include <stdint.h> +#ifndef __GLIBC__ +#include <bits/reg.h> +#endif - /* - * Ensure that NUMSIGS is defined. + #include "usctest.h" + -- -2.7.4 +2.11.0 diff --git a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0008-Check-if-__GLIBC_PREREQ-is-defined-before-using-it.patch b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0008-Check-if-__GLIBC_PREREQ-is-defined-before-using-it.patch index 41f262362..e325ce4e4 100644 --- a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0008-Check-if-__GLIBC_PREREQ-is-defined-before-using-it.patch +++ b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0008-Check-if-__GLIBC_PREREQ-is-defined-before-using-it.patch @@ -8,6 +8,7 @@ defined or not. Signed-off-by: Khem Raj <raj.khem@gmail.com> +Upstream-Status: Pending --- testcases/kernel/syscalls/accept4/accept4_01.c | 9 ++++- testcases/kernel/syscalls/getcpu/getcpu01.c | 40 +++++++++++++++++++++- diff --git a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0009-fix-redefinition-of-struct-msgbuf-error-building-wit.patch b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0009-fix-redefinition-of-struct-msgbuf-error-building-wit.patch index 6886c55e7..dd7d28319 100644 --- a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0009-fix-redefinition-of-struct-msgbuf-error-building-wit.patch +++ b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0009-fix-redefinition-of-struct-msgbuf-error-building-wit.patch @@ -1,18 +1,19 @@ -From 2d7ea67e8eaa41cbd6816f7ab654254b40b530a1 Mon Sep 17 00:00:00 2001 +From bf5dd2932200e0199a38f3028d3bef2253f32e38 Mon Sep 17 00:00:00 2001 From: Dengke Du <dengke.du@windriver.com> Date: Thu, 9 Feb 2017 17:17:37 +0800 Subject: [PATCH] fix redefinition of 'struct msgbuf' error building with musl When building with musl the file "sys/msg.h" already contain 'struct msgbuf' +Upstream-Status: Submitted [https://github.com/linux-test-project/ltp/pull/177] + Signed-off-by: Dengke Du <dengke.du@windriver.com> -Upstream-Status: Pending --- testcases/kernel/syscalls/ipc/msgrcv/msgrcv08.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/testcases/kernel/syscalls/ipc/msgrcv/msgrcv08.c b/testcases/kernel/syscalls/ipc/msgrcv/msgrcv08.c -index a757c0d..e023114 100644 +index a757c0d18..e023114d2 100644 --- a/testcases/kernel/syscalls/ipc/msgrcv/msgrcv08.c +++ b/testcases/kernel/syscalls/ipc/msgrcv/msgrcv08.c @@ -47,11 +47,13 @@ const char *TCID = "msgrcv08"; @@ -31,5 +32,5 @@ index a757c0d..e023114 100644 static void msr(int msqid) { -- -2.7.4 +2.11.0 diff --git a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0010-replace-__BEGIN_DECLS-and-__END_DECLS.patch b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0010-replace-__BEGIN_DECLS-and-__END_DECLS.patch index 5b0c444be..b9fce880f 100644 --- a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0010-replace-__BEGIN_DECLS-and-__END_DECLS.patch +++ b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0010-replace-__BEGIN_DECLS-and-__END_DECLS.patch @@ -10,6 +10,8 @@ Include <asm-generic/types.h> to get __s32 definitions its not a generally available typedef Signed-off-by: Khem Raj <raj.khem@gmail.com> + +Upstream-Status: Pending --- testcases/kernel/syscalls/epoll2/include/epoll.h | 8 ++++++-- utils/sctp/include/netinet/sctp.h | 9 +++++++-- diff --git a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0011-Rename-sigset-variable-to-sigset1.patch b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0011-Rename-sigset-variable-to-sigset1.patch index 4ac14dc85..25f6ba78a 100644 --- a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0011-Rename-sigset-variable-to-sigset1.patch +++ b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0011-Rename-sigset-variable-to-sigset1.patch @@ -7,6 +7,8 @@ sigset API from signal.h is shadowed by this name conflict Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Dengke Du <dengke.du@windriver.com> + +Upstream-Status: Pending --- testcases/kernel/mem/shmt/shmt04.c | 10 +++++----- testcases/kernel/mem/shmt/shmt06.c | 10 +++++----- diff --git a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0012-fix-faccessat01.c-build-fails-with-security-flags.patch b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0012-fix-faccessat01.c-build-fails-with-security-flags.patch deleted file mode 100644 index 2600bd60d..000000000 --- a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0012-fix-faccessat01.c-build-fails-with-security-flags.patch +++ /dev/null @@ -1,70 +0,0 @@ -From 32f563008f95975d26d1c4fcb266c72c56f934be Mon Sep 17 00:00:00 2001 -From: Dengke Du <dengke.du@windriver.com> -Date: Wed, 22 Feb 2017 01:21:55 -0500 -Subject: [PATCH] fix faccessat01.c build fails with security flags - -When the distro is poky-lsb, fix the following error: - -| In file included from ../../../../include/old/test.h:47:0, -| from faccessat01.c:44: -| faccessat01.c: In function 'setup': -| ../../../../include/old/old_safe_file_ops.h:55:27: error: format not a string literal and no format arguments [-Werror=format-security] -| (path), (fmt), ## __VA_ARGS__) -| ^ -| faccessat01.c:132:2: note: in expansion of macro 'SAFE_FILE_PRINTF' -| SAFE_FILE_PRINTF(cleanup, testfile, testfile); -| ^~~~~~~~~~~~~~~~ -| ../../../../include/old/old_safe_file_ops.h:55:27: error: format not a string literal and no format arguments [-Werror=format-security] -| (path), (fmt), ## __VA_ARGS__) -| ^ -| faccessat01.c:133:2: note: in expansion of macro 'SAFE_FILE_PRINTF' -| SAFE_FILE_PRINTF(cleanup, testfile2, testfile2); -| ^~~~~~~~~~~~~~~~ - -This is because in macro "SAFE_FILE_PRINTF", its third argument should be a -format arguments, but in file faccessat01.c, it passed the same argument to -macro "SAFE_FILE_PRINTF", so it results in the fails. It should pass the format -string to the third argument. - -The same for file fchmodat01.c. - -Signed-off-by: Dengke Du <dengke.du@windriver.com> -Upstream-Status: Pending ---- - testcases/kernel/syscalls/faccessat/faccessat01.c | 4 ++-- - testcases/kernel/syscalls/fchmodat/fchmodat01.c | 4 ++-- - 2 files changed, 4 insertions(+), 4 deletions(-) - -diff --git a/testcases/kernel/syscalls/faccessat/faccessat01.c b/testcases/kernel/syscalls/faccessat/faccessat01.c -index 622dfd3..1ca90e9 100644 ---- a/testcases/kernel/syscalls/faccessat/faccessat01.c -+++ b/testcases/kernel/syscalls/faccessat/faccessat01.c -@@ -129,8 +129,8 @@ void setup(void) - fds[0] = SAFE_OPEN(cleanup, pathname, O_DIRECTORY); - fds[1] = fds[4] = fds[0]; - -- SAFE_FILE_PRINTF(cleanup, testfile, testfile); -- SAFE_FILE_PRINTF(cleanup, testfile2, testfile2); -+ SAFE_FILE_PRINTF(cleanup, testfile, "faccessattestfile%d.txt"); -+ SAFE_FILE_PRINTF(cleanup, testfile2, "%s/faccessattestfile%d.txt"); - - fds[2] = SAFE_OPEN(cleanup, testfile3, O_CREAT | O_RDWR, 0600); - -diff --git a/testcases/kernel/syscalls/fchmodat/fchmodat01.c b/testcases/kernel/syscalls/fchmodat/fchmodat01.c -index 6bf66d8..89d072a 100644 ---- a/testcases/kernel/syscalls/fchmodat/fchmodat01.c -+++ b/testcases/kernel/syscalls/fchmodat/fchmodat01.c -@@ -127,8 +127,8 @@ void setup(void) - fds[0] = SAFE_OPEN(cleanup, pathname, O_DIRECTORY); - fds[1] = fds[4] = fds[0]; - -- SAFE_FILE_PRINTF(cleanup, testfile, testfile); -- SAFE_FILE_PRINTF(cleanup, testfile2, testfile2); -+ SAFE_FILE_PRINTF(cleanup, testfile, "fchmodattest%d.txt"); -+ SAFE_FILE_PRINTF(cleanup, testfile2, "%s/fchmodattest%d.txt"); - - fds[2] = SAFE_OPEN(cleanup, testfile3, O_CREAT | O_RDWR, 0600); - fds[3] = 100; --- -2.8.1 - diff --git a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0018-guard-mallocopt-with-__GLIBC__.patch b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0018-guard-mallocopt-with-__GLIBC__.patch index 5198fe9f4..a79763d00 100644 --- a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0018-guard-mallocopt-with-__GLIBC__.patch +++ b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0018-guard-mallocopt-with-__GLIBC__.patch @@ -6,6 +6,7 @@ Subject: [PATCH 18/32] guard mallocopt() with __GLIBC__ mallocopt is not available on non glibc implementations Signed-off-by: Khem Raj <raj.khem@gmail.com> +Upstream-Status: Pending --- utils/benchmark/ebizzy-0.3/ebizzy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0020-getdents-define-getdents-getdents64-only-for-glibc.patch b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0020-getdents-define-getdents-getdents64-only-for-glibc.patch index 0e4e4586c..7060a64b1 100644 --- a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0020-getdents-define-getdents-getdents64-only-for-glibc.patch +++ b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0020-getdents-define-getdents-getdents64-only-for-glibc.patch @@ -7,6 +7,8 @@ getdents/getdents64 are implemented in musl and when we define static functions with same name, it errors out. Signed-off-by: Khem Raj <raj.khem@gmail.com> + +Upstream-Status: Pending --- testcases/kernel/syscalls/getdents/getdents.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0021-Define-_GNU_SOURCE-for-MREMAP_MAYMOVE-definition.patch b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0021-Define-_GNU_SOURCE-for-MREMAP_MAYMOVE-definition.patch index c8cbe580c..3e79c9f29 100644 --- a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0021-Define-_GNU_SOURCE-for-MREMAP_MAYMOVE-definition.patch +++ b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0021-Define-_GNU_SOURCE-for-MREMAP_MAYMOVE-definition.patch @@ -10,6 +10,8 @@ Fixes errors like error: 'MREMAP_MAYMOVE' undeclared (first use in this function) Signed-off-by: Khem Raj <raj.khem@gmail.com> + +Upstream-Status: Pending --- testcases/kernel/syscalls/mremap/mremap01.c | 4 +++- testcases/kernel/syscalls/mremap/mremap02.c | 2 ++ diff --git a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0023-ptrace-Use-int-instead-of-enum-__ptrace_request.patch b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0023-ptrace-Use-int-instead-of-enum-__ptrace_request.patch index 4680c03d4..529f4ed30 100644 --- a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0023-ptrace-Use-int-instead-of-enum-__ptrace_request.patch +++ b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0023-ptrace-Use-int-instead-of-enum-__ptrace_request.patch @@ -6,6 +6,8 @@ Subject: [PATCH 23/32] ptrace: Use int instead of enum __ptrace_request __ptrace_request is only available with glibc Signed-off-by: Khem Raj <raj.khem@gmail.com> + +Upstream-Status: Pending --- testcases/kernel/syscalls/ptrace/ptrace03.c | 4 ++++ testcases/kernel/syscalls/ptrace/spawn_ptrace_child.h | 4 ++++ diff --git a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0024-rt_sigaction-rt_sigprocmark-Define-_GNU_SOURCE.patch b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0024-rt_sigaction-rt_sigprocmark-Define-_GNU_SOURCE.patch index 03c67a52f..03aa45df8 100644 --- a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0024-rt_sigaction-rt_sigprocmark-Define-_GNU_SOURCE.patch +++ b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0024-rt_sigaction-rt_sigprocmark-Define-_GNU_SOURCE.patch @@ -7,6 +7,8 @@ Fixes musl build failure e.g. error: 'SA_NOMASK' undeclared here (not in a function) Signed-off-by: Khem Raj <raj.khem@gmail.com> + +Upstream-Status: Pending --- testcases/kernel/syscalls/rt_sigaction/rt_sigaction01.c | 1 + testcases/kernel/syscalls/rt_sigaction/rt_sigaction02.c | 2 +- diff --git a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0025-mc_gethost-include-sys-types.h.patch b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0025-mc_gethost-include-sys-types.h.patch index aad3cb037..afcba63e1 100644 --- a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0025-mc_gethost-include-sys-types.h.patch +++ b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0025-mc_gethost-include-sys-types.h.patch @@ -7,6 +7,8 @@ Fix build on musl error: unknown type name 'u_char' Signed-off-by: Khem Raj <raj.khem@gmail.com> + +Upstream-Status: Pending --- testcases/network/multicast/mc_gethost/mc_gethost.c | 1 + 1 file changed, 1 insertion(+) diff --git a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0026-crash01-Define-_GNU_SOURCE.patch b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0026-crash01-Define-_GNU_SOURCE.patch index 58b8ed4d4..f65fad12d 100644 --- a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0026-crash01-Define-_GNU_SOURCE.patch +++ b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0026-crash01-Define-_GNU_SOURCE.patch @@ -7,6 +7,8 @@ Fixes musl build errors like error: 'SA_NOMASK' undeclared (first use in this function) Signed-off-by: Khem Raj <raj.khem@gmail.com> + +Upstream-Status: Pending --- testcases/misc/crash/crash01.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0027-sysconf01-Use-_SC_2_C_VERSION-conditionally.patch b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0027-sysconf01-Use-_SC_2_C_VERSION-conditionally.patch index f75e33bd1..adf6f2741 100644 --- a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0027-sysconf01-Use-_SC_2_C_VERSION-conditionally.patch +++ b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0027-sysconf01-Use-_SC_2_C_VERSION-conditionally.patch @@ -7,6 +7,8 @@ _SC_2_C_VERSION is not available on musl Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Dengke Du <dengke.du@windriver.com> + +Upstream-Status: Pending --- testcases/kernel/syscalls/sysconf/sysconf01.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0028-rt_sigaction.h-Use-sighandler_t-instead-of-__sighand.patch b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0028-rt_sigaction.h-Use-sighandler_t-instead-of-__sighand.patch index b26aa133e..c730d46e6 100644 --- a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0028-rt_sigaction.h-Use-sighandler_t-instead-of-__sighand.patch +++ b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0028-rt_sigaction.h-Use-sighandler_t-instead-of-__sighand.patch @@ -8,6 +8,8 @@ When _GNU_SOURCE is used then both typedefs are same and using sighandler_t makes it work on musl too Signed-off-by: Khem Raj <raj.khem@gmail.com> + +Upstream-Status: Pending --- include/lapi/rt_sigaction.h | 2 +- testcases/kernel/syscalls/rt_sigsuspend/Makefile | 3 +++ diff --git a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch index c5fac9b04..efa6d060a 100644 --- a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch +++ b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch @@ -8,6 +8,8 @@ e.g. musl does not implement the _NP mutex types Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Dengke Du <dengke.du@windriver.com> + +Upstream-Status: Pending --- lib/tst_res.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0034-periodic_output.patch b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0034-periodic_output.patch index 59caefe43..c2ef899cc 100644 --- a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0034-periodic_output.patch +++ b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0034-periodic_output.patch @@ -1,4 +1,7 @@ -Add periodic output for long time test. +From 5a77e2bdc083f4f842a8ba7c2db1a7ac6e5f0664 Mon Sep 17 00:00:00 2001 +From: Dengke Du <dengke.du@windriver.com> +Date: Wed, 31 May 2017 21:26:05 -0400 +Subject: [PATCH] Add periodic output for long time test. This is needed in context of having scripts running ltp tests and waiting with a timeout for the output of the tests. @@ -6,20 +9,26 @@ waiting with a timeout for the output of the tests. Signed-off-by: Tudor Florea <tudor.florea@enea.com> Upstream-Status: Pending -diff -ruN a/testcases/kernel/controllers/memcg/stress/memcg_stress_test.sh b/testcases/kernel/controllers/memcg/stress/memcg_stress_test.sh ---- a/testcases/kernel/controllers/memcg/stress/memcg_stress_test.sh 2013-11-08 15:54:09.515049081 +0100 -+++ b/testcases/kernel/controllers/memcg/stress/memcg_stress_test.sh 2013-11-08 22:32:15.587370406 +0100 -@@ -37,7 +37,8 @@ +Signed-off-by: Dengke Du <dengke.du@windriver.com> +--- + .../kernel/controllers/memcg/stress/memcg_stress_test.sh | 11 ++++++++--- + 1 file changed, 8 insertions(+), 3 deletions(-) + +diff --git a/testcases/kernel/controllers/memcg/stress/memcg_stress_test.sh b/testcases/kernel/controllers/memcg/stress/memcg_stress_test.sh +index af1a708..084e628 100755 +--- a/testcases/kernel/controllers/memcg/stress/memcg_stress_test.sh ++++ b/testcases/kernel/controllers/memcg/stress/memcg_stress_test.sh +@@ -37,7 +37,8 @@ if [ "x$(grep -w memory /proc/cgroups | cut -f4)" != "x1" ]; then exit 0 fi --RUN_TIME=$(( 60 * 60 )) +-RUN_TIME=$(( 15 * 60 )) +ONE_MINUTE=60 -+RUN_TIME=60 ++RUN_TIME=15 cleanup() { -@@ -62,7 +63,7 @@ +@@ -62,7 +63,7 @@ do_mount() # $1 - Number of cgroups # $2 - Allocated how much memory in one process? in MB # $3 - The interval to touch memory in a process @@ -28,16 +37,19 @@ diff -ruN a/testcases/kernel/controllers/memcg/stress/memcg_stress_test.sh b/tes run_stress() { do_mount; -@@ -81,7 +82,11 @@ +@@ -81,7 +82,11 @@ run_stress() eval /bin/kill -s SIGUSR1 \$pid$i 2> /dev/null done - sleep $4 + for i in $(seq 0 $(($4-1))) + do -+ eval echo "Started $i min ago. Still alive... " ++ eval echo "Started $i min ago. Still alive... " + sleep $ONE_MINUTE + done for i in $(seq 0 $(($1-1))) do +-- +2.8.1 + diff --git a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0037-ltp-fix-PAGE_SIZE-redefinition-and-O_CREAT-undeclear.patch b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0037-ltp-fix-PAGE_SIZE-redefinition-and-O_CREAT-undeclear.patch new file mode 100644 index 000000000..c8738ae0d --- /dev/null +++ b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0037-ltp-fix-PAGE_SIZE-redefinition-and-O_CREAT-undeclear.patch @@ -0,0 +1,113 @@ +From a9d5595d2fa2ab252f1cabf63f4b65c3efbafeb9 Mon Sep 17 00:00:00 2001 +From: Dengke Du <dengke.du@windriver.com> +Date: Thu, 10 Aug 2017 15:27:03 +0800 +Subject: [PATCH] ltp: fix PAGE_SIZE redefinition and O_CREAT undeclear when + build with musl + +error 1: + +|stack_clash.c:50:22: error: expected identifier or '(' before numeric constant +| static unsigned long PAGE_SIZE; + +This is because the musl libc already contain PAGE_SIZE definition in limits.c, +we can check it here: + + https://git.musl-libc.org/cgit/musl/tree/include/limits.h#n43 + +error 2: + +|ck01.c:157:22: error: 'O_CREAT' undeclared (first use in this function); did you mean 'S_IREAD'? +| fd = open(filename, O_CREAT | O_TRUNC | O_RDWR, 0644); +| ^~~~~~~ +| S_IREAD + +This is because the musl libc put those in fcntl.h, so we should include that +file. + +Upstream-Status: Submitted [ https://github.com/linux-test-project/ltp/pull/194 ] + +Signed-off-by: Dengke Du <dengke.du@windriver.com> +--- + testcases/cve/stack_clash.c | 12 ++++++------ + testcases/kernel/syscalls/flock/flock01.c | 1 + + testcases/kernel/syscalls/flock/flock02.c | 1 + + 3 files changed, 8 insertions(+), 6 deletions(-) + +diff --git a/testcases/cve/stack_clash.c b/testcases/cve/stack_clash.c +index 2ef1a82..7c45991 100644 +--- a/testcases/cve/stack_clash.c ++++ b/testcases/cve/stack_clash.c +@@ -47,7 +47,7 @@ + #include "tst_test.h" + #include "tst_safe_stdio.h" + +-static unsigned long PAGE_SIZE; ++static unsigned long PAGE_SIZE_tst; + static unsigned long PAGE_MASK; + static unsigned long GAP_PAGES = 256; + static unsigned long THRESHOLD; +@@ -66,7 +66,7 @@ void exhaust_stack_into_sigsegv(void) + exhaust_stack_into_sigsegv(); + } + +-#define MAPPED_LEN PAGE_SIZE ++#define MAPPED_LEN PAGE_SIZE_tst + static unsigned long mapped_addr; + + void segv_handler(int sig, siginfo_t *info, void *data LTP_ATTRIBUTE_UNUSED) +@@ -150,7 +150,7 @@ void do_child(void) + stack_t signal_stack; + struct sigaction segv_sig = {.sa_sigaction = segv_handler, .sa_flags = SA_ONSTACK|SA_SIGINFO}; + void *map; +- unsigned long gap = GAP_PAGES * PAGE_SIZE; ++ unsigned long gap = GAP_PAGES * PAGE_SIZE_tst; + struct rlimit rlimit; + + rlimit.rlim_cur = rlimit.rlim_max = RLIM_INFINITY; +@@ -200,8 +200,8 @@ void setup(void) + { + char buf[4096], *p; + +- PAGE_SIZE = sysconf(_SC_PAGESIZE); +- PAGE_MASK = ~(PAGE_SIZE - 1); ++ PAGE_SIZE_tst = sysconf(_SC_PAGESIZE); ++ PAGE_MASK = ~(PAGE_SIZE_tst - 1); + + buf[4095] = '\0'; + SAFE_FILE_SCANF("/proc/cmdline", "%4095[^\n]", buf); +@@ -214,7 +214,7 @@ void setup(void) + tst_res(TINFO, "stack_guard_gap = %ld", GAP_PAGES); + } + +- THRESHOLD = (GAP_PAGES - 1) * PAGE_SIZE; ++ THRESHOLD = (GAP_PAGES - 1) * PAGE_SIZE_tst; + + { + volatile int *a = alloca(128); +diff --git a/testcases/kernel/syscalls/flock/flock01.c b/testcases/kernel/syscalls/flock/flock01.c +index 3e17be4..06d89e3 100644 +--- a/testcases/kernel/syscalls/flock/flock01.c ++++ b/testcases/kernel/syscalls/flock/flock01.c +@@ -69,6 +69,7 @@ + #include <stdio.h> + #include <sys/wait.h> + #include <sys/file.h> ++#include <fcntl.h> + #include "test.h" + + void setup(void); +diff --git a/testcases/kernel/syscalls/flock/flock02.c b/testcases/kernel/syscalls/flock/flock02.c +index 414df68..9ddf729 100644 +--- a/testcases/kernel/syscalls/flock/flock02.c ++++ b/testcases/kernel/syscalls/flock/flock02.c +@@ -75,6 +75,7 @@ + #include <sys/types.h> + #include <sys/file.h> + #include <sys/wait.h> ++#include <fcntl.h> + #include <errno.h> + #include <stdio.h> + #include "test.h" +-- +2.7.4 + diff --git a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0038-commands-gdb01-replace-stdin-with-dev-null.patch b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0038-commands-gdb01-replace-stdin-with-dev-null.patch new file mode 100644 index 000000000..f7c0a4bf1 --- /dev/null +++ b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0038-commands-gdb01-replace-stdin-with-dev-null.patch @@ -0,0 +1,34 @@ +From 2f6ab8f694b26b7f2566624f6d1f23788d6ab8a0 Mon Sep 17 00:00:00 2001 +From: Jan Stancek <jstancek@redhat.com> +Date: Mon, 11 Sep 2017 12:57:58 +0200 +Subject: [PATCH] commands/gdb01: replace stdin with /dev/null + +If this testcase runs as background process, gdb can receive +SIGTTOU and then testcase gets stuck. + +Signed-off-by: Jan Stancek <jstancek@redhat.com> + +Upstream-Status: Backport +[https://github.com/linux-test-project/ltp/commit/2f6ab8f694b26b7f2566624f6d1f23788d6ab8a0] + +Signed-off-by: Yi Zhao <yi.zhao@windriver.com> +--- + testcases/commands/gdb/gdb01.sh | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/testcases/commands/gdb/gdb01.sh b/testcases/commands/gdb/gdb01.sh +index 07ae36f..e3a5b51 100755 +--- a/testcases/commands/gdb/gdb01.sh ++++ b/testcases/commands/gdb/gdb01.sh +@@ -29,7 +29,7 @@ TST_NEEDS_CMDS="gdb /bin/cat" + + simple_test() + { +- gdb /bin/cat -ex "run /etc/passwd" -ex quit ++ gdb /bin/cat -ex "run /etc/passwd" -ex quit < /dev/null + RC=$? + if [ $RC -eq 0 ] ; then + tst_res TPASS "gdb attached to process and completed run" +-- +2.7.4 + diff --git a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0039-fcntl-fix-the-time-def-to-use-time_t.patch b/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0039-fcntl-fix-the-time-def-to-use-time_t.patch deleted file mode 100644 index c0c1dadd0..000000000 --- a/import-layers/yocto-poky/meta/recipes-extended/ltp/ltp/0039-fcntl-fix-the-time-def-to-use-time_t.patch +++ /dev/null @@ -1,29 +0,0 @@ -From 7bce3d223494803cb32897cabe66119076e53d89 Mon Sep 17 00:00:00 2001 -From: Dengke Du <dengke.du@windriver.com> -Date: Wed, 8 Feb 2017 16:23:51 +0800 -Subject: [PATCH 5/5] fcntl: fix the time() def to use time_t - -This fixes the build on X32, where long is 32-bit rather than 64-bit. - -Signed-off-by: Christopher Larson <chris_larson@mentor.com> -Signed-off-by: Dengke Du <dengke.du@windriver.com> ---- - testcases/kernel/syscalls/fcntl/fcntl14.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/testcases/kernel/syscalls/fcntl/fcntl14.c b/testcases/kernel/syscalls/fcntl/fcntl14.c -index c61eb24..99e3867 100644 ---- a/testcases/kernel/syscalls/fcntl/fcntl14.c -+++ b/testcases/kernel/syscalls/fcntl/fcntl14.c -@@ -775,7 +775,7 @@ void dochild(void) - - void run_test(int file_flag, int file_mode, int seek, int start, int end) - { -- extern long time(); -+ extern time_t time(); - - fail = 0; - --- -2.7.4 - |