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

4
.gitmodules vendored
View File

@ -2,3 +2,7 @@
path = ecsim
url = https://github.com/system76/ecsim.git
branch = master
[submodule "ecflash"]
path = ecflash
url = https://github.com/system76/ecflash.git
branch = master

1
ecflash Submodule

Submodule ecflash added at 863439d2c8

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 $<