mirror of
https://github.com/skuep/AIOC.git
synced 2024-12-12 15:05:36 +00:00
14 lines
462 B
XML
14 lines
462 B
XML
dfu-suffix: $(OBJCOPY_BIN)
|
|
ifneq ("$(wildcard /usr/bin/dfu-suffix)","")
|
|
dfu-suffix -c $(FILENAME) || dfu-suffix -a $(FILENAME) -p $(PID) -v $(VID) -d $(DID)
|
|
else
|
|
@echo "Skipping DFU suffix generation, because dfu-suffix tool was not found"
|
|
endif
|
|
|
|
dfu-util: dfu-suffix
|
|
ifneq ("$(wildcard /usr/bin/dfu-util)","")
|
|
dfu-util -d $(VID):$(PID) -a 0 -s 0x08000000:leave -D $(FILENAME)
|
|
else
|
|
@echo "Skipping DFU programming, because dfu-util tool was not found"
|
|
endif
|