• Andreas Gruenbacher's avatar
    kbuild: Warn when building external modules without modversions · 38759db6
    Andreas Gruenbacher authored
    This adds a warning when building external modules (M= or SUBDIRS=
    syntax) and there is no Module.symvers in the object tree. A missing
    Module.symvers is a clear sign that the kernel tree itself was never
    compiled. The resulting modules will work, but no symbol version
    information will be attached to kernel symbols the module uses (because
    that information comes from Module.symvers), and so the module will be
    more unsafe.
    Futhermore the external module will not record what other modules it is
    depended on.
    
    The test works with CONFIG_MODVERSIONS enabled or disabled.
    Signed-off-by: default avatarAndreas Gruenbacher <agruen@suse.de>
    Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
    38759db6
Makefile 42.7 KB