summaryrefslogtreecommitdiff
path: root/common/fpsensor/build.mk
diff options
context:
space:
mode:
authorYicheng Li <yichengli@chromium.org>2019-05-22 13:47:14 -0700
committerCommit Bot <commit-bot@chromium.org>2019-06-07 22:45:22 +0000
commit8e7a7fb6cf9e7afcd1b80911c14ae76e8b9860fc (patch)
treed7b36abb4f7c6f9e4244f8c022b6f0119e070073 /common/fpsensor/build.mk
parent9985215ea27b059e83870d4f7f93918ae058c2dd (diff)
downloadchrome-ec-8e7a7fb6cf9e7afcd1b80911c14ae76e8b9860fc.tar.gz
fpsensor: Add API to check FP sensor encryption status.
Add EC command for the host to query FP sensor encryption status. Currently it's just FP TPM seed has been set or not. Add unit test for this command. Also add ectool command for querying encryption status. BRANCH=nocturne BUG=chromium:952275 TEST=ran unittests TEST=tested enrollment, matching and multifinger on DUT nocturne. TEST=tested querying sensor encryption status using ectool. Change-Id: I07d1e471ead85a517105b38d1ddd793c3046ce8f Signed-off-by: Yicheng Li <yichengli@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1633272 Reviewed-by: Nicolas Norvez <norvez@chromium.org>
Diffstat (limited to 'common/fpsensor/build.mk')
-rw-r--r--common/fpsensor/build.mk7
1 files changed, 4 insertions, 3 deletions
diff --git a/common/fpsensor/build.mk b/common/fpsensor/build.mk
index c70772635b..3b03152b05 100644
--- a/common/fpsensor/build.mk
+++ b/common/fpsensor/build.mk
@@ -7,6 +7,7 @@
# Note that this variable includes the trailing "/"
_fpsensor_dir:=$(dir $(lastword $(MAKEFILE_LIST)))
-all-obj-$(HAS_TASK_FPSENSOR)+= \
- $(_fpsensor_dir)/fpsensor.o \
- $(_fpsensor_dir)/fpsensor_state.o
+all-obj-$(HAS_TASK_FPSENSOR)+=$(_fpsensor_dir)/fpsensor_state.o
+ifneq ($(CONFIG_SPI_FP_PORT),)
+all-obj-$(HAS_TASK_FPSENSOR)+=$(_fpsensor_dir)/fpsensor.o
+endif