summaryrefslogtreecommitdiffstats
path: root/recipes-kernel
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denys@ti.com>2015-08-12 05:28:58 +0000
committerDenys Dmytriyenko <denys@ti.com>2015-08-11 23:33:07 -0400
commitf55ca0fc55ce72ea5b55527f6a2c67a989b7740d (patch)
tree0812c1f890e2966eebe90ab54dacc43b1faea768 /recipes-kernel
parentd49ed0e9ff8b3d378751d9473414be742f38d83b (diff)
downloadmeta-ti-f55ca0fc55ce72ea5b55527f6a2c67a989b7740d.tar.gz
kselftests: add 4.1 version of Kernel Selftest suite
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-kernel')
-rw-r--r--recipes-kernel/kselftests/kselftests_4.1.bb86
1 files changed, 86 insertions, 0 deletions
diff --git a/recipes-kernel/kselftests/kselftests_4.1.bb b/recipes-kernel/kselftests/kselftests_4.1.bb
new file mode 100644
index 00000000..d917fb55
--- /dev/null
+++ b/recipes-kernel/kselftests/kselftests_4.1.bb
@@ -0,0 +1,86 @@
1SUMMARY = "Linux Kernel Selftests"
2LICENSE = "GPLv2"
3LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
4
5SRC_URI = "https://www.kernel.org/pub/linux/kernel/v4.x/linux-${PV}.tar.xz"
6
7SRC_URI[md5sum] = "fe9dc0f6729f36400ea81aa41d614c37"
8SRC_URI[sha256sum] = "caf51f085aac1e1cea4d00dbbf3093ead07b551fc07b31b2a989c05f8ea72d9f"
9
10S = "${WORKDIR}/linux-${PV}"
11
12DEPENDS = "virtual/kernel popt"
13
14inherit kernel-arch
15
16TARGETS = "cpu-hotplug efivarfs exec firmware ftrace kcmp memfd memory-hotplug \
17 mount mqueue net ptrace size sysctl timers user vm"
18
19# Arch specific tests
20TARGETS_append_x86 = " breakpoints ipc x86"
21TARGETS_append_x86-64 = " breakpoints ipc x86"
22TARGETS_append_powerpc = " powerpc"
23TARGETS_append_powerpc64 = " powerpc"
24
25EXTRA_OEMAKE += "-C tools/testing/selftests TARGETS="${TARGETS}" INSTALL_PATH=${D}${bindir}/kselftests CC="${CC}""
26
27# Their Makefiles are so sloppy, let's clean up a bit
28do_configure () {
29 sed "s|^CC := .*||g" -i ${S}/tools/testing/selftests/lib.mk
30 sed "s|^CC = .*||g" -i ${S}/tools/testing/selftests/timers/Makefile
31 sed "s|^CC = .*||g" -i ${S}/tools/testing/selftests/memfd/Makefile
32 sed "s|^CC := .*||g" -i ${S}/tools/testing/selftests/powerpc/switch_endian/Makefile
33 sed "s|gcc|\$(CC)|g" -i ${S}/tools/testing/selftests/breakpoints/Makefile
34 sed "s|^LDFLAGS += -lrt -lpthread|LDLIBS += -lrt -lpthread|g" -i ${S}/tools/testing/selftests/timers/Makefile
35}
36
37do_compile () {
38 oe_runmake
39}
40
41do_install () {
42 oe_runmake install
43}
44
45PACKAGE_BEFORE_PN = "${PN}-breakpoints ${PN}-cpu-hotplug ${PN}-efivarfs ${PN}-exec ${PN}-firmware ${PN}-ftrace \
46 ${PN}-ipc ${PN}-kcmp ${PN}-memfd ${PN}-memory-hotplug ${PN}-mount ${PN}-mqueue ${PN}-net ${PN}-powerpc \
47 ${PN}-ptrace ${PN}-size ${PN}-sysctl ${PN}-timers ${PN}-user ${PN}-vm ${PN}-x86"
48
49FILES_${PN}-breakpoints = "${bindir}/kselftests/breakpoints"
50FILES_${PN}-cpu-hotplug = "${bindir}/kselftests/cpu-hotplug"
51FILES_${PN}-efivarfs = "${bindir}/kselftests/efivarfs"
52FILES_${PN}-exec = "${bindir}/kselftests/exec"
53FILES_${PN}-firmware = "${bindir}/kselftests/firmware"
54FILES_${PN}-ftrace = "${bindir}/kselftests/ftrace"
55FILES_${PN}-ipc = "${bindir}/kselftests/ipc"
56FILES_${PN}-kcmp = "${bindir}/kselftests/kcmp"
57FILES_${PN}-memfd = "${bindir}/kselftests/memfd"
58FILES_${PN}-memory-hotplug = "${bindir}/kselftests/memory-hotplug"
59FILES_${PN}-mount = "${bindir}/kselftests/mount"
60FILES_${PN}-mqueue = "${bindir}/kselftests/mqueue"
61FILES_${PN}-net = "${bindir}/kselftests/net"
62FILES_${PN}-powerpc = "${bindir}/kselftests/powerpc"
63FILES_${PN}-ptrace = "${bindir}/kselftests/ptrace"
64FILES_${PN}-size = "${bindir}/kselftests/size"
65FILES_${PN}-sysctl = "${bindir}/kselftests/sysctl"
66FILES_${PN}-timers = "${bindir}/kselftests/timers"
67FILES_${PN}-user = "${bindir}/kselftests/user"
68FILES_${PN}-vm = "${bindir}/kselftests/vm"
69FILES_${PN}-x86 = "${bindir}/kselftests/x86"
70FILES_${PN}-dbg += "${bindir}/kselftests/*/.debug"
71
72RDEPENDS_${PN}-cpu-hotplug += "bash"
73RDEPENDS_${PN}-efivarfs += "bash"
74RDEPENDS_${PN}-memory-hotplug += "bash"
75RDEPENDS_${PN}-net += "bash"
76RDEPENDS_${PN}-vm += "bash"
77RDEPENDS_${PN} += "bash ${PN}-cpu-hotplug ${PN}-efivarfs ${PN}-exec ${PN}-firmware ${PN}-ftrace ${PN}-ipc \
78 ${PN}-kcmp ${PN}-memfd ${PN}-memory-hotplug ${PN}-mount ${PN}-mqueue ${PN}-net ${PN}-ptrace \
79 ${PN}-size ${PN}-sysctl ${PN}-timers ${PN}-user ${PN}-vm"
80
81RDEPENDS_${PN}_append_x86 = " ${PN}-breakpoints ${PN}-ipc ${PN}-x86"
82RDEPENDS_${PN}_append_x86-64 = " ${PN}-breakpoints ${PN}-ipc ${PN}-x86"
83RDEPENDS_${PN}_append_powerpc = " ${PN}-powerpc"
84RDEPENDS_${PN}_append_powerpc64 = " ${PN}-powerpc"
85
86INSANE_SKIP_${PN} = "already-stripped"