From ab9a716db1e256b4b95cb3679b0ade49b488b938 Mon Sep 17 00:00:00 2001 From: Gwendal Grignou Date: Wed, 26 Oct 2022 21:52:10 -0700 Subject: 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 Change-Id: I3e0fe478e7970155cc9d2b8cae590ae5ce7b4392 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3984437 Reviewed-by: Boris Mittelberg --- common/build.mk | 1 + 1 file changed, 1 insertion(+) (limited to 'common/build.mk') diff --git a/common/build.mk b/common/build.mk index ef429058f2..c9b2630de5 100644 --- a/common/build.mk +++ b/common/build.mk @@ -29,6 +29,7 @@ common-$(CONFIG_ACCEL_LIS2DH)+=math_util.o common-$(CONFIG_ACCEL_LIS2DS)+=math_util.o common-$(CONFIG_ACCEL_KXCJ9)+=math_util.o common-$(CONFIG_ACCEL_KX022)+=math_util.o +common-$(CONFIG_BODY_DETECTION)+=math_util.o common-$(CONFIG_TEMP_SENSOR_TMP112)+=math_util.o common-$(CONFIG_TEMP_SENSOR_PCT2075)+=math_util.o ifneq ($(CORE),cortex-m) -- cgit v1.2.1