summaryrefslogtreecommitdiff
path: root/common/mock/build.mk
diff options
context:
space:
mode:
authorTom Hughes <tomhughes@chromium.org>2019-06-05 14:28:00 -0700
committerCommit Bot <commit-bot@chromium.org>2019-09-28 17:00:32 +0000
commit3c1215dadc3a279925a17f55bdf0cb8863c41626 (patch)
tree5eee8e879aed7545f7d860119d5867c5455f730f /common/mock/build.mk
parent19b8749c0915278171acfd83495d5a73bb359385 (diff)
downloadchrome-ec-3c1215dadc3a279925a17f55bdf0cb8863c41626.tar.gz
fpsensor: Deinit the sensor before clearing the context
The opaque context contains sensor state that we can't nuke from underneath the sensor library. Calling fp_sensor_deinit will release this context and allow us to safely clear the context. BRANCH=none BUG=b:124773209 TEST="fpenroll" followed by "fpclear" in the FP console TEST=On nocturne, in the UI, enroll finger, log out, and log in => then lock and unlock with finger TEST=make buildall -j Change-Id: I3e25bdf7eaaf99f3801547e11a6c524f924f4726 Signed-off-by: Tom Hughes <tomhughes@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1647294 Reviewed-by: Nicolas Norvez <norvez@chromium.org> Commit-Queue: Yicheng Li <yichengli@chromium.org> Tested-by: Yicheng Li <yichengli@chromium.org>
Diffstat (limited to 'common/mock/build.mk')
-rw-r--r--common/mock/build.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/mock/build.mk b/common/mock/build.mk
index 037718d3bb..e89c658968 100644
--- a/common/mock/build.mk
+++ b/common/mock/build.mk
@@ -4,4 +4,5 @@
# See common/mock/README.md for more information.
+mock-$(HAS_MOCK_FPSENSOR) += fpsensor_mock.o
mock-$(HAS_MOCK_ROLLBACK) += rollback_mock.o