Add flash target
This commit is contained in:
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
Submodule ecflash added at 863439d2c8
@@ -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 $<
|
||||||
|
Reference in New Issue
Block a user