diff options
Diffstat (limited to 'meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb')
-rw-r--r-- | meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb b/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb index 2a53419c2..78413280b 100644 --- a/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb +++ b/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb | |||
@@ -9,7 +9,6 @@ DEPENDS = "rsync-native" | |||
9 | # for musl libc | 9 | # for musl libc |
10 | SRC_URI_append_libc-musl = "\ | 10 | SRC_URI_append_libc-musl = "\ |
11 | file://userfaultfd.patch \ | 11 | file://userfaultfd.patch \ |
12 | file://0001-bpf-test_progs.c-add-support-for-musllibc.patch \ | ||
13 | " | 12 | " |
14 | SRC_URI += "file://run-ptest \ | 13 | SRC_URI += "file://run-ptest \ |
15 | file://COPYING \ | 14 | file://COPYING \ |
@@ -62,7 +61,7 @@ python __anonymous () { | |||
62 | } | 61 | } |
63 | 62 | ||
64 | do_compile() { | 63 | do_compile() { |
65 | bbwarn "clang with bpf support is needed with kernel 4.18+ so \ | 64 | bbwarn "clang >= 6.0 with bpf support is needed with kernel 4.18+ so \ |
66 | either install it and add it to HOSTTOOLS, or add \ | 65 | either install it and add it to HOSTTOOLS, or add \ |
67 | clang-native from meta-clang to dependency" | 66 | clang-native from meta-clang to dependency" |
68 | for i in ${TEST_LIST} | 67 | for i in ${TEST_LIST} |
@@ -76,7 +75,9 @@ do_install() { | |||
76 | do | 75 | do |
77 | oe_runmake -C ${S}/tools/testing/selftests/${i} INSTALL_PATH=${D}/usr/kernel-selftest/${i} install | 76 | oe_runmake -C ${S}/tools/testing/selftests/${i} INSTALL_PATH=${D}/usr/kernel-selftest/${i} install |
78 | done | 77 | done |
79 | 78 | if [ -e ${D}/usr/kernel-selftest/bpf/test_offload.py ]; then | |
79 | sed -i -e '1s,#!.*python3,#! /usr/bin/env python3,' ${D}/usr/kernel-selftest/bpf/test_offload.py | ||
80 | fi | ||
80 | chown root:root -R ${D}/usr/kernel-selftest | 81 | chown root:root -R ${D}/usr/kernel-selftest |
81 | } | 82 | } |
82 | 83 | ||
@@ -115,5 +116,6 @@ PACKAGE_ARCH = "${MACHINE_ARCH}" | |||
115 | INHIBIT_PACKAGE_DEBUG_SPLIT="1" | 116 | INHIBIT_PACKAGE_DEBUG_SPLIT="1" |
116 | FILES_${PN} += "/usr/kernel-selftest" | 117 | FILES_${PN} += "/usr/kernel-selftest" |
117 | 118 | ||
119 | RDEPENDS_${PN} += "python3" | ||
118 | # tools/testing/selftests/vm/Makefile doesn't respect LDFLAGS and tools/testing/selftests/Makefile explicitly overrides to empty | 120 | # tools/testing/selftests/vm/Makefile doesn't respect LDFLAGS and tools/testing/selftests/Makefile explicitly overrides to empty |
119 | INSANE_SKIP_${PN} += "ldflags" | 121 | INSANE_SKIP_${PN} += "ldflags" |