diff options
author | Tom Hughes <tomhughes@chromium.org> | 2019-10-17 16:29:26 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-10-28 23:06:14 +0000 |
commit | 5ef39980a07bd60c9f39052f9dda6af350e41823 (patch) | |
tree | 39ed18545dfb54d0bd6186a153505ff1c17776e6 /common/fpsensor | |
parent | c58ea116e8d0bfca98b2b208eb9dc40f01832579 (diff) | |
download | chrome-ec-5ef39980a07bd60c9f39052f9dda6af350e41823.tar.gz |
fpsensor: Copy BEP and libfp source files from private repo
These source files have been approved to be released publicly (see
http://b/137848573#comment20). There were no source changes in the move,
except for small changes to the Makefiles to adjust for the move.
For future "git blame"s refer to the history of the files in the private
repo if you need to access the full history.
BRANCH=none
BUG=b:137848573
TEST=make buildall -j
Cq-Depend: chrome-internal:2005127
Change-Id: I1a809ac5a4d95637840ee47712e9c80a40a445c5
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1869531
Diffstat (limited to 'common/fpsensor')
-rw-r--r-- | common/fpsensor/build.mk | 4 | ||||
-rw-r--r-- | common/fpsensor/fpsensor_stubs.c | 30 |
2 files changed, 0 insertions, 34 deletions
diff --git a/common/fpsensor/build.mk b/common/fpsensor/build.mk index 03bc80f2ef..a1eeaa9932 100644 --- a/common/fpsensor/build.mk +++ b/common/fpsensor/build.mk @@ -10,7 +10,3 @@ _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 all-obj-$(HAS_TASK_FPSENSOR)+=$(_fpsensor_dir)fpsensor.o - -ifeq ($(HAS_MOCK_FP_SENSOR),) -all-obj-$(HAS_TASK_FPSENSOR)+=$(_fpsensor_dir)fpsensor_stubs.o -endif diff --git a/common/fpsensor/fpsensor_stubs.c b/common/fpsensor/fpsensor_stubs.c deleted file mode 100644 index 3acaa689f5..0000000000 --- a/common/fpsensor/fpsensor_stubs.c +++ /dev/null @@ -1,30 +0,0 @@ -/* Copyright 2019 The Chromium OS Authors. All rights reserved. - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - -#include "common.h" -#include "fpsensor_state.h" -#include "panic.h" - -/* - * These are built when we don't have the private driver files. - * The definitions are intentionally kept separate from the mock - * implementations so that we don't accidentally compile mocks into a release. - */ - -#if !defined(HAVE_FP_PRIVATE_DRIVER) - -int fp_sensor_init(void) -{ - panic("fp_sensor_init stub should never be called\n"); - return EC_ERROR_UNKNOWN; -} - -int fp_sensor_deinit(void) -{ - panic("fp_sensor_deinit stub should never be called\n"); - return EC_ERROR_UNKNOWN; -} - -#endif /* !HAVE_FP_PRIVATE_DRIVER */ |