summaryrefslogtreecommitdiff
path: root/core/host
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2016-07-08 12:42:45 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-07-11 21:27:46 -0700
commitafa53e3950abd4727eab9b14275b4805495767b7 (patch)
treea73c70b60b7d16a570a9324c88ca90d159c6e95c /core/host
parent9a710bd340f12db0334e08bc46cb2228f42ff956 (diff)
downloadchrome-ec-afa53e3950abd4727eab9b14275b4805495767b7.tar.gz
Add cts.tasklist
cts.tasklist contains tasks run only for CTS. These tasks are added to the tasks registered in ec.tasklist with higher priority. This design allows board directories to be free from CTS stuff. cts.tasklist can be placed in each suite directory (cts/suite/cts.tasklist). If a suite does not define its own cts.tasklist, the common list is used (i.e. cts/cts.tasklist). BUG=chromium:624520 BRANCH=none TEST=Ran the followings: make buildall make CTS_MODULE=gpio BOARD=nucleo-f072rb make CTS_MODULE=gpio BOARD=stm32l476g-eval Change-Id: Ibb242297ee10a397a8fcb6ff73d8cbc560daa885 Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/359445 Reviewed-by: Chris Chen <twothreecc@google.com>
Diffstat (limited to 'core/host')
-rw-r--r--core/host/task.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/host/task.c b/core/host/task.c
index 8e85679890..7a17e13e89 100644
--- a/core/host/task.c
+++ b/core/host/task.c
@@ -61,6 +61,7 @@ static void task_enable_all_tasks_callback(void);
#define TASK(n, r, d, s) void r(void *);
CONFIG_TASK_LIST
CONFIG_TEST_TASK_LIST
+CONFIG_CTS_TASK_LIST
#undef TASK
/* Idle task */
@@ -80,6 +81,7 @@ struct task_args task_info[TASK_ID_COUNT] = {
{__idle, NULL},
CONFIG_TASK_LIST
CONFIG_TEST_TASK_LIST
+ CONFIG_CTS_TASK_LIST
{_run_test, NULL},
};
#undef TASK
@@ -89,6 +91,7 @@ static const char * const task_names[] = {
"<< idle >>",
CONFIG_TASK_LIST
CONFIG_TEST_TASK_LIST
+ CONFIG_CTS_TASK_LIST
"<< test runner >>",
};
#undef TASK