Add console_external target

This commit is contained in:
Jeremy Soller 2020-03-14 20:40:44 -06:00
parent 6cbc7b3ea1
commit 606421abd1
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1
3 changed files with 15 additions and 3 deletions

View File

@ -45,10 +45,14 @@ include $(SCRATCH_DIR)/scratch.mk
CFLAGS+=-I$(BUILD)/include CFLAGS+=-I$(BUILD)/include
INCLUDE+=$(BUILD)/include/scratch.h INCLUDE+=$(BUILD)/include/scratch.h
console: console_internal:
cargo build --manifest-path tool/Cargo.toml --release cargo build --manifest-path tool/Cargo.toml --release
sudo tool/target/release/system76_ectool console sudo tool/target/release/system76_ectool console
console_external:
sleep 1 && echo C | sudo tee /dev/ttyACM* &
sudo tio -b 1000000 -m INLCRNL /dev/ttyACM*
flash_internal: $(BUILD)/ec.rom flash_internal: $(BUILD)/ec.rom
cargo build --manifest-path tool/Cargo.toml --release cargo build --manifest-path tool/Cargo.toml --release
sudo tool/target/release/system76_ectool flash $< sudo tool/target/release/system76_ectool flash $<

View File

@ -42,10 +42,14 @@ include $(SCRATCH_DIR)/scratch.mk
CFLAGS+=-I$(BUILD)/include CFLAGS+=-I$(BUILD)/include
INCLUDE+=$(BUILD)/include/scratch.h INCLUDE+=$(BUILD)/include/scratch.h
console: console_internal:
cargo build --manifest-path tool/Cargo.toml --release cargo build --manifest-path tool/Cargo.toml --release
sudo tool/target/release/system76_ectool console sudo tool/target/release/system76_ectool console
console_external:
sleep 1 && echo C | sudo tee /dev/ttyACM* &
sudo tio -b 1000000 -m INLCRNL /dev/ttyACM*
flash_internal: $(BUILD)/ec.rom flash_internal: $(BUILD)/ec.rom
cargo build --manifest-path tool/Cargo.toml --release cargo build --manifest-path tool/Cargo.toml --release
sudo tool/target/release/system76_ectool flash $< sudo tool/target/release/system76_ectool flash $<

View File

@ -45,10 +45,14 @@ include $(SCRATCH_DIR)/scratch.mk
CFLAGS+=-I$(BUILD)/include CFLAGS+=-I$(BUILD)/include
INCLUDE+=$(BUILD)/include/scratch.h INCLUDE+=$(BUILD)/include/scratch.h
console: console_internal:
cargo build --manifest-path tool/Cargo.toml --release cargo build --manifest-path tool/Cargo.toml --release
sudo tool/target/release/system76_ectool console sudo tool/target/release/system76_ectool console
console_external:
sleep 1 && echo C | sudo tee /dev/ttyACM* &
sudo tio -b 1000000 -m INLCRNL /dev/ttyACM*
flash_internal: $(BUILD)/ec.rom flash_internal: $(BUILD)/ec.rom
cargo build --manifest-path tool/Cargo.toml --release cargo build --manifest-path tool/Cargo.toml --release
sudo tool/target/release/system76_ectool flash $< sudo tool/target/release/system76_ectool flash $<