diff options
author | Denys Dmytriyenko <denys@ti.com> | 2015-08-12 05:28:58 +0000 |
---|---|---|
committer | Denys Dmytriyenko <denys@ti.com> | 2015-08-11 23:33:07 -0400 |
commit | f55ca0fc55ce72ea5b55527f6a2c67a989b7740d (patch) | |
tree | 0812c1f890e2966eebe90ab54dacc43b1faea768 /recipes-kernel | |
parent | d49ed0e9ff8b3d378751d9473414be742f38d83b (diff) | |
download | meta-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.bb | 86 |
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 @@ | |||
1 | SUMMARY = "Linux Kernel Selftests" | ||
2 | LICENSE = "GPLv2" | ||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" | ||
4 | |||
5 | SRC_URI = "https://www.kernel.org/pub/linux/kernel/v4.x/linux-${PV}.tar.xz" | ||
6 | |||
7 | SRC_URI[md5sum] = "fe9dc0f6729f36400ea81aa41d614c37" | ||
8 | SRC_URI[sha256sum] = "caf51f085aac1e1cea4d00dbbf3093ead07b551fc07b31b2a989c05f8ea72d9f" | ||
9 | |||
10 | S = "${WORKDIR}/linux-${PV}" | ||
11 | |||
12 | DEPENDS = "virtual/kernel popt" | ||
13 | |||
14 | inherit kernel-arch | ||
15 | |||
16 | TARGETS = "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 | ||
20 | TARGETS_append_x86 = " breakpoints ipc x86" | ||
21 | TARGETS_append_x86-64 = " breakpoints ipc x86" | ||
22 | TARGETS_append_powerpc = " powerpc" | ||
23 | TARGETS_append_powerpc64 = " powerpc" | ||
24 | |||
25 | EXTRA_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 | ||
28 | do_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 | |||
37 | do_compile () { | ||
38 | oe_runmake | ||
39 | } | ||
40 | |||
41 | do_install () { | ||
42 | oe_runmake install | ||
43 | } | ||
44 | |||
45 | PACKAGE_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 | |||
49 | FILES_${PN}-breakpoints = "${bindir}/kselftests/breakpoints" | ||
50 | FILES_${PN}-cpu-hotplug = "${bindir}/kselftests/cpu-hotplug" | ||
51 | FILES_${PN}-efivarfs = "${bindir}/kselftests/efivarfs" | ||
52 | FILES_${PN}-exec = "${bindir}/kselftests/exec" | ||
53 | FILES_${PN}-firmware = "${bindir}/kselftests/firmware" | ||
54 | FILES_${PN}-ftrace = "${bindir}/kselftests/ftrace" | ||
55 | FILES_${PN}-ipc = "${bindir}/kselftests/ipc" | ||
56 | FILES_${PN}-kcmp = "${bindir}/kselftests/kcmp" | ||
57 | FILES_${PN}-memfd = "${bindir}/kselftests/memfd" | ||
58 | FILES_${PN}-memory-hotplug = "${bindir}/kselftests/memory-hotplug" | ||
59 | FILES_${PN}-mount = "${bindir}/kselftests/mount" | ||
60 | FILES_${PN}-mqueue = "${bindir}/kselftests/mqueue" | ||
61 | FILES_${PN}-net = "${bindir}/kselftests/net" | ||
62 | FILES_${PN}-powerpc = "${bindir}/kselftests/powerpc" | ||
63 | FILES_${PN}-ptrace = "${bindir}/kselftests/ptrace" | ||
64 | FILES_${PN}-size = "${bindir}/kselftests/size" | ||
65 | FILES_${PN}-sysctl = "${bindir}/kselftests/sysctl" | ||
66 | FILES_${PN}-timers = "${bindir}/kselftests/timers" | ||
67 | FILES_${PN}-user = "${bindir}/kselftests/user" | ||
68 | FILES_${PN}-vm = "${bindir}/kselftests/vm" | ||
69 | FILES_${PN}-x86 = "${bindir}/kselftests/x86" | ||
70 | FILES_${PN}-dbg += "${bindir}/kselftests/*/.debug" | ||
71 | |||
72 | RDEPENDS_${PN}-cpu-hotplug += "bash" | ||
73 | RDEPENDS_${PN}-efivarfs += "bash" | ||
74 | RDEPENDS_${PN}-memory-hotplug += "bash" | ||
75 | RDEPENDS_${PN}-net += "bash" | ||
76 | RDEPENDS_${PN}-vm += "bash" | ||
77 | RDEPENDS_${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 | |||
81 | RDEPENDS_${PN}_append_x86 = " ${PN}-breakpoints ${PN}-ipc ${PN}-x86" | ||
82 | RDEPENDS_${PN}_append_x86-64 = " ${PN}-breakpoints ${PN}-ipc ${PN}-x86" | ||
83 | RDEPENDS_${PN}_append_powerpc = " ${PN}-powerpc" | ||
84 | RDEPENDS_${PN}_append_powerpc64 = " ${PN}-powerpc" | ||
85 | |||
86 | INSANE_SKIP_${PN} = "already-stripped" | ||