summaryrefslogtreecommitdiff
path: root/driver/fingerprint/fpc
diff options
context:
space:
mode:
Diffstat (limited to 'driver/fingerprint/fpc')
-rw-r--r--driver/fingerprint/fpc/build.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/driver/fingerprint/fpc/build.mk b/driver/fingerprint/fpc/build.mk
index fd4b45a6ff..5c18a1f096 100644
--- a/driver/fingerprint/fpc/build.mk
+++ b/driver/fingerprint/fpc/build.mk
@@ -7,6 +7,10 @@
# Note that this variable includes the trailing "/"
_fpc_cur_dir:=$(dir $(lastword $(MAKEFILE_LIST)))
+# Only build if FPC sensor is configured.
+ifneq (,$(filter rw,$(CONFIG_FP_SENSOR_FPC1145) $(CONFIG_FP_SENSOR_FPC1025) \
+ $(CONFIG_FP_SENSOR_FPC1035)))
+
ifeq ($(CONFIG_FP_SENSOR_FPC1145),rw)
include $(_fpc_cur_dir)libfp/build.mk
else ifeq ($(CONFIG_FP_SENSOR_FPC1025),rw)
@@ -22,3 +26,5 @@ dirs-rw+="$(_fpc_cur_dir)"
# Only build these objects for the RW image
all-obj-rw+=$(_fpc_cur_dir)fpc_sensor.o
endif
+
+endif