summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-kernel/kernel-selftest
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2021-07-29 17:04:53 +0200
committerKhem Raj <raj.khem@gmail.com>2021-08-03 10:21:25 -0700
commitc61dc077bbd81260e4f167fa2251643ba0ba6974 (patch)
tree66c3243f8f64ae60f66f70a16e8128c247254a65 /meta-oe/recipes-kernel/kernel-selftest
parentc5f7cfb8db54cfa4257797db5bd87828dea43296 (diff)
downloadmeta-openembedded-c61dc077bbd81260e4f167fa2251643ba0ba6974.tar.gz
Convert to new override syntax
This is the result of automated script (0.9.1) conversion: oe-core/scripts/contrib/convert-overrides.py . converting the metadata to use ":" as the override character instead of "_". Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-kernel/kernel-selftest')
-rw-r--r--meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb20
1 files changed, 10 insertions, 10 deletions
diff --git a/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb b/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb
index 11cf935c73..d0f246b934 100644
--- a/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb
+++ b/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb
@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://../COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"
7DEPENDS = "rsync-native llvm-native" 7DEPENDS = "rsync-native llvm-native"
8 8
9# for musl libc 9# for musl libc
10SRC_URI_append_libc-musl = "\ 10SRC_URI:append:libc-musl = "\
11 file://userfaultfd.patch \ 11 file://userfaultfd.patch \
12 " 12 "
13SRC_URI += "file://run-ptest \ 13SRC_URI += "file://run-ptest \
@@ -19,17 +19,17 @@ SRC_URI += "file://run-ptest \
19# bpf was added in 4.10 with: https://github.com/torvalds/linux/commit/5aa5bd14c5f8660c64ceedf14a549781be47e53d 19# bpf was added in 4.10 with: https://github.com/torvalds/linux/commit/5aa5bd14c5f8660c64ceedf14a549781be47e53d
20# if you have older kernel than that you need to remove it from PACKAGECONFIG 20# if you have older kernel than that you need to remove it from PACKAGECONFIG
21PACKAGECONFIG ??= "firmware" 21PACKAGECONFIG ??= "firmware"
22PACKAGECONFIG_remove_x86 = "bpf" 22PACKAGECONFIG:remove:x86 = "bpf"
23PACKAGECONFIG_remove_arm = "bpf vm" 23PACKAGECONFIG:remove:arm = "bpf vm"
24# host ptrace.h is used to compile BPF target but mips ptrace.h is needed 24# host ptrace.h is used to compile BPF target but mips ptrace.h is needed
25# progs/loop1.c:21:9: error: incomplete definition of type 'struct user_pt_regs' 25# progs/loop1.c:21:9: error: incomplete definition of type 'struct user_pt_regs'
26# m = PT_REGS_RC(ctx); 26# m = PT_REGS_RC(ctx);
27# vm tests need libhugetlbfs starting 5.8+ (https://lkml.org/lkml/2020/4/22/1654) 27# vm tests need libhugetlbfs starting 5.8+ (https://lkml.org/lkml/2020/4/22/1654)
28PACKAGECONFIG_remove_qemumips = "bpf vm" 28PACKAGECONFIG:remove:qemumips = "bpf vm"
29 29
30# riscv does not support libhugetlbfs yet 30# riscv does not support libhugetlbfs yet
31PACKAGECONFIG_remove_riscv64 = "vm" 31PACKAGECONFIG:remove:riscv64 = "vm"
32PACKAGECONFIG_remove_riscv32 = "vm" 32PACKAGECONFIG:remove:riscv32 = "vm"
33 33
34PACKAGECONFIG[bpf] = ",,elfutils libcap libcap-ng rsync-native," 34PACKAGECONFIG[bpf] = ",,elfutils libcap libcap-ng rsync-native,"
35PACKAGECONFIG[firmware] = ",,libcap, bash" 35PACKAGECONFIG[firmware] = ",,libcap, bash"
@@ -125,14 +125,14 @@ remove_unrelated() {
125PACKAGE_ARCH = "${MACHINE_ARCH}" 125PACKAGE_ARCH = "${MACHINE_ARCH}"
126 126
127INHIBIT_PACKAGE_DEBUG_SPLIT="1" 127INHIBIT_PACKAGE_DEBUG_SPLIT="1"
128FILES_${PN} += "/usr/kernel-selftest" 128FILES:${PN} += "/usr/kernel-selftest"
129 129
130RDEPENDS_${PN} += "python3" 130RDEPENDS:${PN} += "python3"
131# tools/testing/selftests/vm/Makefile doesn't respect LDFLAGS and tools/testing/selftests/Makefile explicitly overrides to empty 131# tools/testing/selftests/vm/Makefile doesn't respect LDFLAGS and tools/testing/selftests/Makefile explicitly overrides to empty
132INSANE_SKIP_${PN} += "ldflags" 132INSANE_SKIP:${PN} += "ldflags"
133 133
134SECURITY_CFLAGS = "" 134SECURITY_CFLAGS = ""
135COMPATIBLE_HOST_libc-musl = 'null' 135COMPATIBLE_HOST:libc-musl = 'null'
136 136
137# It has native clang/llvm dependency, poky distro is reluctant to include them as deps 137# It has native clang/llvm dependency, poky distro is reluctant to include them as deps
138# this helps with world builds on AB 138# this helps with world builds on AB