I recently went through Unpacking kernel-source rpm off-system (OpenSuse)?; and as it took > 10 h on my machine, imagine my surprise that after doing the process described there, I find no Module.symvers
anywhere!
When I search for "generate Module.symvers", I get this:
NOTE: "modules_prepare" will not build Module.symvers even if
CONFIG_MODVERSIONS is set; therefore, a full kernel build needs to be
executed to make module versioning work.
(Linux Kernel Documentation :: kbuild : modules.txt)
... but I don't really get it - didn't the kernel get built in the previous step (described in the link given above? I sure know it took > 10 h for CC to generate a whole bunch of *.o files, and LD to link them, so something must have been built. But if so, where is then Module.symvers
?
In more explicit terms, exactly what command should I call to generate Module.symvers? I know that make prepare
will not work - but what is the command that will?
Module.symvers
byzypper install kernel-source
, and similar on other linux distro. The file is located inlib/modules/xxx/build
.