Test for programmer being plugged in
This commit is contained in:
parent
8009208760
commit
f42b9d0955
@ -4,6 +4,8 @@ SRC+=$(wildcard $(SYSTEM76_COMMON_DIR)/*.c)
|
|||||||
INCLUDE+=$(wildcard $(SYSTEM76_COMMON_DIR)/include/common/*.h) $(SYSTEM76_COMMON_DIR)/common.mk
|
INCLUDE+=$(wildcard $(SYSTEM76_COMMON_DIR)/include/common/*.h) $(SYSTEM76_COMMON_DIR)/common.mk
|
||||||
CFLAGS+=-I$(SYSTEM76_COMMON_DIR)/include
|
CFLAGS+=-I$(SYSTEM76_COMMON_DIR)/include
|
||||||
|
|
||||||
|
PROGRAMMER=$(wildcard /dev/serial/by-id/usb-Arduino*)
|
||||||
|
|
||||||
# Add scratch ROM
|
# Add scratch ROM
|
||||||
include $(SYSTEM76_COMMON_DIR)/scratch/scratch.mk
|
include $(SYSTEM76_COMMON_DIR)/scratch/scratch.mk
|
||||||
|
|
||||||
@ -12,8 +14,9 @@ console_internal:
|
|||||||
sudo tool/target/release/system76_ectool console
|
sudo tool/target/release/system76_ectool console
|
||||||
|
|
||||||
console_external:
|
console_external:
|
||||||
sleep 1 && echo C | sudo tee /dev/ttyACM* &
|
test -c "$(PROGRAMMER)"
|
||||||
sudo tio -b 1000000 -m INLCRNL -t /dev/ttyACM*
|
sleep 1 && echo C | sudo tee "$(PROGRAMMER)" &
|
||||||
|
sudo tio -b 1000000 -m INLCRNL -t "$(PROGRAMMER)"
|
||||||
|
|
||||||
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user