Hi.
On Mon, Dec 16, 2019 at 11:48 AM Larry Finger <Larry.Finger@xxxxxxxxxxxx> wrote:
Hi,
Since commit 39808e451fdf ("kbuild: do not read
$(KBUILD_EXTMOD)/Module.symvers"), some of the modules for VirtualBox have
failed to build. There are at least 3 such modules, namely vboxdrv, vboxnetflt,
and vboxnetadp.
As the section 6.3 of Documentation/kbuild/modules.rst says,
the best practice is to put the related modules into the same source
tree, and then do like this:
obj-m := vboxdrv/ vboxnetfit/ vboxnetadp/
If you want to maintain the three separately,
as 39808e451fdf mentions, you can useKBUILD_EXTRA_SYMBOLS.
KBUILD_EXTRA_SYMBOLS was added more than a decade.
So, you should be able to use it for your modules.
I think it is a cleaner solution than
copying around Module.symvers in your build tree.