2018-12-02 21:58:15 -05:00

25 lines
520 B
Makefile

all:
$(MAKE) -f application.mk -j8
boot:
$(MAKE) -f bootloader.mk -j8
clean:
$(MAKE) -f application.mk clean
$(MAKE) -f bootloader.mk clean
flash: solo.hex bootloader.hex
python merge_hex.py solo.hex bootloader.hex all.hex
STM32_Programmer_CLI -c port=SWD -halt -e all --readunprotect
STM32_Programmer_CLI -c port=SWD -halt -d all.hex -rst
bootloader.hex:
echo "You need to build the bootloader first."
solo.hex:
echo "You need to build the application first."
cbor:
$(MAKE) -f application.mk -j8 cbor