summaryrefslogtreecommitdiff
path: root/common/fpsensor/build.mk
diff options
context:
space:
mode:
authorYicheng Li <yichengli@chromium.org>2019-06-06 18:27:42 -0700
committerCommit Bot <commit-bot@chromium.org>2019-06-13 19:13:57 +0000
commit35d0e17de6d76699c4fac850d39ed4c4b5488cb2 (patch)
treec527fec2dd43909f444f6f12a2d9c8336ce9720a /common/fpsensor/build.mk
parent2fb0ff65ecac63829d93d1d9ae0994ebf7a5883d (diff)
downloadchrome-ec-35d0e17de6d76699c4fac850d39ed4c4b5488cb2.tar.gz
fpsensor: Move crypto-related code to fpsensor_crypto.c
Move crypto-related code to common/fpsensor/fpsensor_state.c. This facilitates unittesting because we can control whether to link in crypto-related code, and also facilitates mocking the encryption engine. BRANCH=nocturne BUG=chromium:927095 TEST=ran unittests TEST=tested enrollment, matching and multifinger on DUT nocturne Change-Id: I5bffc1460cbe2c9e3d6294ea5fff41f14019f0eb Signed-off-by: Yicheng Li <yichengli@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1648922 Reviewed-by: Nicolas Norvez <norvez@chromium.org> Reviewed-by: Tom Hughes <tomhughes@chromium.org>
Diffstat (limited to 'common/fpsensor/build.mk')
-rw-r--r--common/fpsensor/build.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/fpsensor/build.mk b/common/fpsensor/build.mk
index 3b03152b05..c684dd01b9 100644
--- a/common/fpsensor/build.mk
+++ b/common/fpsensor/build.mk
@@ -10,4 +10,5 @@ _fpsensor_dir:=$(dir $(lastword $(MAKEFILE_LIST)))
all-obj-$(HAS_TASK_FPSENSOR)+=$(_fpsensor_dir)/fpsensor_state.o
ifneq ($(CONFIG_SPI_FP_PORT),)
all-obj-$(HAS_TASK_FPSENSOR)+=$(_fpsensor_dir)/fpsensor.o
+all-obj-$(HAS_TASK_FPSENSOR)+=$(_fpsensor_dir)/fpsensor_crypto.o
endif