From 248a8531a51cbe7496d66b9109b9a06d143f9960 Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Sun, 10 Aug 2014 05:20:57 +0200 Subject: [PATCH] make: Fix TERMFLAGS Sometimes boards/*/Makefile.include (e. g. in case of the msba2) gets included twice somehow, leading the TERMFLAG to be set twice and faulty. This fixes that. --- Makefile.include | 2 +- boards/arduino-due/Makefile.include | 2 +- boards/msb-430-common/Makefile.include | 2 +- boards/msba2-common/Makefile.include | 2 +- boards/native/Makefile.include | 4 ++++ boards/pca10000/Makefile.include | 2 +- boards/pca10005/Makefile.include | 2 +- boards/redbee-econotag/Makefile.include | 2 +- boards/stm32f0discovery/Makefile.include | 2 +- boards/stm32f3discovery/Makefile.include | 2 +- boards/stm32f4discovery/Makefile.include | 2 +- boards/telosb/Makefile.include | 2 +- boards/udoo/Makefile.include | 2 +- boards/z1/Makefile.include | 2 +- 14 files changed, 17 insertions(+), 13 deletions(-) diff --git a/Makefile.include b/Makefile.include index a30ce2be4f..f51b8c9cfe 100644 --- a/Makefile.include +++ b/Makefile.include @@ -193,7 +193,7 @@ flash: all $(FLASHER) $(FFLAGS) term: - $(TERMPROG) $(TERMFLAGS) $(PORT) + $(TERMPROG) $(TERMFLAGS) doc: make -BC $(RIOTBASE) doc diff --git a/boards/arduino-due/Makefile.include b/boards/arduino-due/Makefile.include index 32fa833303..eb4b782964 100644 --- a/boards/arduino-due/Makefile.include +++ b/boards/arduino-due/Makefile.include @@ -36,7 +36,7 @@ export LINKFLAGS += -g3 -ggdb -std=gnu99 $(CPU_USAGE) $(FPU_USAGE) -mlittle-endi export LINKFLAGS += -T$(LINKERSCRIPT) export OFLAGS += -O binary export FFLAGS += -R -e -w -v -b bin/$(BOARD)/$(APPLICATION).hex -export TERMFLAGS += -p +export TERMFLAGS += -p "$(PORT)" # use the nano-specs of the NewLib when available ifeq ($(shell $(LINK) -specs=nano.specs -E - 2>/dev/null >/dev/null /dev/null >/dev/null /dev/null >/dev/null /dev/null >/dev/null /dev/null >/dev/null /dev/null >/dev/null