summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorNick Sanders <nsanders@chromium.org>2017-11-13 14:34:47 -0800
committerchrome-bot <chrome-bot@chromium.org>2017-11-14 18:43:55 -0800
commit385c276e4bf50c9a9816b8cf9a8abc9b86dab329 (patch)
tree88020da041f9608a7c1f0df75f9b04f2b7854741 /setup.py
parentee208a57b7db9075d6279e66360c6cc1b0f5114b (diff)
downloadchrome-ec-385c276e4bf50c9a9816b8cf9a8abc9b86dab329.tar.gz
ec-devutils: install servo tools to chroot
This adds "servo_updater", "powerlog", "ecusb" library into the chroot's python install, as well as configs for servo_v4 and servo_micro. This allows easier access to these tools. servo_updater and powerlog are installed in the default path. /usr/share/servo_updater/configs contains the servo config files. BUG=b:69016431 BRANCH=None TEST=sudo servo_updater -b /../servo_v4.json -f servo_v4_9040.0.0.bin powerlog -b marlin.board -c marlin_common.scenario Signed-off-by: Nick Sanders <nsanders@chromium.org> Change-Id: I0b3f1b16fcd422297af88c236a2a4ddb2cc25819 Reviewed-on: https://chromium-review.googlesource.com/767547 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py42
1 files changed, 42 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index 29e46f5805..11118c86b4 100644
--- a/setup.py
+++ b/setup.py
@@ -15,3 +15,45 @@ setup(
py_modules=["ec3po.console", "ec3po.interpreter"],
description="EC console interpreter.",
)
+
+setup(
+ name="ecusb",
+ version="1.0",
+ author="Nick Sanders",
+ author_email="nsanders@chromium.org",
+ url="https://www.chromium.org/chromium-os/ec-development",
+ package_dir={"" : "extra/tigertool"},
+ packages=["ecusb"],
+ description="Tiny implementation of servod.",
+)
+
+setup(
+ name="servo_updater",
+ version="1.0",
+ author="Nick Sanders",
+ author_email="nsanders@chromium.org",
+ url="https://www.chromium.org/chromium-os/ec-development",
+ package_dir={"" : "extra/usb_updater"},
+ py_modules=["servo_updater", "fw_update"],
+ entry_points = {
+ "console_scripts": ["servo_updater=servo_updater:main"],
+ },
+ data_files=[("share/servo_updater/configs",
+ ["extra/usb_updater/servo_v4.json",
+ "extra/usb_updater/servo_micro.json"])],
+ description="Servo usb updater.",
+)
+
+setup(
+ name="powerlog",
+ version="1.0",
+ author="Nick Sanders",
+ author_email="nsanders@chromium.org",
+ url="https://www.chromium.org/chromium-os/ec-development",
+ package_dir={"" : "extra/usb_power"},
+ py_modules=["powerlog", "stats_manager"],
+ entry_points = {
+ "console_scripts": ["powerlog=powerlog:main"],
+ },
+ description="Sweetberry power logger.",
+)