summaryrefslogtreecommitdiff
path: root/Makefile.toolchain
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 /Makefile.toolchain
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 'Makefile.toolchain')
-rw-r--r--Makefile.toolchain3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.toolchain b/Makefile.toolchain
index 26e9c57690..d611c1bc94 100644
--- a/Makefile.toolchain
+++ b/Makefile.toolchain
@@ -35,7 +35,8 @@ CFLAGS_DEBUG= -g
CFLAGS_INCLUDE=$(foreach i,$(includes),-I$(i) ) -I.
CFLAGS_TEST=$(if $(TEST_BUILD),-DTEST_BUILD \
-DTEST_TASKFILE=$(PROJECT).tasklist,) \
- $(if $(CTS_MODULE), -DCTS_MODULE=$(CTS_MODULE)) \
+ $(if $(CTS_MODULE), -DCTS_MODULE=$(CTS_MODULE) \
+ -DCTS_TASKFILE=cts.tasklist) \
$(if $(EMU_BUILD),-DEMU_BUILD) \
$(if $($(PROJECT)-scale),-DTEST_TIME_SCALE=$($(PROJECT)-scale)) \
-DTEST_$(PROJECT) -DTEST_$(UC_PROJECT)