pru: Add support for "make flash" rule

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2017-07-05 12:26:47 -04:00
parent 5793271308
commit b32ba3727b
2 changed files with 34 additions and 0 deletions

View File

@@ -31,3 +31,7 @@ $(OUT)pru0.elf: $(patsubst %.c, $(OUT)src/%.o,$(pru0-y))
$(OUT)pru1.elf: $(OUT)klipper.elf
@echo " Linking $@"
$(Q)$(CC) $(CFLAGS_pru1.elf) $^ -o $@
flash: $(OUT)pru0.elf $(OUT)pru1.elf
@echo " Flashing"
$(Q)sudo ./scripts/flash-pru.sh