Browse Source

boards/*/Makefile.include: replace $(shell ls) by native Makefile functions

pr/gpio
Joakim Nohlgård 7 years ago
parent
commit
ae108581d3
  1. 2
      boards/airfy-beacon/Makefile.include
  2. 2
      boards/arduino-due/Makefile.include
  3. 2
      boards/ek-lm4f120xl/Makefile.include
  4. 2
      boards/f4vi1/Makefile.include
  5. 2
      boards/fox/Makefile.include
  6. 2
      boards/iotlab-m3/Makefile.include
  7. 2
      boards/limifrog-v1/Makefile.include
  8. 2
      boards/mbed_lpc1768/Makefile.include
  9. 2
      boards/msb-430-common/Makefile.include
  10. 2
      boards/msbiot/Makefile.include
  11. 2
      boards/mulle/Makefile.include
  12. 2
      boards/nrf51dongle/Makefile.include
  13. 2
      boards/nrf52dk/Makefile.include
  14. 2
      boards/nrf6310/Makefile.include
  15. 2
      boards/nucleo-f091/Makefile.include
  16. 2
      boards/nucleo-f103/Makefile.include
  17. 2
      boards/nucleo-f303/Makefile.include
  18. 2
      boards/nucleo-f334/Makefile.include
  19. 2
      boards/nucleo-f401/Makefile.include
  20. 2
      boards/nucleo-l1/Makefile.include
  21. 2
      boards/openmote-cc2538/Makefile.include
  22. 2
      boards/pca10000/Makefile.include
  23. 2
      boards/pca10005/Makefile.include
  24. 2
      boards/remote/Makefile.include
  25. 2
      boards/samr21-xpro/Makefile.include
  26. 2
      boards/slwstk6220a/Makefile.include
  27. 2
      boards/stm32f0discovery/Makefile.include
  28. 2
      boards/stm32f3discovery/Makefile.include
  29. 2
      boards/stm32f4discovery/Makefile.include
  30. 2
      boards/telosb/Makefile.include
  31. 2
      boards/weio/Makefile.include
  32. 2
      boards/wsn430-common/Makefile.include
  33. 2
      boards/yunjia-nrf51822/Makefile.include
  34. 2
      boards/z1/Makefile.include

2
boards/airfy-beacon/Makefile.include

@ -4,7 +4,7 @@ export CPU_MODEL = nrf51x22xxaa
# define the default port depending on the host OS
PORT_LINUX ?= /dev/ttyUSB0
PORT_DARWIN ?= $(shell ls -1 /dev/tty.SLAB_USBtoUART* | head -n 1)
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
# setup serial terminal
include $(RIOTBOARD)/Makefile.include.serial

2
boards/arduino-due/Makefile.include

@ -4,7 +4,7 @@ export CPU_MODEL = sam3x8e
# define the default port depending on the host OS
PORT_LINUX ?= /dev/ttyACM0
PORT_DARWIN ?= $(shell ls -1 /dev/tty.usbmodem* | head -n 1)
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
# define board specific flasher options
export FLASHER = $(RIOTBOARD)/$(BOARD)/dist/flash.sh

2
boards/ek-lm4f120xl/Makefile.include

@ -4,7 +4,7 @@ export CPU_MODEL = LM4F120H5QR
#define the default port depending on the host OS
PORT_LINUX ?= /dev/ttyACM0
PORT_DARWIN ?= $(shell ls -1 /dev/tty.usbmodem* | head -n 1)
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
# setup serial terminal
include $(RIOTBOARD)/Makefile.include.serial

2
boards/f4vi1/Makefile.include

@ -4,7 +4,7 @@ export CPU_MODEL = stm32f415rg
# define the default port depending on the host OS
PORT_LINUX ?= /dev/ttyUSB0
PORT_DARWIN ?= $(shell ls -1 /dev/tty.SLAB_USBtoUART* | head -n 1)
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
# setup serial terminal
include $(RIOTBOARD)/Makefile.include.serial

2
boards/fox/Makefile.include

@ -4,7 +4,7 @@ export CPU_MODEL = stm32f103re
# set default port depending on operating system
PORT_LINUX ?= /dev/ttyUSB1
PORT_DARWIN ?= $(shell ls -1 /dev/tty.usbserial* | head -n 1)
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbserial*)))
# setup serial terminal
include $(RIOTBOARD)/Makefile.include.serial

2
boards/iotlab-m3/Makefile.include

@ -4,7 +4,7 @@ export CPU_MODEL = stm32f103re
# define the default port depending on the host OS
PORT_LINUX ?= /dev/ttyUSB1
PORT_DARWIN ?= $(shell ls -1 /dev/tty.usbserial* | head -n 1)
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbserial*)))
# setup serial terminal
export BAUD = 500000

2
boards/limifrog-v1/Makefile.include

@ -4,7 +4,7 @@ export CPU_MODEL = stm32l151rc
# define the default port depending on the host OS
PORT_LINUX ?= /dev/ttyUSB0
PORT_DARWIN ?= $(shell ls -1 /dev/tty.SLAB_USBtoUART* | head -n 1)
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
# setup serial terminal
include $(RIOTBOARD)/Makefile.include.serial

2
boards/mbed_lpc1768/Makefile.include

@ -12,7 +12,7 @@ export DEBUGGER_FLAGS =
# define the default port depending on the host OS
PORT_LINUX ?= /dev/ttyACM0
PORT_DARWIN ?= $(shell ls -1 /dev/tty.SLAB_USBtoUART* | head -n 1)
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
# setup serial terminal
include $(RIOTBOARD)/Makefile.include.serial

2
boards/msb-430-common/Makefile.include

@ -4,7 +4,7 @@ export CPU_MODEL = msp430f1612
# set default port depending on operating system
PORT_LINUX ?= /dev/ttyUSB0
PORT_DARWIN ?= $(shell ls -1 /dev/tty.SLAB_USBtoUART* | head -n 1)
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
# setup serial terminal
include $(RIOTBOARD)/Makefile.include.serial

2
boards/msbiot/Makefile.include

@ -4,7 +4,7 @@ export CPU_MODEL = stm32f415rg
#define the default port depending on the host OS
PORT_LINUX ?= /dev/ttyUSB0
PORT_DARWIN ?= $(shell ls -1 /dev/tty.SLAB_USBtoUART* | head -n 1)
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
# setup serial terminal
include $(RIOTBOARD)/Makefile.include.serial

2
boards/mulle/Makefile.include

@ -82,7 +82,7 @@ ifeq ($(PORT),)
PORT := $(shell $(RIOTBASE)/dist/tools/usb-serial/find-tty.sh)
endif
else ifeq ($(OS),Darwin)
PORT := $(shell ls -1 /dev/tty.usbserial* | head -n 1)
PORT := $(firstword $(sort $(wildcard /dev/tty.usbserial*)))
endif
endif
ifeq ($(PORT),)

2
boards/nrf51dongle/Makefile.include

@ -4,7 +4,7 @@ export CPU_MODEL = nrf51x22xxab
# define the default port depending on the host OS
PORT_LINUX ?= /dev/ttyACM0
PORT_DARWIN ?= $(shell ls -1 /dev/tty.SLAB_USBtoUART* | head -n 1)
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
# setup JLink for flashing
export JLINK_DEVICE := nrf51822

2
boards/nrf52dk/Makefile.include

@ -4,7 +4,7 @@ export CPU_MODEL = nrf52xxaa
# set default port depending on operating system
PORT_LINUX ?= /dev/ttyACM0
PORT_DARWIN ?= $(shell ls -1 /dev/tty.usbmodem* | head -n 1)
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
# setup the boards dependencies
include $(RIOTBOARD)/$(BOARD)/Makefile.dep

2
boards/nrf6310/Makefile.include

@ -4,7 +4,7 @@ export CPU_MODEL = nrf51x22xxaa
# set default port depending on operating system
PORT_LINUX ?= /dev/ttyUSB0
PORT_DARWIN ?= $(shell ls -1 /dev/tty.SLAB_USBtoUART* | head -n 1)
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
# define flash and debugging environment
export FLASHER = $(RIOTBOARD)/$(BOARD)/dist/flash.sh

2
boards/nucleo-f091/Makefile.include

@ -4,7 +4,7 @@ export CPU_MODEL = stm32f091rc
#define the default port depending on the host OS
PORT_LINUX ?= /dev/ttyACM0
PORT_DARWIN ?= $(shell ls -1 /dev/tty.usbmodem* | head -n 1)
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
# setup serial terminal
include $(RIOTBOARD)/Makefile.include.serial

2
boards/nucleo-f103/Makefile.include

@ -4,7 +4,7 @@ export CPU_MODEL = stm32f103rb
#define the default port depending on the host OS
PORT_LINUX ?= /dev/ttyUSB0
PORT_DARWIN ?= $(shell ls -1 /dev/tty.usbmodem* | head -n 1)
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
# setup serial terminal
include $(RIOTBOARD)/Makefile.include.serial

2
boards/nucleo-f303/Makefile.include

@ -4,7 +4,7 @@ export CPU_MODEL = stm32f303re
#define the default port depending on the host OS
PORT_LINUX ?= /dev/ttyUSB0
PORT_DARWIN ?= $(shell ls -1 /dev/tty.usbmodem* | head -n 1)
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
# setup serial terminal
include $(RIOTBOARD)/Makefile.include.serial

2
boards/nucleo-f334/Makefile.include

@ -4,7 +4,7 @@ export CPU_MODEL = stm32f334r8
#define the default port depending on the host OS
PORT_LINUX ?= /dev/ttyACM0
PORT_DARWIN ?= $(shell ls -1 /dev/tty.usbmodem* | head -n 1)
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
# setup serial terminal
include $(RIOTBOARD)/Makefile.include.serial

2
boards/nucleo-f401/Makefile.include

@ -4,7 +4,7 @@ export CPU_MODEL = stm32f401re
# define the default port depending on the host OS
PORT_LINUX ?= /dev/ttyACM0
PORT_DARWIN ?= $(shell ls -1 /dev/tty.usbmodem* | head -n 1)
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
# setup serial terminal
include $(RIOTBOARD)/Makefile.include.serial

2
boards/nucleo-l1/Makefile.include

@ -4,7 +4,7 @@ export CPU_MODEL = stm32l152ret6
# define the default port depending on the host OS
PORT_LINUX ?= /dev/ttyACM0
PORT_DARWIN ?= $(shell ls -1 /dev/tty.SLAB_USBtoUART* | head -n 1)
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
# setup serial terminal
include $(RIOTBOARD)/Makefile.include.serial

2
boards/openmote-cc2538/Makefile.include

@ -4,7 +4,7 @@ export CPU_MODEL = cc2538sf53
# define the default port depending on the host OS
PORT_LINUX ?= /dev/ttyUSB0
PORT_DARWIN ?= $(shell ls -1 /dev/tty.usbserial-* | head -n 1)
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbserial*)))
# setup JLink for flashing
export JLINK_DEVICE := cc2538sf53

2
boards/pca10000/Makefile.include

@ -4,7 +4,7 @@ export CPU_MODEL = nrf51x22xxaa
# define the default port depending on the host OS
PORT_LINUX ?= /dev/ttyACM0
PORT_DARWIN ?= $(shell ls -1 /dev/tty.SLAB_USBtoUART* | head -n 1)
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
# setup JLink for flashing
export JLINK_DEVICE := nrf51822

2
boards/pca10005/Makefile.include

@ -4,7 +4,7 @@ export CPU_MODEL = nrf51x22xxaa
# set default port depending on operating system
PORT_LINUX ?= /dev/ttyUSB0
PORT_DARWIN ?= $(shell ls -1 /dev/tty.SLAB_USBtoUART* | head -n 1)
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
# setup JLink for flashing
export JLINK_DEVICE := nrf51822

2
boards/remote/Makefile.include

@ -4,7 +4,7 @@ export CPU_MODEL = cc2538sf53
# define the default port depending on the host OS
PORT_LINUX ?= /dev/ttyUSB1
PORT_DARWIN ?= $(shell ls -1 /dev/tty.usbserial-* | head -n 2 | tail -n 1)
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbserial*)))
# define the default flash-tool
export PROGRAMMER ?= cc2538-bsl

2
boards/samr21-xpro/Makefile.include

@ -4,7 +4,7 @@ export CPU_MODEL = samr21g18a
# set default port depending on operating system
PORT_LINUX ?= /dev/ttyACM0
PORT_DARWIN ?= $(shell ls -1 /dev/tty.usbmodem* | head -n 1)
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
# setup the boards dependencies
include $(RIOTBOARD)/$(BOARD)/Makefile.dep

2
boards/slwstk6220a/Makefile.include

@ -4,7 +4,7 @@ export CPU_MODEL = ezr32wg330f256r60
# set default port depending on operating system
PORT_LINUX ?= /dev/ttyACM0
PORT_DARWIN ?= $(shell ls -1 /dev/tty.usbmodem* | head -n 1)
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
# setup the boards dependencies
include $(RIOTBOARD)/$(BOARD)/Makefile.dep

2
boards/stm32f0discovery/Makefile.include

@ -4,7 +4,7 @@ export CPU_MODEL = stm32f051r8
# define the default port depending on the host OS
PORT_LINUX ?= /dev/ttyUSB0
PORT_DARWIN ?= $(shell ls -1 /dev/tty.SLAB_USBtoUART* | head -n 1)
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
# setup serial terminal
include $(RIOTBOARD)/Makefile.include.serial

2
boards/stm32f3discovery/Makefile.include

@ -4,7 +4,7 @@ export CPU_MODEL = stm32f303vc
# define the default port depending on the host OS
PORT_LINUX ?= /dev/ttyUSB0
PORT_DARWIN ?= $(shell ls -1 /dev/tty.SLAB_USBtoUART* | head -n 1)
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
# setup serial terminal
include $(RIOTBOARD)/Makefile.include.serial

2
boards/stm32f4discovery/Makefile.include

@ -4,7 +4,7 @@ export CPU_MODEL = stm32f407vg
# set default port depending on operating system
PORT_LINUX ?= /dev/ttyUSB0
PORT_DARWIN ?= $(shell ls -1 /dev/tty.SLAB_USBtoUART* | head -n 1)
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
# setup serial terminal
include $(RIOTBOARD)/Makefile.include.serial

2
boards/telosb/Makefile.include

@ -4,7 +4,7 @@ export CPU_MODEL = msp430f1611
# set default port depending on operating system
PORT_LINUX ?= /dev/ttyUSB0
PORT_DARWIN ?= $(shell ls -1 /dev/tty.usbserial-MXV* | head -n 1)
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbserial-MXV*)))
# setup serial terminal
include $(RIOTBOARD)/Makefile.include.serial

2
boards/weio/Makefile.include

@ -12,7 +12,7 @@ export DEBUGGER_FLAGS =
# define the default port depending on the host OS
PORT_LINUX ?= /dev/ttyACM0
PORT_DARWIN ?= $(shell ls -1 /dev/tty.SLAB_USBtoUART* | head -n 1)
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
# setup serial terminal
include $(RIOTBOARD)/Makefile.include.serial

2
boards/wsn430-common/Makefile.include

@ -4,7 +4,7 @@ export CPU_MODEL = msp430f1611
# set default port depending on operating system
PORT_LINUX ?= /dev/ttyUSB0
PORT_DARWIN ?= $(shell ls -1 /dev/tty.SLAB_USBtoUART* | head -n 1)
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
# setup serial terminal
include $(RIOTBOARD)/Makefile.include.serial

2
boards/yunjia-nrf51822/Makefile.include

@ -4,7 +4,7 @@ export CPU_MODEL = nrf51x22xxaa
# define the default port depending on the host OS
PORT_LINUX ?= /dev/ttyUSB0
PORT_DARWIN ?= $(shell ls -1 /dev/tty.SLAB_USBtoUART* | head -n 1)
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
# setup serial terminal
include $(RIOTBOARD)/Makefile.include.serial

2
boards/z1/Makefile.include

@ -4,7 +4,7 @@ export CPU_MODEL = msp430f2617
# set default port depending on operating system
PORT_LINUX ?= /dev/ttyUSB0
PORT_DARWIN ?= $(shell ls -1 /dev/tty.SLAB_USBtoUART* | head -n 1)
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
# setup serial terminal
include $(RIOTBOARD)/Makefile.include.serial

Loading…
Cancel
Save