mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
tools lib traceevent: Use global QUIET_INSTALL build output
Using global QUIET_INSTALL build output variable and factoring plugins installation so we could have only single install message for plugins: INSTALL trace_plugins Getting rid of local print_install. Signed-off-by: Jiri Olsa <[email protected]> Cc: Corey Ashford <[email protected]> Cc: David Ahern <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Steven Rostedt <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
This commit is contained in:
parent
e6262e2313
commit
02a82c7bcd
1 changed files with 11 additions and 10 deletions
|
|
@ -152,10 +152,8 @@ override CFLAGS += $(udis86-flags) -D_GNU_SOURCE
|
|||
|
||||
ifeq ($(VERBOSE),1)
|
||||
Q =
|
||||
print_install =
|
||||
else
|
||||
Q = @
|
||||
print_install = echo ' INSTALL '$1;
|
||||
endif
|
||||
|
||||
do_compile_shared_library = \
|
||||
|
|
@ -307,22 +305,25 @@ TAGS: force
|
|||
--regex='/_PE(\([^,)]*\).*/PEVENT_ERRNO__\1/'
|
||||
|
||||
define do_install
|
||||
$(print_install) \
|
||||
if [ ! -d '$(DESTDIR_SQ)$2' ]; then \
|
||||
$(INSTALL) -d -m 755 '$(DESTDIR_SQ)$2'; \
|
||||
fi; \
|
||||
$(INSTALL) $1 '$(DESTDIR_SQ)$2'
|
||||
endef
|
||||
|
||||
define do_install_plugins
|
||||
for plugin in $1; do \
|
||||
$(call do_install,$$plugin,$(plugin_dir_SQ)); \
|
||||
done
|
||||
endef
|
||||
|
||||
install_lib: all_cmd install_plugins
|
||||
$(Q)$(call do_install,$(LIB_FILE),$(bindir_SQ))
|
||||
$(call QUIET_INSTALL, $(LIB_FILE)) \
|
||||
$(call do_install,$(LIB_FILE),$(bindir_SQ))
|
||||
|
||||
PLUGINS_INSTALL = $(subst .so,.install,$(PLUGINS))
|
||||
|
||||
$(PLUGINS_INSTALL): %.install : %.so force
|
||||
$(Q)$(call do_install,$<,$(plugin_dir_SQ))
|
||||
|
||||
install_plugins: $(PLUGINS_INSTALL)
|
||||
install_plugins: $(PLUGINS)
|
||||
$(call QUIET_INSTALL, trace_plugins) \
|
||||
$(call do_install_plugins, $(PLUGINS))
|
||||
|
||||
install: install_lib
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue