diff --git a/Makefile.include b/Makefile.include index cfac151c219aab1ec39f7dc7d3be3cef3259dd61..c2867acfe515eac4705167d22450cd57bbbc6c63 100644 --- a/Makefile.include +++ b/Makefile.include @@ -149,7 +149,7 @@ flash: all $(FLASHER) $(FFLAGS) term: - $(TERMPROG) $(PORT) + $(TERMPROG) $(TERMFLAGS) $(PORT) doc: make -BC $(RIOTBASE) doc diff --git a/boards/arduino-due/Makefile.include b/boards/arduino-due/Makefile.include index 5ece90ddcb33cd5dc685ad2447010816e9d0ede5..a3f65f1715258219aa6d75396fb6e8272c4bfbe3 100644 --- a/boards/arduino-due/Makefile.include +++ b/boards/arduino-due/Makefile.include @@ -36,6 +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 # use the nano-specs of the NewLib when available ifeq ($(shell $(LINK) -specs=nano.specs -E - 2>/dev/null >/dev/null </dev/null ; echo $$?),0) diff --git a/boards/msb-430-common/Makefile.include b/boards/msb-430-common/Makefile.include index 8d0455ddca52639987ee3ffa5dd4a436c56bb4c4..06ba075b9c3db22bd1ac91739619a20c82eb1371 100644 --- a/boards/msb-430-common/Makefile.include +++ b/boards/msb-430-common/Makefile.include @@ -22,6 +22,7 @@ export FFLAGS += -j $(PROGRAMMER) ifeq ($(strip $(PROGRAMMER)),uif) export FFLAGS += -d $(PORT) endif +export TERMFLAGS += -p export FFLAGS += "prog $(HEXFILE)" diff --git a/boards/msba2-common/Makefile.include b/boards/msba2-common/Makefile.include index 77d96a4e580ba6708637101dcc2715f28f94d5db..5869e5554d79ea38bc9c393771cb79908a5cf314 100644 --- a/boards/msba2-common/Makefile.include +++ b/boards/msba2-common/Makefile.include @@ -20,6 +20,7 @@ ifeq ($(strip $(PORT)),) export PORT = /dev/ttyUSB0 endif export FFLAGS = $(PORT) $(HEXFILE) +export TERMFLAGS += -p include $(RIOTBOARD)/msba2-common/Makefile.dep export INCLUDES += -I$(RIOTBOARD)/msba2-common/include -I$(RIOTBOARD)/msba2-common/drivers/include diff --git a/boards/redbee-econotag/Makefile.include b/boards/redbee-econotag/Makefile.include index 69dd9385fbe148211e44b2bff5119b962ef5cb4d..2f9f818624b444b00fc78c48faf58e98598f5eb9 100644 --- a/boards/redbee-econotag/Makefile.include +++ b/boards/redbee-econotag/Makefile.include @@ -26,6 +26,7 @@ ifeq ($(strip $(PORT)),) endif export FFLAGS = -t $(PORT) -f $(HEXFILE) -c 'bbmc -l redbee-econotag reset' export OFLAGS = -O binary --gap-fill=0xff +export TERMFLAGS += -p export INCLUDES += -I$(RIOTCPU)/$(CPU)/include/ -I$(RIOTBOARD)/$(BOARD)/include/ export INCLUDES += -I$(RIOTCPU)/$(CPU)/maca/include diff --git a/boards/stm32f0discovery/Makefile.include b/boards/stm32f0discovery/Makefile.include index d523cfd0f3108076e11ef245cae3a648c273192c..4632840167cf7b562d23c75c7ad6294fbd22cda6 100644 --- a/boards/stm32f0discovery/Makefile.include +++ b/boards/stm32f0discovery/Makefile.include @@ -38,6 +38,7 @@ export LINKFLAGS += -T$(LINKERSCRIPT) export OFLAGS = -O binary export FFLAGS = write bin/$(BOARD)/$(APPLICATION).hex 0x08000000 export DEBUGGER_FLAGS = $(RIOTBOARD)/$(BOARD)/dist/gdb.conf bin/$(BOARD)/$(APPLICATION).elf +export TERMFLAGS += -p # use the nano-specs of the NewLib when available ifeq ($(shell $(LINK) -specs=nano.specs -E - 2>/dev/null >/dev/null </dev/null ; echo $$?),0) diff --git a/boards/stm32f4discovery/Makefile.include b/boards/stm32f4discovery/Makefile.include index 7306ca20cbbebe2c5cd2d745c4c3b199293ac092..d65c6efd6bba30d84922d0f7e6b6971a7d7691d0 100644 --- a/boards/stm32f4discovery/Makefile.include +++ b/boards/stm32f4discovery/Makefile.include @@ -37,6 +37,7 @@ export LINKFLAGS += -T$(LINKERSCRIPT) export OFLAGS = -O binary export FFLAGS = write bin/$(BOARD)/$(APPLICATION).hex 0x8000000 export DEBUGGER_FLAGS = $(RIOTBOARD)/$(BOARD)/dist/gdb.conf $(BINDIR)/$(APPLICATION).elf +export TERMFLAGS += -p # use newLib nano-specs if available ifeq ($(shell $(LINK) -specs=nano.specs -E - 2>/dev/null >/dev/null </dev/null ; echo $$?),0) diff --git a/boards/telosb/Makefile.include b/boards/telosb/Makefile.include index f12f1d35bd56d9391314d78bf34d77155a23dece..1e5790f70c9b0bc73b7cde141733054982ab5279 100644 --- a/boards/telosb/Makefile.include +++ b/boards/telosb/Makefile.include @@ -20,6 +20,7 @@ ifeq ($(strip $(PORT)),) export PORT = /dev/ttyUSB0 endif export FFLAGS = --telosb -c $(PORT) -r -e -I -p $(HEXFILE) +export TERMFLAGS += -p export INCLUDES += -I$(RIOTCPU)/msp430-common/include -I$(RIOTBOARD)/$(BOARD)/include -I$(RIOTBASE)/drivers/cc2420/include -I$(RIOTBASE)/sys/net/include export OFLAGS = -O ihex diff --git a/boards/udoo/Makefile.include b/boards/udoo/Makefile.include index d3245e52f765938485995ee5a36d2bab2ae48b87..f924c592e69c2c1764d334a92dd0338043850de6 100644 --- a/boards/udoo/Makefile.include +++ b/boards/udoo/Makefile.include @@ -36,6 +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 # use the nano-specs of the NewLib when available ifeq ($(shell $(LINK) -specs=nano.specs -E - 2>/dev/null >/dev/null </dev/null ; echo $$?),0) diff --git a/boards/z1/Makefile.include b/boards/z1/Makefile.include index 53c115d44780ec8622c6e6271717ec933abffa5a..843f2e1331001cba8fafdaa713c58d6cedcf2ce7 100644 --- a/boards/z1/Makefile.include +++ b/boards/z1/Makefile.include @@ -21,6 +21,7 @@ ifeq ($(strip $(PORT)),) endif export FFLAGS = --z1 -I -c $(PORT) -r -e -p $(HEXFILE) export OFLAGS = -O ihex +export TERMFLAGS += -p export INCLUDES += -I $(RIOTCPU)/msp430-common/include -I$(RIOTBOARD)/$(BOARD)/include -I$(RIOTBASE)/drivers/cc2420/include -I$(RIOTBASE)/sys/net/include