aboutsummaryrefslogtreecommitdiff
path: root/stm
diff options
context:
space:
mode:
authormux2014-01-03 08:51:02 +0200
committermux2014-01-03 08:51:02 +0200
commit1a1ba4d555146fe3bf0cd32906c77f5d918423ca (patch)
treed95c4635770dce516fedccf2969710dc2219061f /stm
parentaae7847508e2a9555ad3276c5cd4f42b2e66686c (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/Makefile2
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 $^ $@