summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2016-12-28 14:37:28 -0800
committerchrome-bot <chrome-bot@chromium.org>2016-12-28 21:49:30 -0800
commitc5358465b885828a510402109c7536b334d1b3cf (patch)
treeffeb6086031d20cbea724cfb9f75c137a1cb1ca4
parent1c68913e0205885329f29911d082c0327c14888a (diff)
downloadchrome-ec-c5358465b885828a510402109c7536b334d1b3cf.tar.gz
common: Add BOARD variable when listing the tasks.
Some board (kevin), use BOARD_KEVIN variable to specify the task list. We need this variable to be provided to CPP when generating _tsk_lst. BUG=chrome-os-partner:59423 TEST=Check with echo "CONFIG_TASK_LIST" | arm-none-eabi-cpp -P -Iboard/kevin \ -D"TASK_NOTEST(n, r, d, s)=n" -D"TASK_ALWAYS(n, r, d, s)=n" \ -DBOARD_KEVIN=y -imacros ec.tasklist That the proper task list is generated. BRANCH=kevin,reef Change-Id: I40fbe3040c98c2698221b52aaadaf5519da13312 Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/424219 Reviewed-by: Randall Spangler <rspangler@chromium.org>
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 912c6ab64d..69e60d6c7b 100644
--- a/Makefile
+++ b/Makefile
@@ -69,7 +69,7 @@ endif
ifeq "$(TEST_BUILD)" "y"
_tsk_lst_file:=ec.tasklist
_tsk_lst:=$(shell echo "CONFIG_TASK_LIST CONFIG_TEST_TASK_LIST" | \
- $(CPP) -P -I$(BDIR) -Itest \
+ $(CPP) -P -I$(BDIR) -DBOARD_$(UC_BOARD) -Itest \
-D"TASK_NOTEST(n, r, d, s)=" -D"TASK_ALWAYS(n, r, d, s)=n" \
-D"TASK_TEST(n, r, d, s)=n" -imacros $(_tsk_lst_file) \
-imacros $(PROJECT).tasklist)
@@ -77,6 +77,7 @@ else ifdef CTS_MODULE
_tsk_lst_file:=ec.tasklist
_tsk_lst:=$(shell echo "CONFIG_TASK_LIST CONFIG_CTS_TASK_LIST" | \
$(CPP) -P -I cts/$(CTS_MODULE) -Icts -I$(BDIR) \
+ -DBOARD_$(UC_BOARD) \
-D"TASK_NOTEST(n, r, d, s)=n" \
-D"TASK_ALWAYS(n, r, d, s)=n" \
-imacros $(_tsk_lst_file) \
@@ -84,7 +85,8 @@ else ifdef CTS_MODULE
else
_tsk_lst_file:=$(PROJECT).tasklist
_tsk_lst:=$(shell echo "CONFIG_TASK_LIST" | $(CPP) -P \
- -I$(BDIR) -D"TASK_NOTEST(n, r, d, s)=n" \
+ -I$(BDIR) -DBOARD_$(UC_BOARD) \
+ -D"TASK_NOTEST(n, r, d, s)=n" \
-D"TASK_ALWAYS(n, r, d, s)=n" -imacros $(_tsk_lst_file))
endif