mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
Merge pull request #1663 from pablocorbalan/cc2650-lp
Add upload script to Makefile.launchpad
This commit is contained in:
commit
fd15934235
@ -4,3 +4,19 @@ CONTIKI_TARGET_DIRS += launchpad common
|
|||||||
|
|
||||||
BOARD_SOURCEFILES += board.c launchpad-sensors.c leds-arch.c button-sensor.c
|
BOARD_SOURCEFILES += board.c launchpad-sensors.c leds-arch.c button-sensor.c
|
||||||
BOARD_SOURCEFILES += ext-flash.c board-spi.c
|
BOARD_SOURCEFILES += ext-flash.c board-spi.c
|
||||||
|
|
||||||
|
PYTHON = python
|
||||||
|
BSL_FLAGS += -e -w -v
|
||||||
|
|
||||||
|
ifdef PORT
|
||||||
|
BSL_FLAGS += -p $(PORT)
|
||||||
|
endif
|
||||||
|
|
||||||
|
BSL = $(CONTIKI)/tools/cc2538-bsl/cc2538-bsl.py
|
||||||
|
|
||||||
|
%.upload: %.bin
|
||||||
|
ifeq ($(wildcard $(BSL)), )
|
||||||
|
@echo "ERROR: Could not find the cc2538-bsl script. Did you run 'git submodule update --init' ?"
|
||||||
|
else
|
||||||
|
$(PYTHON) $(BSL) $(BSL_FLAGS) $<
|
||||||
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user