The symbol dump *.symvers is the output of modpost. Print it in the short log.
Showing the changes to scripts (1 of 1 file). Show all
Unified · Split
| @@ -44,25 +44,26 @@ include include/config/auto.conf · 43 unmodified lines | ||
| 44 | 44 | include scripts/Kbuild.include |
| 45 | 45 | |
| 46 | 46 | kernelsymfile := $(objtree)/Module.symvers |
| 47 | −modulesymfile := $(KBUILD_EXTMOD)/Module.symvers | |
| 48 | 47 | |
| 49 | 48 | MODPOST = scripts/mod/modpost \ |
| 50 | 49 | $(if $(CONFIG_MODVERSIONS),-m) \ |
| 51 | 50 | $(if $(CONFIG_MODULE_SRCVERSION_ALL),-a) \ |
| 52 | − $(if $(KBUILD_EXTMOD),-i,-o) $(kernelsymfile) \ | |
| 51 | + $(if $(KBUILD_EXTMOD),-i $(kernelsymfile)) \ | |
| 53 | 52 | $(if $(KBUILD_EXTMOD),$(addprefix -i ,$(KBUILD_EXTRA_SYMBOLS))) \ |
| 54 | − $(if $(KBUILD_EXTMOD),-o $(modulesymfile)) \ | |
| 55 | 53 | $(if $(CONFIG_SECTION_MISMATCH_WARN_ONLY),,-E) \ |
| 56 | − $(if $(KBUILD_MODPOST_WARN),-w) | |
| 54 | + $(if $(KBUILD_MODPOST_WARN),-w) \ | |
| 55 | + -o $@ | |
| 57 | 56 | |
| 58 | 57 | ifdef MODPOST_VMLINUX |
| 59 | 58 | |
| 60 | −quiet_cmd_modpost = MODPOST vmlinux.o | |
| 61 | − cmd_modpost = $(MODPOST) vmlinux.o | |
| 59 | +quiet_cmd_modpost = MODPOST $@ | |
| 60 | + cmd_modpost = $(MODPOST) $< | |
| 62 | 61 | |
| 63 | −__modpost: | |
| 62 | +Module.symvers: vmlinux.o | |
| 64 | 63 | $(call cmd,modpost) |
| 65 | 64 | |
| 65 | +__modpost: Module.symvers | |
| 66 | + | |
| 66 | 67 | else |
| 67 | 68 | |
| 68 | 69 | MODPOST += -s \ |
| @@ -70,6 +71,8 @@ MODPOST += -s \ · 1 unmodified line | ||
| 70 | 71 | |
| 71 | 72 | ifeq ($(KBUILD_EXTMOD),) |
| 72 | 73 | MODPOST += $(wildcard vmlinux) |
| 74 | +output-symdump := Module.symvers | |
| 75 | + | |
| 73 | 76 | else |
| 74 | 77 | |
| 75 | 78 | # set src + obj - they may be used in the modules's Makefile |
| @@ -83,6 +86,8 @@ include $(if $(wildcard $(KBUILD_EXTMOD)/Kbuild), \ · 7 unmodified lines | ||
| 83 | 86 | # modpost option for external modules |
| 84 | 87 | MODPOST += -e |
| 85 | 88 | |
| 89 | +output-symdump := $(KBUILD_EXTMOD)/Module.symvers | |
| 90 | + | |
| 86 | 91 | endif |
| 87 | 92 | |
| 88 | 93 | # modpost options for modules (both in-kernel and external) |
| @@ -94,20 +99,22 @@ ifneq ($(findstring i,$(filter-out --%,$(MAKEFLAGS))),) · 5 unmodified lines | ||
| 94 | 99 | MODPOST += -n |
| 95 | 100 | endif |
| 96 | 101 | |
| 97 | −# find all modules listed in modules.order | |
| 98 | −modules := $(sort $(shell cat $(MODORDER))) | |
| 99 | − | |
| 100 | −# Read out modules.order instead of expanding $(modules) to pass in modpost. | |
| 102 | +# Read out modules.order to pass in modpost. | |
| 101 | 103 | # Otherwise, allmodconfig would fail with "Argument list too long". |
| 102 | −quiet_cmd_modpost = MODPOST $(words $(modules)) modules | |
| 104 | +quiet_cmd_modpost = MODPOST $@ | |
| 103 | 105 | cmd_modpost = sed 's/ko$$/o/' $(MODORDER) | $(MODPOST) -T - |
| 104 | 106 | |
| 105 | −__modpost: | |
| 107 | +$(output-symdump): FORCE | |
| 106 | 108 | $(call cmd,modpost) |
| 109 | + | |
| 110 | +__modpost: $(output-symdump) | |
| 107 | 111 | ifneq ($(KBUILD_MODPOST_NOFINAL),1) |
| 108 | 112 | $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modfinal |
| 109 | 113 | endif |
| 110 | 114 | |
| 115 | +PHONY += FORCE | |
| 116 | +FORCE: | |
| 117 | + | |
| 111 | 118 | endif |
| 112 | 119 | |
| 113 | 120 | .PHONY: $(PHONY) |