diff options
author | Yuval Peress <peress@google.com> | 2023-03-13 11:58:26 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-03-15 18:13:06 +0000 |
commit | 3089e438e3a89aab1ca67c8488c6d7519f4ee630 (patch) | |
tree | dc3073f18c2b9dd24ada09eef53cb00736be7906 | |
parent | 2ac9ae273e5589a35e1fc9a92c3d678df697c9c7 (diff) | |
download | chrome-ec-3089e438e3a89aab1ca67c8488c6d7519f4ee630.tar.gz |
kconfig: Add correct dependency for motionsense
All the sensor drivers and features should be gated by the motionsense
Kconfig. Without this we will be building things we did not intend.
BRANCH=none
BUG=b:272529568,b:273308069
TEST=zmake build rex rex-sans-sensors
Change-Id: I23df21f41f8a9cd4336187d04034e7e9de10110d
Signed-off-by: Yuval Peress <peress@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4334714
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
-rw-r--r-- | zephyr/Kconfig.motionsense | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/zephyr/Kconfig.motionsense b/zephyr/Kconfig.motionsense index 1dc4a9114e..fb08d0d6f5 100644 --- a/zephyr/Kconfig.motionsense +++ b/zephyr/Kconfig.motionsense @@ -16,6 +16,8 @@ menuconfig PLATFORM_EC_MOTIONSENSE Based on the data, it also does other things like calculating lid angle and detect tablet mode. +if PLATFORM_EC_MOTIONSENSE + config PLATFORM_EC_ACCEL_FIFO bool "Sensor FIFO" help @@ -184,3 +186,5 @@ config PLATFORM_EC_GESTURE_HOST_DETECTION rsource "Kconfig.sensor_devices" rsource "Kconfig.body_detection" + +endif # PLATFORM_EC_MOTIONSENSE |