objtool: make it visible in make V=1 output
authorJiri Slaby <jslaby@suse.cz>
Fri, 21 Apr 2017 15:16:20 +0000 (17:16 +0200)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 3 May 2017 04:39:37 +0000 (13:39 +0900)
It is currently impossible to see what is going on with objtool when
building, so call echo-cmd to see the actions:
  gcc -Wp,-MD,arch/x86/entry/.entry_64.o.d  -nostdinc -isystem ...
  ./tools/objtool/objtool check "arch/x86/entry/entry_64.o";

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Michal Marek <mmarek@suse.com>
Cc: linux-kbuild@vger.kernel.org
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/Makefile.build

index e5f1425c601f191e6c229e89fcabb2f06c14087a..733e044fff8b37bae101788ac82be43fafa1a942 100644 (file)
@@ -280,14 +280,14 @@ define rule_cc_o_c
        $(call echo-cmd,checksrc) $(cmd_checksrc)                         \
        $(call cmd_and_fixdep,cc_o_c)                                     \
        $(cmd_modversions_c)                                              \
-       $(cmd_objtool)                                                    \
+       $(call echo-cmd,objtool) $(cmd_objtool)                           \
        $(call echo-cmd,record_mcount) $(cmd_record_mcount)
 endef
 
 define rule_as_o_S
        $(call cmd_and_fixdep,as_o_S)                                     \
        $(cmd_modversions_S)                                              \
-       $(cmd_objtool)
+       $(call echo-cmd,objtool) $(cmd_objtool)
 endef
 
 # List module undefined symbols (or empty line if not enabled)