Simplified host OS platform detection in Makefiles
This commit is contained in:
parent
745f071c98
commit
9c99d46e24
17 changed files with 66 additions and 134 deletions
|
@ -31,23 +31,15 @@ include $(CONTIKIAVR)/Makefile.avr
|
|||
avr-objdump -zhD $< > $@
|
||||
|
||||
|
||||
ifndef WINDIR
|
||||
ifdef OS
|
||||
ifneq (,$(findstring Windows,$(OS)))
|
||||
WINDIR := Windows
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(PRGBOARD), )
|
||||
PRGBOARD = mib510
|
||||
endif
|
||||
|
||||
ifeq ($(PORT), )
|
||||
ifndef WINDIR
|
||||
PORT = /dev/ttyUSB0
|
||||
else
|
||||
ifeq ($(HOST_OS), Windows)
|
||||
PORT = COM1
|
||||
else
|
||||
PORT = /dev/ttyUSB0
|
||||
endif
|
||||
endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue