From 1a1ba4d555146fe3bf0cd32906c77f5d918423ca Mon Sep 17 00:00:00 2001 From: mux Date: Fri, 3 Jan 2014 08:51:02 +0200 Subject: 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 --- stm/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stm') 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 $^ $@ -- cgit v1.2.3