diff options
-rw-r--r-- | Makefile.rules | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile.rules b/Makefile.rules index a5e79f9f25..ec7e379616 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -33,10 +33,12 @@ _dir_y_create := $(foreach d,$(dirs-y),$(shell [ -d $(out)/$(BLD)/$(d) ] || \ # (warnings/errors only). Use echo thus: $(call echo,"stuff to echo") ifeq ($(V),0) Q := @ +echo = echo -n; quiet = echo -n; $(cmd_$(1)) silent = 1>/dev/null silent_err = 2>/dev/null else +echo = echo $(1); ifeq ($(V),) Q := @ quiet = @echo ' $(2)' $(subst $(out)/,,$@) ; $(cmd_$(1)) @@ -176,7 +178,7 @@ test-targets=$(foreach t,$(test-list-y),test-$(t)) ifeq "$(CONFIG_COMMON_RUNTIME)" "y" $(test-targets): test-%: @set -e ; \ - echo " BUILD $(out)/$*" ; \ + $(call echo," BUILD $(out)/$*") \ $(MAKE) --no-print-directory BOARD=$(BOARD) PROJECT=$* \ V=$(V) out=$(out)/$* TEST_BUILD=y; \ cp $(out)/$*/$*.bin $(out)/test-$*.bin @@ -192,7 +194,7 @@ run-test-targets=$(foreach t,$(test-list-host),run-$(t)) $(host-test-targets): host-%: @set -e ; \ - echo " BUILD host - build/host/$*" ; \ + $(call echo," BUILD host - build/host/$*") \ $(MAKE) --no-print-directory BOARD=host PROJECT=$* \ V=$(V) out=build/host/$* TEST_BUILD=y EMU_BUILD=y $(TEST_FLAG) \ CROSS_COMPILE= build/host/$*/$*.exe |