Re: [PATCH] riscv: add missing vdso_install target

From: Palmer Dabbelt
Date: Tue Nov 06 2018 - 19:35:12 EST


On Mon, 05 Nov 2018 06:35:37 PST (-0800), david.abdurachmanov@xxxxxxxxx wrote:
Building kernel 4.20 for Fedora as RPM fails, because riscv is missing
vdso_install target in arch/riscv/Makefile.

Signed-off-by: David Abdurachmanov <david.abdurachmanov@xxxxxxxxx>
---
arch/riscv/Makefile | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/arch/riscv/Makefile b/arch/riscv/Makefile
index d10146197533..4af153a182b0 100644
--- a/arch/riscv/Makefile
+++ b/arch/riscv/Makefile
@@ -77,4 +77,8 @@ core-y += arch/riscv/kernel/ arch/riscv/mm/

libs-y += arch/riscv/lib/

+PHONY += vdso_install
+vdso_install:
+ $(Q)$(MAKE) $(build)=arch/riscv/kernel/vdso $@
+
all: vmlinux

While this doesn't smell like it should be an arch-specific thing, it looks like everyone else has a copy and they're all slightly different so it'd probably be more complexity to merge them than duplicate them.

I'll take this into my PR for next week.

Thanks!