[PATCH 0/2] riscv: vdso_cfi build cleanup improvements

From: cp0613

Date: Thu Mar 19 2026 - 22:19:14 EST


From: Chen Pei <cp0613@xxxxxxxxxxxxxxxxx>

This patch series addresses two issues with the RISC-V VDSO CFI build:

1. Build artifacts were not cleaned properly during 'make clean'
2. Copied source files were being tracked by git

The first patch adds the clean-files variable to ensure that temporary
source files copied from the main vdso directory are removed during
make clean.

The second patch adds a .gitignore file to prevent git from tracking
build artifacts and copied source files in the vdso_cfi build directory.

These changes improve the build system hygiene and maintain clean
working directories for developers working with CFI support.

Chen Pei (2):
riscv: vdso_cfi: Add clean rule for copied sources
riscv: vdso_cfi: Add .gitignore for build artifacts

arch/riscv/kernel/vdso_cfi/.gitignore | 8 ++++++++
arch/riscv/kernel/vdso_cfi/Makefile | 3 +++
2 files changed, 11 insertions(+)
create mode 100644 arch/riscv/kernel/vdso_cfi/.gitignore

--
2.50.1