From 2c953c334607bd9af3692939729833d6eba317b9 Mon Sep 17 00:00:00 2001 From: Niclas Finne Date: Fri, 11 Apr 2014 17:36:42 +0200 Subject: [PATCH] Support verbosity control when building MSP430-based platforms with the IAR compiler. --- cpu/msp430/Makefile.msp430 | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/cpu/msp430/Makefile.msp430 b/cpu/msp430/Makefile.msp430 index da64fcc85..d6a83df73 100644 --- a/cpu/msp430/Makefile.msp430 +++ b/cpu/msp430/Makefile.msp430 @@ -88,7 +88,8 @@ LDFLAGSNO += -D_STACK_SIZE=$(IAR_STACK_SIZE) -D_DATA16_HEAP_SIZE=$(IAR_DATA16_HE CUSTOM_RULE_C_TO_O = 1 %.o: %.c - $(CC) $(CFLAGS) $< -o $@ + $(TRACE_CC) + $(Q)$(CC) $(CFLAGS) $< -o $@ define FINALIZE_CYGWIN_DEPENDENCY sed -e 's/ \([A-Z]\):\\/ \/cygdrive\/\L\1\//' -e 's/\\/\//g' \ @@ -98,14 +99,16 @@ endef CUSTOM_RULE_C_TO_OBJECTDIR_O = 1 $(OBJECTDIR)/%.o: %.c | $(OBJECTDIR) - $(CC) $(CFLAGS) $< --dependencies=m $(@:.o=.P) -o $@ + $(TRACE_CC) + $(Q)$(CC) $(CFLAGS) $< --dependencies=m $(@:.o=.P) -o $@ ifeq ($(HOST_OS),Windows) @$(FINALIZE_CYGWIN_DEPENDENCY) endif CUSTOM_RULE_C_TO_CO = 1 %.co: %.c - $(CC) $(CFLAGS) -DAUTOSTART_ENABLE $< -o $@ + $(TRACE_CC) + $(Q)$(CC) $(CFLAGS) -DAUTOSTART_ENABLE $< -o $@ AROPTS = -o @@ -175,7 +178,8 @@ PROJECT_OBJECTFILES += ${addprefix $(OBJECTDIR)/,$(CONTIKI_TARGET_MAIN:.c=.o)} $(STRIP) --strip-unneeded -g -x -o $@ $< %.o: ${CONTIKI_TARGET}/loader/%.S - $(AS) -o $(notdir $(<:.S=.o)) $< + $(TRACE_AS) + $(Q)$(AS) -o $(notdir $(<:.S=.o)) $< %.firmware: %.${TARGET} mv $< $@