diff options
Diffstat (limited to 'src/stm32/Makefile')
-rw-r--r-- | src/stm32/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/stm32/Makefile b/src/stm32/Makefile index e5627ec4..dc8768a2 100644 --- a/src/stm32/Makefile +++ b/src/stm32/Makefile @@ -52,7 +52,11 @@ $(OUT)klipper.bin: $(OUT)klipper.elf $(Q)$(OBJCOPY) -O binary $< $@ # Flash rules -flash: $(OUT)klipper.bin +lib/hidflash/hid-flash: + @echo " Building hid-flash" + $(Q)make -C lib/hidflash + +flash: $(OUT)klipper.bin lib/hidflash/hid-flash @echo " Flashing $< to $(FLASH_DEVICE)" $(Q)$(PYTHON) ./scripts/flash_usb.py -t $(CONFIG_MCU) -d "$(FLASH_DEVICE)" -s "$(CONFIG_FLASH_START)" $(if $(NOSUDO),--no-sudo) $(OUT)klipper.bin |