summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--setup.py17
-rw-r--r--util/ec3po/__init__.py24
2 files changed, 41 insertions, 0 deletions
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000000..29e46f5805
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,17 @@
+# Copyright 2015 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+from setuptools import setup
+
+setup(
+ name="ec3po",
+ version="1.0.0rc1",
+ author="Aseda Aboagye",
+ author_email="aaboagye@chromium.org",
+ url="https://www.chromium.org/chromium-os/ec-development",
+ package_dir={"" : "util"},
+ packages=["ec3po"],
+ py_modules=["ec3po.console", "ec3po.interpreter"],
+ description="EC console interpreter.",
+)
diff --git a/util/ec3po/__init__.py b/util/ec3po/__init__.py
index e69de29bb2..e40e417b98 100644
--- a/util/ec3po/__init__.py
+++ b/util/ec3po/__init__.py
@@ -0,0 +1,24 @@
+# Copyright 2015 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""The EC console interpreter.
+
+EC-3PO is a console interpreter which migrates the rich debug console from the
+EC itself to the host. This allows for a rich debug console without impacting
+EC image sizes while also allowing the development of new console features.
+
+The package consists of two modules: console and interpreter. The console
+module provides the interactive console interface between the user and the
+interpreter. It handles the presentation of the EC console including editing
+methods as well as session-persistent command history.
+
+The interpreter module provides the interpretation layer between the EC UART and
+the user. The user does not necessarily have to be the interactive console, but
+could be something like autotest. The interpreter is also responsible for the
+automatic command retrying if the EC drops a character in a command. This is a
+stopgap until all commands are communicated via host commands.
+"""
+
+import console
+import interpreter