summaryrefslogtreecommitdiff
path: root/driver/fingerprint/fpc/libfp/build.mk
diff options
context:
space:
mode:
authorTom Hughes <tomhughes@chromium.org>2019-10-17 16:29:26 -0700
committerCommit Bot <commit-bot@chromium.org>2019-10-28 23:06:14 +0000
commit5ef39980a07bd60c9f39052f9dda6af350e41823 (patch)
tree39ed18545dfb54d0bd6186a153505ff1c17776e6 /driver/fingerprint/fpc/libfp/build.mk
parentc58ea116e8d0bfca98b2b208eb9dc40f01832579 (diff)
downloadchrome-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 'driver/fingerprint/fpc/libfp/build.mk')
-rw-r--r--driver/fingerprint/fpc/libfp/build.mk21
1 files changed, 21 insertions, 0 deletions
diff --git a/driver/fingerprint/fpc/libfp/build.mk b/driver/fingerprint/fpc/libfp/build.mk
new file mode 100644
index 0000000000..8e745f728a
--- /dev/null
+++ b/driver/fingerprint/fpc/libfp/build.mk
@@ -0,0 +1,21 @@
+# 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.
+
+# FPC libfp source files build
+
+# Note that this variable includes the trailing "/"
+libfp_cur_dir:=$(dir $(lastword $(MAKEFILE_LIST)))
+
+# Make sure output directory is created (in build directory)
+dirs-y+="$(libfp_cur_dir)"
+
+sensor-$(CONFIG_FP_SENSOR_FPC1145)=fpc1145
+
+# Only build for these objects for the RW image
+all-obj-rw+=$(libfp_cur_dir)fpc_sensor_pal.o \
+ $(libfp_cur_dir)fpc_private.o
+fp_sensor_header-rw=$(libfp_cur_dir)$(sensor-rw)_private.h
+
+CPPFLAGS+=-DFP_SENSOR_PRIVATE=$(fp_sensor_header-rw)
+CPPFLAGS+=-DFP_SENSOR_CONFIG=$(call uppercase,$(sensor-rw))