Add flash target

This commit is contained in:
Jeremy Soller
2019-11-20 21:22:35 -07:00
parent 620c1c2507
commit 403d2e8fe7
3 changed files with 9 additions and 0 deletions

View File

@@ -19,3 +19,7 @@ include $(SCRATCH_DIR)/scratch.mk
# Include scratch header in main firmware
CFLAGS+=-I$(BUILD)/include
INCLUDE+=$(BUILD)/include/scratch.h
flash: $(BUILD)/ec.rom
cargo build --manifest-path ecflash/Cargo.toml --example flash --release
sudo ecflash/target/release/examples/flash $<