[PATCH v4 2/3] riscv: compat_vdso: Allow *.c source files

Nam Cao namcao at linutronix.de
Wed Jul 22 02:06:43 PDT 2026


Extend to support building *.c files. This allows adding futex.c in a
follow-up commit.

Reviewed-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
Signed-off-by: Nam Cao <namcao at linutronix.de>
---
 arch/riscv/kernel/compat_vdso/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/riscv/kernel/compat_vdso/Makefile b/arch/riscv/kernel/compat_vdso/Makefile
index 7ec9dd47c4fa..03d128080c6a 100644
--- a/arch/riscv/kernel/compat_vdso/Makefile
+++ b/arch/riscv/kernel/compat_vdso/Makefile
@@ -43,6 +43,7 @@ LDFLAGS_compat_vdso.so.dbg = -shared -S -soname=linux-compat_vdso.so.1 \
 	--build-id=sha1 --hash-style=both --eh-frame-hdr
 
 $(obj-compat_vdso): KBUILD_AFLAGS += $(COMPAT_CC_FLAGS)
+$(obj-compat_vdso): KBUILD_CFLAGS += $(COMPAT_CC_FLAGS)
 
 # strip rule for the .so file
 $(obj)/%.so: OBJCOPYFLAGS := -S
-- 
2.47.3




More information about the linux-riscv mailing list