From f1d21dec1d733f9d610cbe3a0ba19b8f12939f61 Mon Sep 17 00:00:00 2001 From: Anirudh Srinivasan Date: Tue, 19 May 2026 10:55:54 -0500 Subject: [PATCH] riscv: cfi: add generated vdso files to make clean The vdso files that are copied over from arch/riscv/kernel/vdso do not get cleaned up when make clean is run. Add a clean-files target to the makefile so that these files get cleaned up properly. Signed-off-by: Anirudh Srinivasan Signed-off-by: Linux RISC-V bot --- arch/riscv/kernel/vdso_cfi/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/riscv/kernel/vdso_cfi/Makefile b/arch/riscv/kernel/vdso_cfi/Makefile index 10292498b76577..906023fb5c27c3 100644 --- a/arch/riscv/kernel/vdso_cfi/Makefile +++ b/arch/riscv/kernel/vdso_cfi/Makefile @@ -20,6 +20,8 @@ $(vdso_S_objects): $(obj)/%.S: $(src)/%.S $(vdso_c_objects): $(obj)/%.c: $(src)/%.c $(Q)cp $< $@ +clean-files := $(notdir $(vdso_c_sources)) $(notdir $(vdso_S_sources)) + # Include the main VDSO Makefile which contains all the build rules and sources # The VDSO_CFI_BUILD variable will be passed to it to enable CFI compilation include $(src)/Makefile