diff options
author | Vic Yang <victoryang@chromium.org> | 2013-04-04 21:38:22 +0800 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-04-10 01:08:45 -0700 |
commit | 8a06eb1d35cb460fb5669c720262d437f54b0101 (patch) | |
tree | 9a029fc001ed24bf023f89d35b5696926085e539 /board/bds/ec.tasklist | |
parent | 64ae15f3b3c743a8b98af7754871c0ba7470becd (diff) | |
download | chrome-ec-8a06eb1d35cb460fb5669c720262d437f54b0101.tar.gz |
Only includes necessary tasks for test binaries
This changes current TASK() syntax to TASK_BASE() and TASK_NORMAL(),
where TASK_BASE is necessary for the EC to boot on a board and
TASK_NORMAL represents the task that can be removed in a test binary.
Tasks introduced by a test should be listed as TASK_TEST().
Note that this CL breaks current tests (many of them are broken anyway),
which will be fixed in up coming CLs.
BUG=chrome-os-partner:18598
TEST=Build link/bds/spring/snow/daisy/mccroskey. (mccroskey failed for
unrelated issue)
BRANCH=none
Change-Id: Ic645cdae0906ed21dc473553f1f43c2537ec4bb9
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/47531
Diffstat (limited to 'board/bds/ec.tasklist')
-rw-r--r-- | board/bds/ec.tasklist | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/board/bds/ec.tasklist b/board/bds/ec.tasklist index d5f66a6570..556f3cbb7e 100644 --- a/board/bds/ec.tasklist +++ b/board/bds/ec.tasklist @@ -8,13 +8,15 @@ * * The first one has the lowest priority. * - * For each task, use the macro TASK(n, r, d, s) where : + * For each task, use the macro TASK_ALWAYS(n, r, d, s) for base tasks and + * TASK_NOTEST(n, r, d, s) for tasks that can be excluded in test binaries, + * where : * 'n' in the name of the task * 'r' in the main routine of the task * 'd' in an opaque parameter passed to the routine at startup * 's' is the stack size in bytes; must be a multiple of 8 */ #define CONFIG_TASK_LIST \ - TASK(HOOKS, hook_task, NULL, TASK_STACK_SIZE) \ - TASK(LIGHTBAR, lightbar_task, NULL, TASK_STACK_SIZE) \ - TASK(CONSOLE, console_task, NULL, TASK_STACK_SIZE) + TASK_ALWAYS(HOOKS, hook_task, NULL, TASK_STACK_SIZE) \ + TASK_NOTEST(LIGHTBAR, lightbar_task, NULL, TASK_STACK_SIZE) \ + TASK_ALWAYS(CONSOLE, console_task, NULL, TASK_STACK_SIZE) |