diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2022-10-26 21:52:10 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-10-28 20:58:10 +0000 |
commit | ab9a716db1e256b4b95cb3679b0ade49b488b938 (patch) | |
tree | bdff671e5ad3e71e30ab56f4f084f34a2fd72e28 /test | |
parent | 1847c8822918092dd2d6268f81d8875e6372bfd6 (diff) | |
download | chrome-ec-ab9a716db1e256b4b95cb3679b0ade49b488b938.tar.gz |
test: sensor tests: Include what we need
Do not include LID_ANGLE when the test is not exercising that code.
Include math library whenever it is needed.
BUG=None
BRANCH=none
TEST=make -j buildall passes.
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Change-Id: I3e0fe478e7970155cc9d2b8cae590ae5ce7b4392
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3984437
Reviewed-by: Boris Mittelberg <bmbm@google.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/test_config.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/test_config.h b/test/test_config.h index 3f87bccc35..3482449c10 100644 --- a/test/test_config.h +++ b/test/test_config.h @@ -206,13 +206,17 @@ enum sensor_id { SENSOR_COUNT, }; +#if defined(TEST_MOTION_ANGLE) || defined(TEST_MOTION_ANGLE_TABLET) || \ + defined(TEST_MOTION_LID) #define CONFIG_LID_ANGLE #define CONFIG_LID_ANGLE_SENSOR_BASE BASE #define CONFIG_LID_ANGLE_SENSOR_LID LID #define CONFIG_TABLET_MODE +#endif /* LID ANGLE needed */ + #define CONFIG_MOTION_FILL_LPC_SENSE_DATA -#endif +#endif /* sensor_id needed */ #if defined(TEST_MOTION_ANGLE) #define CONFIG_ACCEL_FORCE_MODE_MASK \ |