summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/kselftests/kselftests_4.4.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/kselftests/kselftests_4.4.bb')
-rw-r--r--recipes-kernel/kselftests/kselftests_4.4.bb88
1 files changed, 88 insertions, 0 deletions
diff --git a/recipes-kernel/kselftests/kselftests_4.4.bb b/recipes-kernel/kselftests/kselftests_4.4.bb
new file mode 100644
index 00000000..3cdf4f10
--- /dev/null
+++ b/recipes-kernel/kselftests/kselftests_4.4.bb
@@ -0,0 +1,88 @@
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] = "9a78fa2eb6c68ca5a40ed5af08142599"
8SRC_URI[sha256sum] = "401d7c8fef594999a460d10c72c5a94e9c2e1022f16795ec51746b0d165418b2"
9
10S = "${WORKDIR}/linux-${PV}"
11
12PACKAGE_ARCH = "${MACHINE_ARCH}"
13
14DEPENDS = "popt"
15
16inherit kernel-arch
17
18TARGETS = "cpu-hotplug efivarfs exec firmware ftrace kcmp memfd memory-hotplug \
19 mount mqueue net ptrace size sysctl timers user vm"
20
21# Arch specific tests
22TARGETS_append_x86 = " breakpoints ipc x86"
23TARGETS_append_x86-64 = " breakpoints ipc x86"
24TARGETS_append_powerpc = " powerpc"
25TARGETS_append_powerpc64 = " powerpc"
26
27EXTRA_OEMAKE += "-C tools/testing/selftests TARGETS="${TARGETS}" INSTALL_PATH=${D}${bindir}/kselftests CC="${CC}""
28
29# Their Makefiles are so sloppy, let's clean up a bit
30do_configure () {
31 sed "s|^CC := .*||g" -i ${S}/tools/testing/selftests/lib.mk
32 sed "s|^CC = .*||g" -i ${S}/tools/testing/selftests/timers/Makefile
33 sed "s|^CC = .*||g" -i ${S}/tools/testing/selftests/memfd/Makefile
34 sed "s|^CC := .*||g" -i ${S}/tools/testing/selftests/powerpc/switch_endian/Makefile
35 sed "s|gcc|\$(CC)|g" -i ${S}/tools/testing/selftests/breakpoints/Makefile
36 sed "s|^LDFLAGS += -lrt -lpthread|LDLIBS += -lrt -lpthread|g" -i ${S}/tools/testing/selftests/timers/Makefile
37}
38
39do_compile () {
40 oe_runmake
41}
42
43do_install () {
44 oe_runmake install
45}
46
47PACKAGE_BEFORE_PN = "${PN}-breakpoints ${PN}-cpu-hotplug ${PN}-efivarfs ${PN}-exec ${PN}-firmware ${PN}-ftrace \
48 ${PN}-ipc ${PN}-kcmp ${PN}-memfd ${PN}-memory-hotplug ${PN}-mount ${PN}-mqueue ${PN}-net ${PN}-powerpc \
49 ${PN}-ptrace ${PN}-size ${PN}-sysctl ${PN}-timers ${PN}-user ${PN}-vm ${PN}-x86"
50
51FILES_${PN}-breakpoints = "${bindir}/kselftests/breakpoints"
52FILES_${PN}-cpu-hotplug = "${bindir}/kselftests/cpu-hotplug"
53FILES_${PN}-efivarfs = "${bindir}/kselftests/efivarfs"
54FILES_${PN}-exec = "${bindir}/kselftests/exec"
55FILES_${PN}-firmware = "${bindir}/kselftests/firmware"
56FILES_${PN}-ftrace = "${bindir}/kselftests/ftrace"
57FILES_${PN}-ipc = "${bindir}/kselftests/ipc"
58FILES_${PN}-kcmp = "${bindir}/kselftests/kcmp"
59FILES_${PN}-memfd = "${bindir}/kselftests/memfd"
60FILES_${PN}-memory-hotplug = "${bindir}/kselftests/memory-hotplug"
61FILES_${PN}-mount = "${bindir}/kselftests/mount"
62FILES_${PN}-mqueue = "${bindir}/kselftests/mqueue"
63FILES_${PN}-net = "${bindir}/kselftests/net"
64FILES_${PN}-powerpc = "${bindir}/kselftests/powerpc"
65FILES_${PN}-ptrace = "${bindir}/kselftests/ptrace"
66FILES_${PN}-size = "${bindir}/kselftests/size"
67FILES_${PN}-sysctl = "${bindir}/kselftests/sysctl"
68FILES_${PN}-timers = "${bindir}/kselftests/timers"
69FILES_${PN}-user = "${bindir}/kselftests/user"
70FILES_${PN}-vm = "${bindir}/kselftests/vm"
71FILES_${PN}-x86 = "${bindir}/kselftests/x86"
72FILES_${PN}-dbg += "${bindir}/kselftests/*/.debug"
73
74RDEPENDS_${PN}-cpu-hotplug += "bash"
75RDEPENDS_${PN}-efivarfs += "bash"
76RDEPENDS_${PN}-memory-hotplug += "bash"
77RDEPENDS_${PN}-net += "bash"
78RDEPENDS_${PN}-vm += "bash"
79RDEPENDS_${PN} += "bash ${PN}-cpu-hotplug ${PN}-efivarfs ${PN}-exec ${PN}-firmware ${PN}-ftrace \
80 ${PN}-kcmp ${PN}-memfd ${PN}-memory-hotplug ${PN}-mount ${PN}-mqueue ${PN}-net ${PN}-ptrace \
81 ${PN}-size ${PN}-sysctl ${PN}-timers ${PN}-user ${PN}-vm"
82
83RDEPENDS_${PN}_append_x86 = " ${PN}-breakpoints ${PN}-ipc ${PN}-x86"
84RDEPENDS_${PN}_append_x86-64 = " ${PN}-breakpoints ${PN}-ipc ${PN}-x86"
85RDEPENDS_${PN}_append_powerpc = " ${PN}-powerpc"
86RDEPENDS_${PN}_append_powerpc64 = " ${PN}-powerpc"
87
88INSANE_SKIP_${PN} = "already-stripped"