From a407a3e533aee5b578fd3e5abca8a228bf29b39d Mon Sep 17 00:00:00 2001 From: Joao Marcos Costa Date: Mon, 20 Apr 2026 13:17:10 +0200 Subject: [PATCH] kernel-selftest: drop libhugetlbfs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The support of libhugetlbfs was removed from mainline Linux a while ago, since v6.1 [1]. Since libhugetlbfs was the main reason to remove 'mm' selftests for some specific architectures, the respective operations should only remove bpf. Update the recipe to remove libhugetlbfs as a dependency of mm, and thus unblock this test category for some targets. [1] https://github.com/torvalds/linux/commit/6f83d6c74ea5a5b267be85206822da280cae110a Signed-off-by: João Marcos Costa Signed-off-by: Khem Raj --- .../recipes-kernel/kernel-selftest/kernel-selftest.bb | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb b/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb index d90720de06..08b0c60c6c 100644 --- a/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb +++ b/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb @@ -29,16 +29,13 @@ 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); -# 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 mm" -PACKAGECONFIG:remove:riscv32 = "bpf mm" +PACKAGECONFIG:remove:qemumips = "bpf" +PACKAGECONFIG:remove:riscv64 = "bpf" +PACKAGECONFIG:remove:riscv32 = "bpf" PACKAGECONFIG[bpf] = ",,elfutils elfutils-native libcap libcap-ng rsync-native python3-docutils-native," PACKAGECONFIG[firmware] = ",,libcap, bash" -PACKAGECONFIG[mm] = ",,libcap libhugetlbfs,libgcc bash" +PACKAGECONFIG[mm] = ",,libcap, libgcc bash" do_patch[depends] += "virtual/kernel:do_shared_workdir" do_compile[depends] += "virtual/kernel:do_install"