mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-27 07:57:27 +00:00
kernel-selftest: Disable vm tests for mips/arm
Include lib and kernel subdirs as vm tests need headers from it in 5.8+ (test_hmm_uapi.h) see [1] It now uses tests which are not compatible on arm starting with 5.8+ [1] https://lkml.org/lkml/2020/4/22/1654 Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -4,7 +4,7 @@ LICENSE = "GPLv2"
|
|||||||
|
|
||||||
LIC_FILES_CHKSUM = "file://../COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"
|
LIC_FILES_CHKSUM = "file://../COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"
|
||||||
|
|
||||||
DEPENDS = "rsync-native llvm-native libhugetlbfs"
|
DEPENDS = "rsync-native llvm-native"
|
||||||
|
|
||||||
# for musl libc
|
# for musl libc
|
||||||
SRC_URI_append_libc-musl = "\
|
SRC_URI_append_libc-musl = "\
|
||||||
@@ -20,15 +20,16 @@ SRC_URI += "file://run-ptest \
|
|||||||
# if you have older kernel than that you need to remove it from PACKAGECONFIG
|
# if you have older kernel than that you need to remove it from PACKAGECONFIG
|
||||||
PACKAGECONFIG ??= "bpf firmware vm"
|
PACKAGECONFIG ??= "bpf firmware vm"
|
||||||
PACKAGECONFIG_remove_x86 = "bpf"
|
PACKAGECONFIG_remove_x86 = "bpf"
|
||||||
PACKAGECONFIG_remove_arm = "bpf"
|
PACKAGECONFIG_remove_arm = "bpf vm"
|
||||||
# host ptrace.h is used to compile BPF target but mips ptrace.h is needed
|
# 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'
|
# progs/loop1.c:21:9: error: incomplete definition of type 'struct user_pt_regs'
|
||||||
# m = PT_REGS_RC(ctx);
|
# m = PT_REGS_RC(ctx);
|
||||||
PACKAGECONFIG_remove_qemumips = "bpf"
|
# vm tests need libhugetlbfs starting 5.8+ (https://lkml.org/lkml/2020/4/22/1654)
|
||||||
|
PACKAGECONFIG_remove_qemumips = "bpf vm"
|
||||||
|
|
||||||
PACKAGECONFIG[bpf] = ",,elfutils libcap libcap-ng rsync-native,"
|
PACKAGECONFIG[bpf] = ",,elfutils libcap libcap-ng rsync-native,"
|
||||||
PACKAGECONFIG[firmware] = ",,libcap, bash"
|
PACKAGECONFIG[firmware] = ",,libcap, bash"
|
||||||
PACKAGECONFIG[vm] = ",,libcap,libgcc bash"
|
PACKAGECONFIG[vm] = ",,libcap libhugetlbfs,libgcc bash"
|
||||||
|
|
||||||
do_patch[depends] += "virtual/kernel:do_shared_workdir"
|
do_patch[depends] += "virtual/kernel:do_shared_workdir"
|
||||||
|
|
||||||
@@ -49,10 +50,13 @@ EXTRA_OEMAKE = '\
|
|||||||
AR="${AR}" \
|
AR="${AR}" \
|
||||||
LD="${LD}" \
|
LD="${LD}" \
|
||||||
DESTDIR="${D}" \
|
DESTDIR="${D}" \
|
||||||
|
MACHINE="${ARCH}" \
|
||||||
'
|
'
|
||||||
|
|
||||||
KERNEL_SELFTEST_SRC ?= "Makefile \
|
KERNEL_SELFTEST_SRC ?= "Makefile \
|
||||||
include \
|
include \
|
||||||
|
kernel \
|
||||||
|
lib \
|
||||||
tools \
|
tools \
|
||||||
scripts \
|
scripts \
|
||||||
arch \
|
arch \
|
||||||
|
|||||||
Reference in New Issue
Block a user