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