Add flash target
This commit is contained in:
parent
620c1c2507
commit
403d2e8fe7
4
.gitmodules
vendored
4
.gitmodules
vendored
@ -2,3 +2,7 @@
|
|||||||
path = ecsim
|
path = ecsim
|
||||||
url = https://github.com/system76/ecsim.git
|
url = https://github.com/system76/ecsim.git
|
||||||
branch = master
|
branch = master
|
||||||
|
[submodule "ecflash"]
|
||||||
|
path = ecflash
|
||||||
|
url = https://github.com/system76/ecflash.git
|
||||||
|
branch = master
|
||||||
|
1
ecflash
Submodule
1
ecflash
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 863439d2c8794c1c4e78e0f70739bcb04643420d
|
@ -19,3 +19,7 @@ include $(SCRATCH_DIR)/scratch.mk
|
|||||||
# Include scratch header in main firmware
|
# Include scratch header in main firmware
|
||||||
CFLAGS+=-I$(BUILD)/include
|
CFLAGS+=-I$(BUILD)/include
|
||||||
INCLUDE+=$(BUILD)/include/scratch.h
|
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 $<
|
||||||
|
Loading…
x
Reference in New Issue
Block a user