diff options
Diffstat (limited to 'scripts/Makefile.modpost')
-rw-r--r-- | scripts/Makefile.modpost | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/scripts/Makefile.modpost b/scripts/Makefile.modpost index c6fcc597b3be..1818c502007e 100644 --- a/scripts/Makefile.modpost +++ b/scripts/Makefile.modpost | |||
@@ -56,23 +56,24 @@ _modpost: $(if $(KBUILD_MODPOST_NOFINAL), $(modules:.ko:.o),$(modules)) | |||
56 | 56 | ||
57 | # Step 2), invoke modpost | 57 | # Step 2), invoke modpost |
58 | # Includes step 3,4 | 58 | # Includes step 3,4 |
59 | modpost = scripts/mod/modpost \ | ||
60 | $(if $(CONFIG_MODVERSIONS),-m) \ | ||
61 | $(if $(CONFIG_MODULE_SRCVERSION_ALL),-a,) \ | ||
62 | $(if $(KBUILD_EXTMOD),-i,-o) $(kernelsymfile) \ | ||
63 | $(if $(KBUILD_EXTMOD),-I $(modulesymfile)) \ | ||
64 | $(if $(KBUILD_EXTMOD),-o $(modulesymfile)) \ | ||
65 | $(if $(KBUILD_EXTMOD)$(KBUILD_MODPOST_WARN),-w) | ||
66 | |||
59 | quiet_cmd_modpost = MODPOST $(words $(filter-out vmlinux FORCE, $^)) modules | 67 | quiet_cmd_modpost = MODPOST $(words $(filter-out vmlinux FORCE, $^)) modules |
60 | cmd_modpost = scripts/mod/modpost \ | 68 | cmd_modpost = $(modpost) -s |
61 | $(if $(CONFIG_MODVERSIONS),-m) \ | ||
62 | $(if $(CONFIG_MODULE_SRCVERSION_ALL),-a,) \ | ||
63 | $(if $(KBUILD_EXTMOD),-i,-o) $(kernelsymfile) \ | ||
64 | $(if $(KBUILD_EXTMOD),-I $(modulesymfile)) \ | ||
65 | $(if $(KBUILD_EXTMOD),-o $(modulesymfile)) \ | ||
66 | $(if $(KBUILD_EXTMOD)$(KBUILD_MODPOST_WARN),-w) | ||
67 | 69 | ||
68 | PHONY += __modpost | 70 | PHONY += __modpost |
69 | __modpost: $(modules:.ko=.o) FORCE | 71 | __modpost: $(modules:.ko=.o) FORCE |
70 | $(call cmd,modpost) $(wildcard vmlinux) $(filter-out FORCE,$^) | 72 | $(call cmd,modpost) $(wildcard vmlinux) $(filter-out FORCE,$^) |
71 | 73 | ||
72 | quiet_cmd_kernel-mod = MODPOST $@ | 74 | quiet_cmd_kernel-mod = MODPOST $@ |
73 | cmd_kernel-mod = $(cmd_modpost) $@ | 75 | cmd_kernel-mod = $(modpost) $@ |
74 | 76 | ||
75 | PHONY += vmlinux | ||
76 | vmlinux.o: FORCE | 77 | vmlinux.o: FORCE |
77 | $(call cmd,kernel-mod) | 78 | $(call cmd,kernel-mod) |
78 | 79 | ||