summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/kselftests
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2017-03-15 15:25:11 +0000
committerDenys Dmytriyenko <denys@ti.com>2017-03-17 16:21:41 -0400
commit83eae355c7dcad25468d711dcedf473067842db9 (patch)
tree7c9475aa9e29d0aee82a629b6b5c439c8c90ea90 /recipes-kernel/kselftests
parente826ebe803e2ba0d87f53e8a923f2b306f3a1c96 (diff)
downloadmeta-ti-83eae355c7dcad25468d711dcedf473067842db9.tar.gz
kselftests: update to 4.9
* Adjust md5sum/sha256sum for the updated tarball * Add libpcap dependency, needed by vm/mlock-random-test * Rewrite TARGETS as a list (easier to copy/paste/update) and filter out arch specific tests using bb.utils.contains_any() * Add new tests introduced with 4.9 : capabilities, futex, lib, membarrier, nsfs, pstore, seccomp, sigalstack, static_keys, zram. * Adjust the packages list for the new tests. Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-kernel/kselftests')
-rw-r--r--recipes-kernel/kselftests/kselftests_4.9.bb (renamed from recipes-kernel/kselftests/kselftests_4.4.bb)127
1 files changed, 110 insertions, 17 deletions
diff --git a/recipes-kernel/kselftests/kselftests_4.4.bb b/recipes-kernel/kselftests/kselftests_4.9.bb
index 7f9def7d..3b1e43ee 100644
--- a/recipes-kernel/kselftests/kselftests_4.4.bb
+++ b/recipes-kernel/kselftests/kselftests_4.9.bb
@@ -4,25 +4,51 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
4 4
5SRC_URI = "https://www.kernel.org/pub/linux/kernel/v4.x/linux-${PV}.tar.xz" 5SRC_URI = "https://www.kernel.org/pub/linux/kernel/v4.x/linux-${PV}.tar.xz"
6 6
7SRC_URI[md5sum] = "9a78fa2eb6c68ca5a40ed5af08142599" 7SRC_URI[md5sum] = "0a68ef3615c64bd5ee54a3320e46667d"
8SRC_URI[sha256sum] = "401d7c8fef594999a460d10c72c5a94e9c2e1022f16795ec51746b0d165418b2" 8SRC_URI[sha256sum] = "029098dcffab74875e086ae970e3828456838da6e0ba22ce3f64ef764f3d7f1a"
9 9
10S = "${WORKDIR}/linux-${PV}" 10S = "${WORKDIR}/linux-${PV}"
11 11
12PACKAGE_ARCH = "${MACHINE_ARCH}" 12PACKAGE_ARCH = "${MACHINE_ARCH}"
13 13
14DEPENDS = "popt rsync-native" 14DEPENDS = "libcap popt rsync-native"
15 15
16inherit kernel-arch 16inherit kernel-arch
17 17
18TARGETS = "cpu-hotplug efivarfs exec firmware ftrace kcmp memfd memory-hotplug \ 18# Filter out arch specific tests
19 mount mqueue net ptrace size sysctl timers user vm" 19TARGETS = " \
20 20 ${@bb.utils.contains_any("TARGET_ARCH", [ "x86", "x86-64" ], "breakpoints", "", d)} \
21# Arch specific tests 21 capabilities \
22TARGETS_append_x86 = " breakpoints ipc x86" 22 cpu-hotplug \
23TARGETS_append_x86-64 = " breakpoints ipc x86" 23 efivarfs \
24TARGETS_append_powerpc = " powerpc" 24 exec \
25TARGETS_append_powerpc64 = " powerpc" 25 firmware \
26 ftrace \
27 futex \
28 ${@bb.utils.contains_any("TARGET_ARCH", [ "x86", "x86-64" ], "ipc", "", d)} \
29 kcmp \
30 lib \
31 membarrier \
32 memfd \
33 memory-hotplug \
34 mount \
35 mqueue \
36 net \
37 nsfs \
38 ${@bb.utils.contains_any("TARGET_ARCH", [ "powerpc", "powerpc64" ], "powerpc", "", d)} \
39 pstore \
40 ptrace \
41 seccomp \
42 sigaltstack \
43 size \
44 static_keys \
45 sysctl \
46 timers \
47 user \
48 vm \
49 ${@bb.utils.contains_any("TARGET_ARCH", [ "x86", "x86-64" ], "x86", "", d)} \
50 zram \
51"
26 52
27EXTRA_OEMAKE += "-C tools/testing/selftests TARGETS="${TARGETS}" INSTALL_PATH=${D}${bindir}/kselftests CC="${CC}"" 53EXTRA_OEMAKE += "-C tools/testing/selftests TARGETS="${TARGETS}" INSTALL_PATH=${D}${bindir}/kselftests CC="${CC}""
28 54
@@ -45,31 +71,71 @@ do_install () {
45 chown -R root:root ${D} 71 chown -R root:root ${D}
46} 72}
47 73
48PACKAGE_BEFORE_PN = "${PN}-breakpoints ${PN}-cpu-hotplug ${PN}-efivarfs ${PN}-exec ${PN}-firmware ${PN}-ftrace \ 74PACKAGE_BEFORE_PN = " \
49 ${PN}-ipc ${PN}-kcmp ${PN}-memfd ${PN}-memory-hotplug ${PN}-mount ${PN}-mqueue ${PN}-net ${PN}-powerpc \ 75 ${PN}-breakpoints \
50 ${PN}-ptrace ${PN}-size ${PN}-sysctl ${PN}-timers ${PN}-user ${PN}-vm ${PN}-x86" 76 ${PN}-capabilities \
77 ${PN}-cpu-hotplug \
78 ${PN}-efivarfs \
79 ${PN}-exec \
80 ${PN}-firmware \
81 ${PN}-ftrace \
82 ${PN}-futex \
83 ${PN}-ipc \
84 ${PN}-kcmp \
85 ${PN}-lib \
86 ${PN}-membarrier \
87 ${PN}-memfd \
88 ${PN}-memory-hotplug \
89 ${PN}-mount \
90 ${PN}-mqueue \
91 ${PN}-net \
92 ${PN}-nsfs \
93 ${PN}-powerpc \
94 ${PN}-pstore \
95 ${PN}-ptrace \
96 ${PN}-seccomp \
97 ${PN}-sigaltstack \
98 ${PN}-size \
99 ${PN}-static-keys \
100 ${PN}-sysctl \
101 ${PN}-timers \
102 ${PN}-user \
103 ${PN}-vm \
104 ${PN}-x86 \
105 ${PN}-zram \
106"
51 107
52FILES_${PN}-breakpoints = "${bindir}/kselftests/breakpoints" 108FILES_${PN}-breakpoints = "${bindir}/kselftests/breakpoints"
109FILES_${PN}-capabilities = "${bindir}/kselftests/capabilities"
53FILES_${PN}-cpu-hotplug = "${bindir}/kselftests/cpu-hotplug" 110FILES_${PN}-cpu-hotplug = "${bindir}/kselftests/cpu-hotplug"
54FILES_${PN}-efivarfs = "${bindir}/kselftests/efivarfs" 111FILES_${PN}-efivarfs = "${bindir}/kselftests/efivarfs"
55FILES_${PN}-exec = "${bindir}/kselftests/exec" 112FILES_${PN}-exec = "${bindir}/kselftests/exec"
56FILES_${PN}-firmware = "${bindir}/kselftests/firmware" 113FILES_${PN}-firmware = "${bindir}/kselftests/firmware"
57FILES_${PN}-ftrace = "${bindir}/kselftests/ftrace" 114FILES_${PN}-ftrace = "${bindir}/kselftests/ftrace"
115FILES_${PN}-futex = "${bindir}/kselftests/futex"
58FILES_${PN}-ipc = "${bindir}/kselftests/ipc" 116FILES_${PN}-ipc = "${bindir}/kselftests/ipc"
59FILES_${PN}-kcmp = "${bindir}/kselftests/kcmp" 117FILES_${PN}-kcmp = "${bindir}/kselftests/kcmp"
118FILES_${PN}-lib = "${bindir}/kselftests/lib"
119FILES_${PN}-membarrier = "${bindir}/kselftests/membarrier"
60FILES_${PN}-memfd = "${bindir}/kselftests/memfd" 120FILES_${PN}-memfd = "${bindir}/kselftests/memfd"
61FILES_${PN}-memory-hotplug = "${bindir}/kselftests/memory-hotplug" 121FILES_${PN}-memory-hotplug = "${bindir}/kselftests/memory-hotplug"
62FILES_${PN}-mount = "${bindir}/kselftests/mount" 122FILES_${PN}-mount = "${bindir}/kselftests/mount"
63FILES_${PN}-mqueue = "${bindir}/kselftests/mqueue" 123FILES_${PN}-mqueue = "${bindir}/kselftests/mqueue"
64FILES_${PN}-net = "${bindir}/kselftests/net" 124FILES_${PN}-net = "${bindir}/kselftests/net"
125FILES_${PN}-nsfs = "${bindir}/kselftests/nsfs"
65FILES_${PN}-powerpc = "${bindir}/kselftests/powerpc" 126FILES_${PN}-powerpc = "${bindir}/kselftests/powerpc"
127FILES_${PN}-pstore = "${bindir}/kselftests/pstore"
66FILES_${PN}-ptrace = "${bindir}/kselftests/ptrace" 128FILES_${PN}-ptrace = "${bindir}/kselftests/ptrace"
129FILES_${PN}-seccomp = "${bindir}/kselftests/seccomp"
130FILES_${PN}-sigaltstack = "${bindir}/kselftests/sigaltstack"
67FILES_${PN}-size = "${bindir}/kselftests/size" 131FILES_${PN}-size = "${bindir}/kselftests/size"
132FILES_${PN}-static-keys = "${bindir}/kselftests/static_keys"
68FILES_${PN}-sysctl = "${bindir}/kselftests/sysctl" 133FILES_${PN}-sysctl = "${bindir}/kselftests/sysctl"
69FILES_${PN}-timers = "${bindir}/kselftests/timers" 134FILES_${PN}-timers = "${bindir}/kselftests/timers"
70FILES_${PN}-user = "${bindir}/kselftests/user" 135FILES_${PN}-user = "${bindir}/kselftests/user"
71FILES_${PN}-vm = "${bindir}/kselftests/vm" 136FILES_${PN}-vm = "${bindir}/kselftests/vm"
72FILES_${PN}-x86 = "${bindir}/kselftests/x86" 137FILES_${PN}-x86 = "${bindir}/kselftests/x86"
138FILES_${PN}-zram = "${bindir}/kselftests/zram"
73FILES_${PN}-dbg += "${bindir}/kselftests/*/.debug" 139FILES_${PN}-dbg += "${bindir}/kselftests/*/.debug"
74 140
75RDEPENDS_${PN}-cpu-hotplug += "bash" 141RDEPENDS_${PN}-cpu-hotplug += "bash"
@@ -77,9 +143,36 @@ RDEPENDS_${PN}-efivarfs += "bash"
77RDEPENDS_${PN}-memory-hotplug += "bash" 143RDEPENDS_${PN}-memory-hotplug += "bash"
78RDEPENDS_${PN}-net += "bash" 144RDEPENDS_${PN}-net += "bash"
79RDEPENDS_${PN}-vm += "bash" 145RDEPENDS_${PN}-vm += "bash"
80RDEPENDS_${PN} += "bash ${PN}-cpu-hotplug ${PN}-efivarfs ${PN}-exec ${PN}-firmware ${PN}-ftrace \ 146RDEPENDS_${PN}-zram += "bash"
81 ${PN}-kcmp ${PN}-memfd ${PN}-memory-hotplug ${PN}-mount ${PN}-mqueue ${PN}-net ${PN}-ptrace \ 147RDEPENDS_${PN} += "bash \
82 ${PN}-size ${PN}-sysctl ${PN}-timers ${PN}-user ${PN}-vm" 148 ${PN}-capabilities \
149 ${PN}-cpu-hotplug \
150 ${PN}-efivarfs \
151 ${PN}-exec \
152 ${PN}-firmware \
153 ${PN}-ftrace \
154 ${PN}-futex \
155 ${PN}-kcmp \
156 ${PN}-lib \
157 ${PN}-membarrier \
158 ${PN}-memfd \
159 ${PN}-memory-hotplug \
160 ${PN}-mount \
161 ${PN}-mqueue \
162 ${PN}-net \
163 ${PN}-nsfs \
164 ${PN}-pstore \
165 ${PN}-ptrace \
166 ${PN}-seccomp \
167 ${PN}-sigaltstack \
168 ${PN}-size \
169 ${PN}-static-keys \
170 ${PN}-sysctl \
171 ${PN}-timers \
172 ${PN}-user \
173 ${PN}-vm \
174 ${PN}-zram \
175"
83 176
84RDEPENDS_${PN}_append_x86 = " ${PN}-breakpoints ${PN}-ipc ${PN}-x86" 177RDEPENDS_${PN}_append_x86 = " ${PN}-breakpoints ${PN}-ipc ${PN}-x86"
85RDEPENDS_${PN}_append_x86-64 = " ${PN}-breakpoints ${PN}-ipc ${PN}-x86" 178RDEPENDS_${PN}_append_x86-64 = " ${PN}-breakpoints ${PN}-ipc ${PN}-x86"