From 8a06eb1d35cb460fb5669c720262d437f54b0101 Mon Sep 17 00:00:00 2001 From: Vic Yang Date: Thu, 4 Apr 2013 21:38:22 +0800 Subject: 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 Reviewed-on: https://gerrit.chromium.org/gerrit/47531 --- board/bds/ec.tasklist | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'board/bds') 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) -- cgit v1.2.1