riscv: compat: vdso: Fix vdso_install target
PATCH 1/1 riscv: compat: vdso: Fix vdso_install target
When CONFIG_COMPAT=y the vdso_install target fails:
$ make ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- vdso_install INSTALL vdso.so make[1]: *** No rule to make target 'vdso_install'. Stop. make: *** [arch/riscv/Makefile:112: vdso_install] Error 2
The problem is that arch/riscv/kernel/compat_vdso/Makefile doesn't have a vdso_install target, but instead calls it compat_vdso_install.
Signed-off-by Emil Renner Berthing <[email protected]>
--- arch/riscv/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/Makefile +1 -1
@@ -110,7 +110,7 @@ PHONY += vdso_install vdso_install: $(Q)$(MAKE) $(build)=arch/riscv/kernel/vdso $@ $(if $(CONFIG_COMPAT),$(Q)$(MAKE) \ - $(build)=arch/riscv/kernel/compat_vdso $@) + $(build)=arch/riscv/kernel/compat_vdso compat_$@) ifeq ($(KBUILD_EXTMOD),) ifeq ($(CONFIG_MMU),y)
Signature · 1 line
2.36.1
Palmer Dabbelt
maintainerQuoted 20 lines · On Sat, 25 Jun 2022 08:42:07 PDT (-0700), [email protected]…
When
CONFIG_COMPAT=ythevdso_installtarget fails:$ make ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- vdso_install INSTALL vdso.so make[1]: *** No rule to make target 'vdso_install'. Stop. make: *** [arch/riscv/Makefile:112: vdso_install] Error 2The problem is that
arch/riscv/kernel/compat_vdso/Makefiledoesn't have avdso_installtarget, but instead calls itcompat_vdso_install.Signed-off-by Emil Renner Berthing <[email protected]>--- arch/riscv/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/riscv/Makefile +0
-0
arch/riscv/Makefile PHONY += vdso_install · line 116
Quoted 8 lines
arch/riscv/Makefile +1
-1@@ -110,7 +110,7 @@ PHONY += vdso_install vdso_install: $(Q)$(MAKE) $(build)=arch/riscv/kernel/vdso $@ $(if $(CONFIG_COMPAT),$(Q)$(MAKE) \ - $(build)=arch/riscv/kernel/compat_vdso $@) + $(build)=arch/riscv/kernel/compat_vdso compat_$@) ifeq ($(KBUILD_EXTMOD),) ifeq ($(CONFIG_MMU),y)
Sorry for missing this, it's on fixes.