History

kbuild: refactor quiet_modtag

part-of-module and quiet_modtag are set for the same targets. Define quiet_modtag based on part-of-module.

Masahiro Yamada committed 7 years ago

Commit 45c43721 parent b39a6911 file · +1 −6Browse files

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

Unified · Split

scripts/Makefile.build+1−6
@@ -98,18 +98,13 @@ modkern_cflags = \ · 97 unmodified lines
9898 $(if $(part-of-module), \
9999 $(KBUILD_CFLAGS_MODULE) $(CFLAGS_MODULE), \
100100 $(KBUILD_CFLAGS_KERNEL) $(CFLAGS_KERNEL))
101−quiet_modtag := $(empty) $(empty)
101+quiet_modtag = $(if $(part-of-module),[M], )
102102
103103 $(real-obj-m) : part-of-module := y
104104 $(real-obj-m:.o=.i) : part-of-module := y
105105 $(real-obj-m:.o=.s) : part-of-module := y
106106 $(real-obj-m:.o=.lst): part-of-module := y
107107
108−$(real-obj-m) : quiet_modtag := [M]
109−$(real-obj-m:.o=.i) : quiet_modtag := [M]
110−$(real-obj-m:.o=.s) : quiet_modtag := [M]
111−$(real-obj-m:.o=.lst): quiet_modtag := [M]
112−
113108 quiet_cmd_cc_s_c = CC $(quiet_modtag) $@
114109 cmd_cc_s_c = $(CC) $(c_flags) $(DISABLE_LTO) -fverbose-asm -S -o $@ $<
115110