summaryrefslogtreecommitdiff
path: root/common/fpsensor
diff options
context:
space:
mode:
authorCraig Hesling <hesling@chromium.org>2019-07-26 09:32:11 -0700
committerCommit Bot <commit-bot@chromium.org>2019-10-25 17:58:19 +0000
commit7eded13a72691fdce4d66f59c5b119969afa35c0 (patch)
tree5786465fa15045ca1524de72a9947bf78d6c5a89 /common/fpsensor
parent5866ec2921784004f66f9a0407f97c1659d674fb (diff)
downloadchrome-ec-7eded13a72691fdce4d66f59c5b119969afa35c0.tar.gz
fuzz_host_cmd: Add fpsensor task + fp host cmds
This CL enables the fpsensor task and adds the following remaining fingerprint host commands to the fuzzer: * EC_CMD_FP_PASSTHRU * EC_CMD_FP_INFO * EC_CMD_FP_FRAME * EC_CMD_FP_STATS * EC_CMD_FP_TEMPLATE BRANCH=none BUG=b:116065496 TEST=make buildall -j TEST=make run-host_command_fuzz TEST=# Pull in TEST_COVERAGE fix git fetch "https://chromium.googlesource.com/chromiumos/platform/ec" \ refs/changes/86/1725186/1 && git cherry-pick FETCH_HEAD make host-host_command_fuzz TEST_COVERAGE=1 timeout 5m ./build/host/host_command_fuzz/host_command_fuzz.exe llvm-profdata merge -sparse default.profraw -o default.profdata llvm-cov show build/host/host_command_fuzz/host_command_fuzz.exe \ --instr-profile=default.profdata --format=html --output-dir=cov # Inspect cov/.../common/fpsensor/fpsensor_state.c.html to verify Change-Id: Icad9493ba41cd4daa61a30246d01afd1dbe16c56 Signed-off-by: Craig Hesling <hesling@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1682945 Reviewed-by: Tom Hughes <tomhughes@chromium.org> Commit-Queue: Sean Abraham <seanabraham@chromium.org>
Diffstat (limited to 'common/fpsensor')
-rw-r--r--common/fpsensor/build.mk3
1 files changed, 1 insertions, 2 deletions
diff --git a/common/fpsensor/build.mk b/common/fpsensor/build.mk
index 687496bf2a..03bc80f2ef 100644
--- a/common/fpsensor/build.mk
+++ b/common/fpsensor/build.mk
@@ -9,9 +9,8 @@ _fpsensor_dir:=$(dir $(lastword $(MAKEFILE_LIST)))
all-obj-$(HAS_TASK_FPSENSOR)+=$(_fpsensor_dir)fpsensor_state.o
all-obj-$(HAS_TASK_FPSENSOR)+=$(_fpsensor_dir)fpsensor_crypto.o
-ifneq ($(CONFIG_SPI_FP_PORT),)
all-obj-$(HAS_TASK_FPSENSOR)+=$(_fpsensor_dir)fpsensor.o
-endif
+
ifeq ($(HAS_MOCK_FP_SENSOR),)
all-obj-$(HAS_TASK_FPSENSOR)+=$(_fpsensor_dir)fpsensor_stubs.o
endif