diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2017-03-15 15:25:11 +0000 |
---|---|---|
committer | Denys Dmytriyenko <denys@ti.com> | 2017-03-17 16:21:41 -0400 |
commit | 83eae355c7dcad25468d711dcedf473067842db9 (patch) | |
tree | 7c9475aa9e29d0aee82a629b6b5c439c8c90ea90 /recipes-kernel | |
parent | e826ebe803e2ba0d87f53e8a923f2b306f3a1c96 (diff) | |
download | meta-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')
-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 | ||
5 | SRC_URI = "https://www.kernel.org/pub/linux/kernel/v4.x/linux-${PV}.tar.xz" | 5 | SRC_URI = "https://www.kernel.org/pub/linux/kernel/v4.x/linux-${PV}.tar.xz" |
6 | 6 | ||
7 | SRC_URI[md5sum] = "9a78fa2eb6c68ca5a40ed5af08142599" | 7 | SRC_URI[md5sum] = "0a68ef3615c64bd5ee54a3320e46667d" |
8 | SRC_URI[sha256sum] = "401d7c8fef594999a460d10c72c5a94e9c2e1022f16795ec51746b0d165418b2" | 8 | SRC_URI[sha256sum] = "029098dcffab74875e086ae970e3828456838da6e0ba22ce3f64ef764f3d7f1a" |
9 | 9 | ||
10 | S = "${WORKDIR}/linux-${PV}" | 10 | S = "${WORKDIR}/linux-${PV}" |
11 | 11 | ||
12 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 12 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
13 | 13 | ||
14 | DEPENDS = "popt rsync-native" | 14 | DEPENDS = "libcap popt rsync-native" |
15 | 15 | ||
16 | inherit kernel-arch | 16 | inherit kernel-arch |
17 | 17 | ||
18 | TARGETS = "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" | 19 | TARGETS = " \ |
20 | 20 | ${@bb.utils.contains_any("TARGET_ARCH", [ "x86", "x86-64" ], "breakpoints", "", d)} \ | |
21 | # Arch specific tests | 21 | capabilities \ |
22 | TARGETS_append_x86 = " breakpoints ipc x86" | 22 | cpu-hotplug \ |
23 | TARGETS_append_x86-64 = " breakpoints ipc x86" | 23 | efivarfs \ |
24 | TARGETS_append_powerpc = " powerpc" | 24 | exec \ |
25 | TARGETS_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 | ||
27 | EXTRA_OEMAKE += "-C tools/testing/selftests TARGETS="${TARGETS}" INSTALL_PATH=${D}${bindir}/kselftests CC="${CC}"" | 53 | EXTRA_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 | ||
48 | PACKAGE_BEFORE_PN = "${PN}-breakpoints ${PN}-cpu-hotplug ${PN}-efivarfs ${PN}-exec ${PN}-firmware ${PN}-ftrace \ | 74 | PACKAGE_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 | ||
52 | FILES_${PN}-breakpoints = "${bindir}/kselftests/breakpoints" | 108 | FILES_${PN}-breakpoints = "${bindir}/kselftests/breakpoints" |
109 | FILES_${PN}-capabilities = "${bindir}/kselftests/capabilities" | ||
53 | FILES_${PN}-cpu-hotplug = "${bindir}/kselftests/cpu-hotplug" | 110 | FILES_${PN}-cpu-hotplug = "${bindir}/kselftests/cpu-hotplug" |
54 | FILES_${PN}-efivarfs = "${bindir}/kselftests/efivarfs" | 111 | FILES_${PN}-efivarfs = "${bindir}/kselftests/efivarfs" |
55 | FILES_${PN}-exec = "${bindir}/kselftests/exec" | 112 | FILES_${PN}-exec = "${bindir}/kselftests/exec" |
56 | FILES_${PN}-firmware = "${bindir}/kselftests/firmware" | 113 | FILES_${PN}-firmware = "${bindir}/kselftests/firmware" |
57 | FILES_${PN}-ftrace = "${bindir}/kselftests/ftrace" | 114 | FILES_${PN}-ftrace = "${bindir}/kselftests/ftrace" |
115 | FILES_${PN}-futex = "${bindir}/kselftests/futex" | ||
58 | FILES_${PN}-ipc = "${bindir}/kselftests/ipc" | 116 | FILES_${PN}-ipc = "${bindir}/kselftests/ipc" |
59 | FILES_${PN}-kcmp = "${bindir}/kselftests/kcmp" | 117 | FILES_${PN}-kcmp = "${bindir}/kselftests/kcmp" |
118 | FILES_${PN}-lib = "${bindir}/kselftests/lib" | ||
119 | FILES_${PN}-membarrier = "${bindir}/kselftests/membarrier" | ||
60 | FILES_${PN}-memfd = "${bindir}/kselftests/memfd" | 120 | FILES_${PN}-memfd = "${bindir}/kselftests/memfd" |
61 | FILES_${PN}-memory-hotplug = "${bindir}/kselftests/memory-hotplug" | 121 | FILES_${PN}-memory-hotplug = "${bindir}/kselftests/memory-hotplug" |
62 | FILES_${PN}-mount = "${bindir}/kselftests/mount" | 122 | FILES_${PN}-mount = "${bindir}/kselftests/mount" |
63 | FILES_${PN}-mqueue = "${bindir}/kselftests/mqueue" | 123 | FILES_${PN}-mqueue = "${bindir}/kselftests/mqueue" |
64 | FILES_${PN}-net = "${bindir}/kselftests/net" | 124 | FILES_${PN}-net = "${bindir}/kselftests/net" |
125 | FILES_${PN}-nsfs = "${bindir}/kselftests/nsfs" | ||
65 | FILES_${PN}-powerpc = "${bindir}/kselftests/powerpc" | 126 | FILES_${PN}-powerpc = "${bindir}/kselftests/powerpc" |
127 | FILES_${PN}-pstore = "${bindir}/kselftests/pstore" | ||
66 | FILES_${PN}-ptrace = "${bindir}/kselftests/ptrace" | 128 | FILES_${PN}-ptrace = "${bindir}/kselftests/ptrace" |
129 | FILES_${PN}-seccomp = "${bindir}/kselftests/seccomp" | ||
130 | FILES_${PN}-sigaltstack = "${bindir}/kselftests/sigaltstack" | ||
67 | FILES_${PN}-size = "${bindir}/kselftests/size" | 131 | FILES_${PN}-size = "${bindir}/kselftests/size" |
132 | FILES_${PN}-static-keys = "${bindir}/kselftests/static_keys" | ||
68 | FILES_${PN}-sysctl = "${bindir}/kselftests/sysctl" | 133 | FILES_${PN}-sysctl = "${bindir}/kselftests/sysctl" |
69 | FILES_${PN}-timers = "${bindir}/kselftests/timers" | 134 | FILES_${PN}-timers = "${bindir}/kselftests/timers" |
70 | FILES_${PN}-user = "${bindir}/kselftests/user" | 135 | FILES_${PN}-user = "${bindir}/kselftests/user" |
71 | FILES_${PN}-vm = "${bindir}/kselftests/vm" | 136 | FILES_${PN}-vm = "${bindir}/kselftests/vm" |
72 | FILES_${PN}-x86 = "${bindir}/kselftests/x86" | 137 | FILES_${PN}-x86 = "${bindir}/kselftests/x86" |
138 | FILES_${PN}-zram = "${bindir}/kselftests/zram" | ||
73 | FILES_${PN}-dbg += "${bindir}/kselftests/*/.debug" | 139 | FILES_${PN}-dbg += "${bindir}/kselftests/*/.debug" |
74 | 140 | ||
75 | RDEPENDS_${PN}-cpu-hotplug += "bash" | 141 | RDEPENDS_${PN}-cpu-hotplug += "bash" |
@@ -77,9 +143,36 @@ RDEPENDS_${PN}-efivarfs += "bash" | |||
77 | RDEPENDS_${PN}-memory-hotplug += "bash" | 143 | RDEPENDS_${PN}-memory-hotplug += "bash" |
78 | RDEPENDS_${PN}-net += "bash" | 144 | RDEPENDS_${PN}-net += "bash" |
79 | RDEPENDS_${PN}-vm += "bash" | 145 | RDEPENDS_${PN}-vm += "bash" |
80 | RDEPENDS_${PN} += "bash ${PN}-cpu-hotplug ${PN}-efivarfs ${PN}-exec ${PN}-firmware ${PN}-ftrace \ | 146 | RDEPENDS_${PN}-zram += "bash" |
81 | ${PN}-kcmp ${PN}-memfd ${PN}-memory-hotplug ${PN}-mount ${PN}-mqueue ${PN}-net ${PN}-ptrace \ | 147 | RDEPENDS_${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 | ||
84 | RDEPENDS_${PN}_append_x86 = " ${PN}-breakpoints ${PN}-ipc ${PN}-x86" | 177 | RDEPENDS_${PN}_append_x86 = " ${PN}-breakpoints ${PN}-ipc ${PN}-x86" |
85 | RDEPENDS_${PN}_append_x86-64 = " ${PN}-breakpoints ${PN}-ipc ${PN}-x86" | 178 | RDEPENDS_${PN}_append_x86-64 = " ${PN}-breakpoints ${PN}-ipc ${PN}-x86" |