Skip to content

Commit

Permalink
vmtest: kbuild: add CONFIG_MODULE_UNLOAD=y
Browse files Browse the repository at this point in the history
I currently have no idea whether the test kmod can actually unload
successfully because the vmtest kernels don't support unloading modules.
It might also be useful to test unloading other modules in the future.

Signed-off-by: Omar Sandoval <osandov@osandov.com>
  • Loading branch information
osandov committed Nov 21, 2022
1 parent eac49ed commit c08f6be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vmtest/kbuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class KernelFlavor(NamedTuple):
config: str

def localversion(self) -> str:
localversion = "-vmtest13"
localversion = "-vmtest14"
# The default flavor should be the "latest" version.
localversion += ".1" if self.name == "default" else ".0"
localversion += self.name
Expand Down Expand Up @@ -81,6 +81,7 @@ def kconfig(flavor: KernelFlavor) -> str:
CONFIG_EXPERT=y
{flavor.config}
CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y
CONFIG_CC_OPTIMIZE_FOR_SIZE=y
# We run the tests in KVM.
Expand Down

0 comments on commit c08f6be

Please sign in to comment.