History

kbuild: do not remove empty *.symtypes explicitly

Presumably, 'test -s $@ || rm -f $@' intends to remove the output when the genksyms command fails. It is unneeded because .DELETE_ON_ERROR automatically removes the output on failure.

Masahiro Yamada committed 4 years ago

Commit dc6dc3e1 parent f43e31d1 file · +2 −6Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/Makefile.build+2−6
@@ -135,9 +135,7 @@ genksyms = scripts/genksyms/genksyms \ · 134 unmodified lines
135135 cmd_gensymtypes_c = $(CPP) -D__GENKSYMS__ $(c_flags) $< | $(genksyms)
136136
137137 quiet_cmd_cc_symtypes_c = SYM $(quiet_modtag) $@
138−cmd_cc_symtypes_c = \
139− $(call cmd_gensymtypes_c,true,$@) >/dev/null; \
140− test -s $@ || rm -f $@
138+ cmd_cc_symtypes_c = $(call cmd_gensymtypes_c,true,$@) >/dev/null
141139
142140 $(obj)/%.symtypes : $(src)/%.c FORCE
143141 $(call cmd,cc_symtypes_c)
@@ -348,9 +346,7 @@ cmd_gensymtypes_S = \ · 204 unmodified lines
348346 $(CPP) -D__GENKSYMS__ $(c_flags) -xc - | $(genksyms)
349347
350348 quiet_cmd_cc_symtypes_S = SYM $(quiet_modtag) $@
351−cmd_cc_symtypes_S = \
352− $(call cmd_gensymtypes_S,true,$@) >/dev/null; \
353− test -s $@ || rm -f $@
349+ cmd_cc_symtypes_S = $(call cmd_gensymtypes_S,true,$@) >/dev/null
354350
355351 $(obj)/%.symtypes : $(src)/%.S FORCE
356352 $(call cmd,cc_symtypes_S)