riscv: fix building external modules
authorAndreas Schwab <schwab@suse.de>
Tue, 2 Nov 2021 15:51:43 +0000 (16:51 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Nov 2021 08:48:40 +0000 (09:48 +0100)
commit9c2ff78cf833eaf3a9fbfdab3ddf0058f048bc34
tree9ce917aff9cbafcd10601f67cf3221b111f8e38e
parent35d97fd89c127f0deadcb41fe64f013b9b4abeda
riscv: fix building external modules

[ Upstream commit 5a19c7e06236a9c55dfc001bb4d1a8f1950d23e7 ]

When building external modules, vdso_prepare should not be run.  If the
kernel sources are read-only, it will fail.

Fixes: fde9c59aebaf ("riscv: explicitly use symbol offsets for VDSO")
Signed-off-by: Andreas Schwab <schwab@suse.de>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Tested-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/riscv/Makefile