summaryrefslogtreecommitdiff
path: root/util/build.mk
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2018-01-12 10:22:52 +0100
committerchrome-bot <chrome-bot@chromium.org>2018-01-17 06:20:37 -0800
commit9d38e4664150579503f70b03b35e1dd1bedb7920 (patch)
tree64b9f0d008d1a499b16114f6650a6b21ea711ec3 /util/build.mk
parent1e1b5d4463c2f273c593f90fd1f60b7c06139f86 (diff)
downloadchrome-ec-9d38e4664150579503f70b03b35e1dd1bedb7920.tar.gz
ectool: add servo v2 spi support
Add a new transport for ectool to send host command V3 over the Servo v2 SPI interface using libftdi. Build this new communication mechanism only for the 'build' architecture as it has a dependency on libftdi, the new ectool binary is called ectool_servo. Fix the 'build' tools build if they don't have a source file matching their binary name. The serial number of the servo board can be passed in the 'name' parameter, e.g. : sudo ectool_servo --name=905537-00474 version Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BRANCH=none BUG=b:70320279 TEST=with ZerbleBarn connected to a servo V2, run: sudo ectool_servo version Change-Id: Ia7067d465a42f76695fed5932f32fac9a6d0988e Reviewed-on: https://chromium-review.googlesource.com/864164 Commit-Ready: Vincent Palatin <vpalatin@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org> Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'util/build.mk')
-rw-r--r--util/build.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/util/build.mk b/util/build.mk
index c7a3b5b522..e92f76a8e7 100644
--- a/util/build.mk
+++ b/util/build.mk
@@ -13,11 +13,16 @@ build-util-art+=util/export_taskinfo.so
ifeq ($(CHIP),npcx)
build-util-bin+=ecst
endif
+# Build on a limited subset of boards to save build time
+ifeq ($(BOARD),meowth_fp)
+build-util-bin+=ectool_servo
+endif
comm-objs=$(util-lock-objs:%=lock/%) comm-host.o comm-dev.o
comm-objs+=comm-lpc.o comm-i2c.o misc_util.o
ectool-objs=ectool.o ectool_keyscan.o ec_flash.o ec_panicinfo.o $(comm-objs)
+ectool_servo-objs=$(ectool-objs) comm-servo-spi.o
ec_sb_firmware_update-objs=ec_sb_firmware_update.o $(comm-objs) misc_util.o
ec_sb_firmware_update-objs+=powerd_lock.o
lbplay-objs=lbplay.o $(comm-objs)