[PATCH 2/2] riscv: vdso_cfi: Add .gitignore for build artifacts
cp0613 at linux.alibaba.com
cp0613 at linux.alibaba.com
Thu Mar 19 19:18:50 PDT 2026
From: Chen Pei <cp0613 at linux.alibaba.com>
The vdso_cfi build process copies source files (*.c, *.S) from the main
vdso directory to the build directory. Without a .gitignore file, these
copied files appear as untracked files in git status, cluttering the
working directory.
Add a .gitignore file to exclude:
- Copied source files (*.c, *.S)
- Temporary build files (vdso.lds, *.tmp, vdso-syms.S)
- While preserving vdso-cfi.S which is the original entry point
This follows the same pattern used in the main vdso directory
and keeps the working directory clean.
Signed-off-by: Chen Pei <cp0613 at linux.alibaba.com>
---
arch/riscv/kernel/vdso_cfi/.gitignore | 8 ++++++++
1 file changed, 8 insertions(+)
create mode 100644 arch/riscv/kernel/vdso_cfi/.gitignore
diff --git a/arch/riscv/kernel/vdso_cfi/.gitignore b/arch/riscv/kernel/vdso_cfi/.gitignore
new file mode 100644
index 000000000000..220b6ebece4f
--- /dev/null
+++ b/arch/riscv/kernel/vdso_cfi/.gitignore
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: GPL-2.0-only
+# Copied source files from the main vdso directory
+*.c
+*.S
+!vdso-cfi.S
+vdso.lds
+*.tmp
+vdso-syms.S
--
2.50.1
More information about the linux-riscv
mailing list