novatools/Makefile

17 lines
427 B
Makefile
Raw Permalink Normal View History

REQUIREMENTS = dd echo msp430-objcopy msp430-gcc mspdebug
2014-12-25 06:49:08 -05:00
include Makefile.common
build/orig_fw.hex:
2014-12-25 06:49:08 -05:00
@echo "Reading Novatouch firmware to $@..."
$(QUIET)mspdebug rf2500 "hexout 0x8000 0xffff $@"
2014-12-25 06:49:08 -05:00
build/orig_fw.bin: build/orig_fw.hex
@echo "Converting ihex fw to binary blob..."
$(QUIET)mkdir -p build
$(QUIET)msp430-objcopy -I ihex -O binary $< $@
2014-12-25 06:49:08 -05:00
2015-01-10 14:02:31 -05:00
.PHONY: flash
flash: build/main.elf
2015-01-10 14:02:31 -05:00
$(QUIET)mspdebug rf2500 "prog $<"