mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-07 05:10:20 +00:00
kernel-selftest: rename vm selftests to mm
Since v6.10 [1], this category of selftests was renamed to 'mm'. Update the recipe accordingly. I left a mention to the previous name (i.e., 'vm') just in case. [1]: https://github.com/torvalds/linux/commit/baa489fabd01596d5426d6e112b34ba5fb59ab82 Signed-off-by: João Marcos Costa <joaomarcos.costa@bootlin.com> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
committed by
Khem Raj
parent
5305a97026
commit
fcae7611c1
@@ -17,7 +17,7 @@ SRC_URI += "file://run-ptest \
|
||||
file://0001-selftests-timers-Fix-clock_adjtime-for-newer-32-bit-.patch \
|
||||
"
|
||||
|
||||
# now we just test bpf and vm
|
||||
# now we just test bpf and mm (formerly known as vm)
|
||||
# we will append other kernel selftest in the future
|
||||
# bpf was added in 4.10 with: https://github.com/torvalds/linux/commit/5aa5bd14c5f8660c64ceedf14a549781be47e53d
|
||||
# if you have older kernel than that you need to remove it from PACKAGECONFIG
|
||||
@@ -25,20 +25,20 @@ PACKAGECONFIG ??= "firmware"
|
||||
# bpf needs working clang compiler anyway
|
||||
PACKAGECONFIG:append:toolchain-clang:x86-64 = " bpf"
|
||||
PACKAGECONFIG:remove:x86 = "bpf"
|
||||
PACKAGECONFIG:remove:arm = "bpf vm"
|
||||
PACKAGECONFIG:remove:arm = "bpf mm"
|
||||
# host ptrace.h is used to compile BPF target but mips ptrace.h is needed
|
||||
# progs/loop1.c:21:9: error: incomplete definition of type 'struct user_pt_regs'
|
||||
# m = PT_REGS_RC(ctx);
|
||||
# vm tests need libhugetlbfs starting 5.8+ (https://lkml.org/lkml/2020/4/22/1654)
|
||||
PACKAGECONFIG:remove:qemumips = "bpf vm"
|
||||
# mm tests need libhugetlbfs starting 5.8+ (https://lkml.org/lkml/2020/4/22/1654)
|
||||
PACKAGECONFIG:remove:qemumips = "bpf mm"
|
||||
|
||||
# riscv does not support libhugetlbfs yet
|
||||
PACKAGECONFIG:remove:riscv64 = "bpf vm"
|
||||
PACKAGECONFIG:remove:riscv32 = "bpf vm"
|
||||
PACKAGECONFIG:remove:riscv64 = "bpf mm"
|
||||
PACKAGECONFIG:remove:riscv32 = "bpf mm"
|
||||
|
||||
PACKAGECONFIG[bpf] = ",,elfutils elfutils-native libcap libcap-ng rsync-native python3-docutils-native,"
|
||||
PACKAGECONFIG[firmware] = ",,libcap, bash"
|
||||
PACKAGECONFIG[vm] = ",,libcap libhugetlbfs,libgcc bash"
|
||||
PACKAGECONFIG[mm] = ",,libcap libhugetlbfs,libgcc bash"
|
||||
|
||||
do_patch[depends] += "virtual/kernel:do_shared_workdir"
|
||||
do_compile[depends] += "virtual/kernel:do_install"
|
||||
@@ -48,7 +48,7 @@ inherit linux-kernel-base module-base kernel-arch ptest siteinfo
|
||||
DEBUG_PREFIX_MAP:remove = "-fcanon-prefix-map"
|
||||
|
||||
TEST_LIST = "\
|
||||
${@bb.utils.filter('PACKAGECONFIG', 'bpf firmware vm', d)} \
|
||||
${@bb.utils.filter('PACKAGECONFIG', 'bpf firmware mm', d)} \
|
||||
cpufreq \
|
||||
cpu-hotplug \
|
||||
rtc \
|
||||
|
||||
Reference in New Issue
Block a user