From 2fc8b41e83be3ca769c5cc9b474c134639db428c Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 23 May 2025 20:59:58 -0700 Subject: [PATCH] linux-yocto: Remove debug-kernel.scc for riscv32 kernels modpost fails to process the debug location lists for riscv32 | ERROR: modpost: vmlinux: local symbol '__asm_copy_to_user' was exported | ERROR: modpost: vmlinux: local symbol '__asm_copy_from_user' was exported | ERROR: modpost: vmlinux: local symbol '__clear_user' was exported | ERROR: modpost: vmlinux: local symbol 'xor_regs_2_' was exported | ERROR: modpost: vmlinux: local symbol 'xor_regs_3_' was exported | ERROR: modpost: vmlinux: local symbol 'xor_regs_4_' was exported | ERROR: modpost: vmlinux: local symbol 'xor_regs_5_' was exported | WARNING: modpost: vmlinux: section mismatch in reference: 0x1560 (section: __ex_table) -> .LASF464 (section: .debug_str) | ERROR: modpost: __ex_table+0x1560 references non-executable section '.debug_str' poky adds features/debug/debug-kernel.scc via distro policy and hence the builds are failing for qemuriscv32 on AB. While this should be fixed in kernel build system or tools, this makes us proceed until then Signed-off-by: Khem Raj Cc: Bruce Ashfield Signed-off-by: Richard Purdie --- meta/recipes-kernel/linux/linux-yocto_6.12.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meta/recipes-kernel/linux/linux-yocto_6.12.bb b/meta/recipes-kernel/linux/linux-yocto_6.12.bb index fefed8c9c53..83be9fed428 100644 --- a/meta/recipes-kernel/linux/linux-yocto_6.12.bb +++ b/meta/recipes-kernel/linux/linux-yocto_6.12.bb @@ -72,5 +72,8 @@ KERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", "ptest", " cg KERNEL_FEATURES:append:powerpc = " arch/powerpc/powerpc-debug.scc" KERNEL_FEATURES:append:powerpc64 = " arch/powerpc/powerpc-debug.scc" KERNEL_FEATURES:append:powerpc64le = " arch/powerpc/powerpc-debug.scc" - +# Do not add debug info for riscv32, it fails during depmod +# ERROR: modpost: __ex_table+0x17a4 references non-executable section '.debug_loclists' +# Check again during next major version upgrade +KERNEL_FEATURES:remove:riscv32 = "features/debug/debug-kernel.scc" INSANE_SKIP:kernel-vmlinux:qemuppc64 = "textrel" -- 2.47.3