If modpost fails to load a symbol dump file, it cannot check unresolved symbols, hence module dependency will not be added. Nor CRCs can be added. Currently, external module builds check only $(objtree)/Module.symvers, but it should check files specified by KBUILD_EXTRA_SYMBOLS as well. Move the warning message from the top Makefile to scripts/Makefile.modpost and print the warning if any dump file is missing.
Showing the changes to scripts (1 of 2 files). Show all
Unified · Split
| @@ -98,8 +98,11 @@ ifneq ($(findstring i,$(filter-out --%,$(MAKEFLAGS))),) · 97 unmodified lines | ||
| 98 | 98 | MODPOST += -n |
| 99 | 99 | endif |
| 100 | 100 | |
| 101 | +# Clear VPATH to not search for *.symvers in $(srctree). Check only $(objtree). | |
| 102 | +VPATH := | |
| 101 | 103 | $(input-symdump): |
| 102 | − @: | |
| 104 | + @echo >&2 'WARNING: Symbol version dump "$@" is missing.' | |
| 105 | + @echo >&2 ' Modules may not have dependencies or modversions.' | |
| 103 | 106 | |
| 104 | 107 | # Read out modules.order to pass in modpost. |
| 105 | 108 | # Otherwise, allmodconfig would fail with "Argument list too long". |