diff options
author | Nicolas Boichat <drinkcat@google.com> | 2017-04-17 11:32:12 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-04-25 05:52:34 -0700 |
commit | 896409ef79b1d1c1c25bb8e410474b43a15238a5 (patch) | |
tree | 1aad179ea491de4252a5eb4584f91a964d5163d0 /include/task_id.h | |
parent | 579a6b00e5b4f31bf3dbefd82aa19fb52b6905bb (diff) | |
download | chrome-ec-896409ef79b1d1c1c25bb8e410474b43a15238a5.tar.gz |
Makefile: Allow different task list for RO and RW
This adds new macros for tasks (_RO and _RW), which allows to
enable a task only for RO or RW section.
We also create a new task_filter.h include file, that helps
pre-filter those tasks, and can be used either from Makefile,
or included from task_id.h.
BRANCH=none
BUG=b:35582031
TEST=make buildall -j; make savesizes
Apply this CL
make buildall -j; make newsizes => No size change
Change-Id: I472bc6d4ab250a0a0e1fa6aeb4b748ba6968bedf
Reviewed-on: https://chromium-review.googlesource.com/479491
Commit-Ready: Nicolas Boichat <drinkcat@chromium.org>
Tested-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Reviewed-by: Nick Sanders <nsanders@chromium.org>
Reviewed-by: Nick Sanders <nsanders@google.com>
Diffstat (limited to 'include/task_id.h')
-rw-r--r-- | include/task_id.h | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/include/task_id.h b/include/task_id.h index bcd0b61c85..b4ecf9bf82 100644 --- a/include/task_id.h +++ b/include/task_id.h @@ -8,20 +8,7 @@ #ifndef __CROS_EC_TASK_ID_H #define __CROS_EC_TASK_ID_H -/* excludes non-base tasks for test build */ -#ifdef TEST_BUILD -#define TASK_NOTEST(n, r, d, s) -#define TASK_TEST TASK -#else -#define TASK_NOTEST TASK -#define CONFIG_TEST_TASK_LIST -#endif - -#ifndef CTS_MODULE -#define CONFIG_CTS_TASK_LIST -#endif - -#define TASK_ALWAYS TASK +#include "task_filter.h" /* define the name of the header containing the list of tasks */ #define STRINGIFY0(name) #name |