summaryrefslogtreecommitdiffstatshomepage
path: root/teensy
diff options
context:
space:
mode:
authorDave Hylands <dhylands@gmail.com>2014-01-08 10:15:39 -0800
committerDave Hylands <dhylands@gmail.com>2014-01-08 10:30:06 -0800
commit4646801181a6e12e36352fa874089ffeb9474eb3 (patch)
tree281a79ff8253b18f2f6fa3c40e18beb9ba65aab2 /teensy
parent6c73ca1e754aa5fb822999a0b46f01e216619ec6 (diff)
downloadmicropython-4646801181a6e12e36352fa874089ffeb9474eb3.tar.gz
micropython-4646801181a6e12e36352fa874089ffeb9474eb3.zip
Make build output quieter.
Use make V=1e make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity. This should fix issue #117
Diffstat (limited to 'teensy')
-rw-r--r--teensy/Makefile29
1 files changed, 19 insertions, 10 deletions
diff --git a/teensy/Makefile b/teensy/Makefile
index fa1ec63e8f..ade9b37040 100644
--- a/teensy/Makefile
+++ b/teensy/Makefile
@@ -6,6 +6,7 @@ include ../py/py.mk
# program for deletion
RM = /bin/rm
+ECHO = @echo
ifeq ($(ARDUINO),)
$(error Please define ARDUINO (where TeensyDuino is installed))
@@ -62,35 +63,43 @@ all2: $(BUILD) hex
hex: $(BUILD)/flash.hex
post_compile: $(BUILD)/flash.hex
- $(TOOLS_PATH)/teensy_post_compile -file="$(basename $<)" -path="$(BUILD)" -tools="$(TOOLS_PATH)"
+ $(ECHO) "Preparing $@ for upload"
+ $(Q)$(TOOLS_PATH)/teensy_post_compile -file="$(basename $(<F))" -path="$(<D)" -tools="$(TOOLS_PATH)"
reboot:
- -$(TOOLS_PATH)/teensy_reboot
+ $(ECHO) "REBOOT"
+ -$(Q)$(TOOLS_PATH)/teensy_reboot
upload: post_compile reboot
$(BUILD)/flash.elf: $(OBJ)
- $(CC) $(LDFLAGS) -o "$@" -Wl,-Map,$(@:.elf=.map) $(OBJ) $(LIBS)
- $(SIZE) $@
+ $(ECHO) "LINK $<"
+ $(Q)$(CC) $(LDFLAGS) -o "$@" -Wl,-Map,$(@:.elf=.map) $(OBJ) $(LIBS)
+ $(Q)$(SIZE) $@
$(BUILD)/%.hex: $(BUILD)/%.elf
- $(OBJCOPY) -O ihex -R .eeprom "$<" "$@"
+ $(ECHO) "HEX $<"
+ $(Q)$(OBJCOPY) -O ihex -R .eeprom "$<" "$@"
$(BUILD)/%.o: %.c
- $(CC) $(CFLAGS) -c -o $@ $<
+ $(ECHO) "CC $<"
+ $(Q)$(CC) $(CFLAGS) -c -o $@ $<
$(BUILD)/%.o: ../stm/%.s
- $(AS) -o $@ $<
+ $(ECHO) "AS $<"
+ $(Q)$(AS) -o $@ $<
$(BUILD)/%.o: ../stm/%.c
- $(CC) $(CFLAGS) -c -o $@ $<
+ $(ECHO) "CC $<"
+ $(Q)$(CC) $(CFLAGS) -c -o $@ $<
$(BUILD)/%.o: $(CORE_PATH)/%.c
- $(CC) $(CFLAGS) -c -o $@ $<
+ $(ECHO) "CC $<"
+ $(Q)$(CC) $(CFLAGS) -c -o $@ $<
$(BUILD)/main.o: mpconfigport.h
clean:
- /bin/rm -rf $(BUILD)
+ $(RM) -rf $(BUILD)
.PHONY: all all2 clean