Add flash target

This commit is contained in:
Jeremy Soller 2019-11-20 21:22:35 -07:00
parent 620c1c2507
commit 403d2e8fe7
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1
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

@ -0,0 +1 @@
Subproject commit 863439d2c8794c1c4e78e0f70739bcb04643420d

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