diff options
| author | mux | 2014-01-03 08:51:02 +0200 |
|---|---|---|
| committer | mux | 2014-01-03 08:51:02 +0200 |
| commit | 1a1ba4d555146fe3bf0cd32906c77f5d918423ca (patch) | |
| tree | d95c4635770dce516fedccf2969710dc2219061f /stm | |
| parent | aae7847508e2a9555ad3276c5cd4f42b2e66686c (diff) | |
Change dfu.py to be Python 2/3 compatible
* Chane dfu.py to use Python 3 syntax to avoid dependency on Python 2.
* Update Makefile to call python instead of python2
* Fix #33
Diffstat (limited to 'stm')
| -rw-r--r-- | stm/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stm/Makefile b/stm/Makefile index 6868f85ba..cfd8f5eef 100644 --- a/stm/Makefile +++ b/stm/Makefile @@ -147,7 +147,7 @@ OBJ = $(addprefix $(BUILD)/, $(SRC_C:.c=.o) $(SRC_S:.s=.o) $(PY_O) $(SRC_FATFS:. all: $(BUILD) $(BUILD)/flash.dfu $(BUILD)/flash.dfu: $(BUILD)/flash0.bin $(BUILD)/flash1.bin - python2 $(DFU) -b 0x08000000:$(BUILD)/flash0.bin -b 0x08020000:$(BUILD)/flash1.bin $@ + python $(DFU) -b 0x08000000:$(BUILD)/flash0.bin -b 0x08020000:$(BUILD)/flash1.bin $@ $(BUILD)/flash0.bin: $(BUILD)/flash.elf arm-none-eabi-objcopy -O binary -j .isr_vector $^ $@ |
