Skip to content

Commit 9539ba4

Browse files
committed
Merge tag 'riscv-for-linus-5.16-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux
Pull RISC-V fixes from Palmer Dabbelt: "I have two patches for 5.16: - allow external modules to be built against read-only source trees - turn KVM on in the defconfigs The second one isn't technically a fix, but it got tied up pending some defconfig cleanups that ended up finding some larger issues. I figured it'd be better to get the config changes some more testing, but didn't want to hold up turning KVM on for that" * tag 'riscv-for-linus-5.16-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux: riscv: fix building external modules RISC-V: Enable KVM in RV64 and RV32 defconfigs as a module
2 parents 7af959b + 5a19c7e commit 9539ba4

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

arch/riscv/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,13 @@ PHONY += vdso_install
107107
vdso_install:
108108
$(Q)$(MAKE) $(build)=arch/riscv/kernel/vdso $@
109109

110+
ifeq ($(KBUILD_EXTMOD),)
110111
ifeq ($(CONFIG_MMU),y)
111112
prepare: vdso_prepare
112113
vdso_prepare: prepare0
113114
$(Q)$(MAKE) $(build)=arch/riscv/kernel/vdso include/generated/vdso-offsets.h
114115
endif
116+
endif
115117

116118
ifneq ($(CONFIG_XIP_KERNEL),y)
117119
ifeq ($(CONFIG_RISCV_M_MODE)$(CONFIG_SOC_CANAAN),yy)

arch/riscv/configs/defconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ CONFIG_SOC_VIRT=y
1919
CONFIG_SOC_MICROCHIP_POLARFIRE=y
2020
CONFIG_SMP=y
2121
CONFIG_HOTPLUG_CPU=y
22+
CONFIG_VIRTUALIZATION=y
23+
CONFIG_KVM=m
2224
CONFIG_JUMP_LABEL=y
2325
CONFIG_MODULES=y
2426
CONFIG_MODULE_UNLOAD=y

arch/riscv/configs/rv32_defconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ CONFIG_SOC_VIRT=y
1919
CONFIG_ARCH_RV32I=y
2020
CONFIG_SMP=y
2121
CONFIG_HOTPLUG_CPU=y
22+
CONFIG_VIRTUALIZATION=y
23+
CONFIG_KVM=m
2224
CONFIG_JUMP_LABEL=y
2325
CONFIG_MODULES=y
2426
CONFIG_MODULE_UNLOAD=y

0 commit comments

Comments
 (0)