Browse Source

dist/tools/cc2538-bsl: enforce python2

pr/spi.typo
PeterKietzmann 7 years ago
parent
commit
5eafb071a6
  1. 2
      boards/cc2538dk/Makefile.include
  2. 2
      boards/openmote-cc2538/Makefile.include
  3. 2
      boards/remote-common/Makefile.include
  4. 2
      dist/tools/cc2538-bsl/cc2538-bsl.py

2
boards/cc2538dk/Makefile.include

@ -20,7 +20,7 @@ export RESET = $(RIOTBOARD)/$(BOARD)/dist/reset.sh
export PROGRAMMER ?= cc2538-bsl
ifeq ($(PROGRAMMER),cc2538-bsl)
export FLASHER = python $(RIOTBASE)/dist/tools/cc2538-bsl/cc2538-bsl.py
export FLASHER = $(RIOTBASE)/dist/tools/cc2538-bsl/cc2538-bsl.py
export FFLAGS = -p "$(PORT)" -e -w -v $(HEXFILE)
else ifeq ($(PROGRAMMER),jlink)
export FLASHER = $(RIOTBOARD)/$(BOARD)/dist/flash.sh

2
boards/openmote-cc2538/Makefile.include

@ -19,7 +19,7 @@ ifeq ($(PROGRAMMER),jlink)
else
export OFLAGS = -O binary
export HEXFILE = $(ELFFILE:.elf=.bin)
export FLASHER = python $(RIOTBASE)/dist/tools/cc2538-bsl/cc2538-bsl.py
export FLASHER = $(RIOTBASE)/dist/tools/cc2538-bsl/cc2538-bsl.py
export FFLAGS = -p "$(PORT)" -e -w -v -b 460800 $(HEXFILE)
endif

2
boards/remote-common/Makefile.include

@ -12,7 +12,7 @@ ifeq ($(PROGRAMMER),cc2538-bsl)
else ifeq ($(OS),Darwin)
PORT_BSL ?= $(PORT_DARWIN)
endif
export FLASHER = python $(RIOTBASE)/dist/tools/cc2538-bsl/cc2538-bsl.py
export FLASHER = $(RIOTBASE)/dist/tools/cc2538-bsl/cc2538-bsl.py
export FFLAGS = -p "$(PORT_BSL)" -e -w -v -b 115200 $(HEXFILE)
else ifeq ($(PROGRAMMER),jlink)
export FLASHER = $(RIOTBOARD)/$(BOARD)/dist/flash.sh

2
dist/tools/cc2538-bsl/cc2538-bsl.py vendored

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
# Copyright (c) 2014, Jelmer Tiete <jelmer@tiete.be>.
# All rights reserved.

Loading…
Cancel
Save