aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/Makefile.build
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-07-17 02:17:58 -0400
committerMasahiro Yamada <yamada.masahiro@socionext.com>2019-07-17 13:19:31 -0400
commit60ae1b194b4548102fea0f5091af83b478f2352b (patch)
tree82588bbb335b16a7f05422e646da9b7cb3c1b24d /scripts/Makefile.build
parentb7dca6dd1e591ad19a9aae716f3898be8063f880 (diff)
kbuild: remove the first line of *.mod files
The current format of *.mod is like this: line 1: directory path to the .ko file line 2: a list of objects linked into this module line 3: unresolved symbols (only when CONFIG_TRIM_UNUSED_KSYMS=y) Now that *.mod and *.ko are created in the same directory, the line 1 provides no valuable information. It can be derived by replacing the extension .mod with .ko. In fact, nobody uses the first line any more. Cut down the first line. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts/Makefile.build')
-rw-r--r--scripts/Makefile.build4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build
index c6dfcc028f56..9f37f203882f 100644
--- a/scripts/Makefile.build
+++ b/scripts/Makefile.build
@@ -274,7 +274,7 @@ $(obj)/%.o: $(src)/%.c $(recordmcount_source) $(objtool_dep) FORCE
274$(single-used-m): $(obj)/%.o: $(src)/%.c $(recordmcount_source) $(objtool_dep) FORCE 274$(single-used-m): $(obj)/%.o: $(src)/%.c $(recordmcount_source) $(objtool_dep) FORCE
275 $(call cmd,force_checksrc) 275 $(call cmd,force_checksrc)
276 $(call if_changed_rule,cc_o_c) 276 $(call if_changed_rule,cc_o_c)
277 @{ echo $(@:.o=.ko); echo $@; \ 277 @{ echo $@; \
278 $(cmd_undef_syms); } > $(patsubst %.o,%.mod,$@) 278 $(cmd_undef_syms); } > $(patsubst %.o,%.mod,$@)
279 279
280quiet_cmd_cc_lst_c = MKLST $@ 280quiet_cmd_cc_lst_c = MKLST $@
@@ -456,7 +456,7 @@ quiet_cmd_link_multi-m = LD [M] $@
456 456
457$(multi-used-m): FORCE 457$(multi-used-m): FORCE
458 $(call if_changed,link_multi-m) 458 $(call if_changed,link_multi-m)
459 @{ echo $(@:.o=.ko); echo $(filter %.o,$^); \ 459 @{ echo $(filter %.o,$^); \
460 $(cmd_undef_syms); } > $(patsubst %.o,%.mod,$@) 460 $(cmd_undef_syms); } > $(patsubst %.o,%.mod,$@)
461$(call multi_depend, $(multi-used-m), .o, -objs -y -m) 461$(call multi_depend, $(multi-used-m), .o, -objs -y -m)
462 462