summaryrefslogtreecommitdiff
path: root/zephyr/Kconfig.tasks
diff options
context:
space:
mode:
authorYuval Peress <peress@chromium.org>2020-11-30 23:15:20 -0700
committerCommit Bot <commit-bot@chromium.org>2020-12-05 05:16:48 +0000
commit9094a1b13aaec6863d263042bdb4b6d9ecc48a65 (patch)
tree532ef942b6bb804ee0415b93de5ae588afe45a56 /zephyr/Kconfig.tasks
parent8483283989e7d6080b1d757cf5309a97efd2950d (diff)
downloadchrome-ec-9094a1b13aaec6863d263042bdb4b6d9ecc48a65.tar.gz
zephyr: fix build for keyboard shim
See platform/ec/common/build.mk for reference. The use of keyboard_scan.c should only be allowed when HAS_TASK_KEYSCAN is defined. As such, we should always set HAS_TASK_KEYSCAN to 1 if CONFIG_PLATFORM_EC_KEYBOARD is defined. Further, CROS_EC_TASK_LIST was defined per project and it doesn't need to be, we can instead define it once for all boards depending on which tasks are set to 1 in shimmed_tasks.h Note that shimmed_tasks.h can still be used in tests. BRANCH=none BUG=none TEST=zmake testall Cq-Depend: chromium:2566421 Signed-off-by: Yuval Peress <peress@chromium.org> Change-Id: Id0ed49dd49e3c4eb2ac23184cf943c91dcd261eb Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2567560
Diffstat (limited to 'zephyr/Kconfig.tasks')
-rw-r--r--zephyr/Kconfig.tasks35
1 files changed, 35 insertions, 0 deletions
diff --git a/zephyr/Kconfig.tasks b/zephyr/Kconfig.tasks
new file mode 100644
index 0000000000..9a2a6d94a0
--- /dev/null
+++ b/zephyr/Kconfig.tasks
@@ -0,0 +1,35 @@
+# Copyright 2020 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+config HAS_TASK_KEYPROTO
+ bool "Whether or not the keyproto task should be run."
+ default n
+ help
+ This turns on the keyproto task.
+
+if HAS_TASK_KEYPROTO
+
+config TASK_KEYPROTO_STACK_SIZE
+ hex "keyproto task stack size"
+ default 0x200
+ help
+ The stack size of the keyproto task.
+
+endif # HAS_TASK_KEYPROTO
+
+config HAS_TASK_POWERBTN
+ bool "Whether or not the power button task should be run."
+ default n
+ help
+ This turns on the power button task.
+
+if HAS_TASK_POWERBTN
+
+config TASK_POWERBTN_STACK_SIZE
+ hex "powerbtn task stack size"
+ default 0x200
+ help
+ The stack size of the power button task.
+
+endif # HAS_TASK_POWERBTN