summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb16
1 files changed, 8 insertions, 8 deletions
diff --git a/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb b/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb
index 430b5974b3..d90720de06 100644
--- a/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb
+++ b/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb
@@ -17,7 +17,7 @@ SRC_URI += "file://run-ptest \
17 file://0001-selftests-timers-Fix-clock_adjtime-for-newer-32-bit-.patch \ 17 file://0001-selftests-timers-Fix-clock_adjtime-for-newer-32-bit-.patch \
18 " 18 "
19 19
20# now we just test bpf and vm 20# now we just test bpf and mm (formerly known as vm)
21# we will append other kernel selftest in the future 21# we will append other kernel selftest in the future
22# bpf was added in 4.10 with: https://github.com/torvalds/linux/commit/5aa5bd14c5f8660c64ceedf14a549781be47e53d 22# bpf was added in 4.10 with: https://github.com/torvalds/linux/commit/5aa5bd14c5f8660c64ceedf14a549781be47e53d
23# if you have older kernel than that you need to remove it from PACKAGECONFIG 23# if you have older kernel than that you need to remove it from PACKAGECONFIG
@@ -25,20 +25,20 @@ PACKAGECONFIG ??= "firmware"
25# bpf needs working clang compiler anyway 25# bpf needs working clang compiler anyway
26PACKAGECONFIG:append:toolchain-clang:x86-64 = " bpf" 26PACKAGECONFIG:append:toolchain-clang:x86-64 = " bpf"
27PACKAGECONFIG:remove:x86 = "bpf" 27PACKAGECONFIG:remove:x86 = "bpf"
28PACKAGECONFIG:remove:arm = "bpf vm" 28PACKAGECONFIG:remove:arm = "bpf mm"
29# host ptrace.h is used to compile BPF target but mips ptrace.h is needed 29# host ptrace.h is used to compile BPF target but mips ptrace.h is needed
30# progs/loop1.c:21:9: error: incomplete definition of type 'struct user_pt_regs' 30# progs/loop1.c:21:9: error: incomplete definition of type 'struct user_pt_regs'
31# m = PT_REGS_RC(ctx); 31# m = PT_REGS_RC(ctx);
32# vm tests need libhugetlbfs starting 5.8+ (https://lkml.org/lkml/2020/4/22/1654) 32# mm tests need libhugetlbfs starting 5.8+ (https://lkml.org/lkml/2020/4/22/1654)
33PACKAGECONFIG:remove:qemumips = "bpf vm" 33PACKAGECONFIG:remove:qemumips = "bpf mm"
34 34
35# riscv does not support libhugetlbfs yet 35# riscv does not support libhugetlbfs yet
36PACKAGECONFIG:remove:riscv64 = "bpf vm" 36PACKAGECONFIG:remove:riscv64 = "bpf mm"
37PACKAGECONFIG:remove:riscv32 = "bpf vm" 37PACKAGECONFIG:remove:riscv32 = "bpf mm"
38 38
39PACKAGECONFIG[bpf] = ",,elfutils elfutils-native libcap libcap-ng rsync-native python3-docutils-native," 39PACKAGECONFIG[bpf] = ",,elfutils elfutils-native libcap libcap-ng rsync-native python3-docutils-native,"
40PACKAGECONFIG[firmware] = ",,libcap, bash" 40PACKAGECONFIG[firmware] = ",,libcap, bash"
41PACKAGECONFIG[vm] = ",,libcap libhugetlbfs,libgcc bash" 41PACKAGECONFIG[mm] = ",,libcap libhugetlbfs,libgcc bash"
42 42
43do_patch[depends] += "virtual/kernel:do_shared_workdir" 43do_patch[depends] += "virtual/kernel:do_shared_workdir"
44do_compile[depends] += "virtual/kernel:do_install" 44do_compile[depends] += "virtual/kernel:do_install"
@@ -48,7 +48,7 @@ inherit linux-kernel-base module-base kernel-arch ptest siteinfo
48DEBUG_PREFIX_MAP:remove = "-fcanon-prefix-map" 48DEBUG_PREFIX_MAP:remove = "-fcanon-prefix-map"
49 49
50TEST_LIST = "\ 50TEST_LIST = "\
51 ${@bb.utils.filter('PACKAGECONFIG', 'bpf firmware vm', d)} \ 51 ${@bb.utils.filter('PACKAGECONFIG', 'bpf firmware mm', d)} \
52 cpufreq \ 52 cpufreq \
53 cpu-hotplug \ 53 cpu-hotplug \
54 rtc \ 54 rtc \