From a723e2d1fb011c3f5d86085b21abcd4bf48fefef Mon Sep 17 00:00:00 2001 From: eddielan Date: Mon, 25 Apr 2022 11:35:54 +0800 Subject: [PATCH] fingerprint: Add .mk files for SW42 Bug: 229685137 Test: Build pass Change-Id: I70b506b7bf16a1688418228015c55ba1fcb30161 --- .../fpc1540/sw42/fingerprint_aidl_config.mk | 19 ++++++++++++ .../sw42/fingerprint_hidl_config_factory.mk | 18 +++++++++++ fingerprint/fpc1540/sw42/fpc1540.mk | 30 +++++++++++++++++++ 3 files changed, 67 insertions(+) create mode 100644 fingerprint/fpc1540/sw42/fingerprint_aidl_config.mk create mode 100644 fingerprint/fpc1540/sw42/fingerprint_hidl_config_factory.mk create mode 100644 fingerprint/fpc1540/sw42/fpc1540.mk diff --git a/fingerprint/fpc1540/sw42/fingerprint_aidl_config.mk b/fingerprint/fpc1540/sw42/fingerprint_aidl_config.mk new file mode 100644 index 00000000..d036bb3d --- /dev/null +++ b/fingerprint/fpc1540/sw42/fingerprint_aidl_config.mk @@ -0,0 +1,19 @@ +# ---------------------------- +# Add feature flags below +# ---------------------------- +FPC_CONFIG_BUILD_VERSION=42 +FPC_CONFIG_GOOGLE_CUSTOMIZE=1 +FPC_CONFIG_HAL_SHARED_LIB=1 +FPC_CONFIG_MAX_NR_TEMPLATES=5 +FPC_CONFIG_NO_TU=0 +FPC_CONFIG_SENSE_TOUCH_CALIBRATION_PATH=/data/fpc/calibration_sense_touch.dat +FPC_CONFIG_SENSORTEST=1 +FPC_CONFIG_TA_FS=1 +FPC_DEFECTIVE_PIXEL_LIST_SIZE=5000 +FPC_OTP_DECODE_ERRORS_IGNORE=1 +FPC_SENSOR_SDK_LOG_LEVEL=3 +FPC_TEE_RUNTIME=TRUSTY +LIBFPC_NAME=libfpcmulti_debug.a +FPC_CONFIG_DEBUG=1 +FPC_CONFIG_ENGINEERING=1 +FPC_CONFIG_GOOGLE_RELEASE=1 diff --git a/fingerprint/fpc1540/sw42/fingerprint_hidl_config_factory.mk b/fingerprint/fpc1540/sw42/fingerprint_hidl_config_factory.mk new file mode 100644 index 00000000..4b2567d8 --- /dev/null +++ b/fingerprint/fpc1540/sw42/fingerprint_hidl_config_factory.mk @@ -0,0 +1,18 @@ +# ---------------------------- +# Add feature flags below +# ---------------------------- +FPC_CONFIG_BUILD_VERSION=42 +FPC_CONFIG_GOOGLE_CUSTOMIZE=1 +FPC_CONFIG_MAX_NR_TEMPLATES=5 +FPC_CONFIG_NO_TU=0 +FPC_CONFIG_SENSE_TOUCH_CALIBRATION_PATH=/data/fpc/calibration_sense_touch.dat +FPC_CONFIG_SENSORTEST=1 +FPC_CONFIG_TA_FS=1 +FPC_DEFECTIVE_PIXEL_LIST_SIZE=5000 +FPC_OTP_DECODE_ERRORS_IGNORE=1 +FPC_SENSOR_SDK_LOG_LEVEL=3 +FPC_TEE_RUNTIME=TRUSTY +LIBFPC_NAME=libfpcmulti_debug.a +FPC_CONFIG_DEBUG=1 +FPC_CONFIG_ENGINEERING=1 + diff --git a/fingerprint/fpc1540/sw42/fpc1540.mk b/fingerprint/fpc1540/sw42/fpc1540.mk new file mode 100644 index 00000000..77705388 --- /dev/null +++ b/fingerprint/fpc1540/sw42/fpc1540.mk @@ -0,0 +1,30 @@ +# Factory build, use HIDL hal & extension so that we can use Test tool +ifneq ( ,$(findstring factory, $(TARGET_PRODUCT))) +include device/google/gs101/fingerprint/fpc1540/sw42/fingerprint_hidl_config_factory.mk +PRODUCT_PACKAGES += \ + android.hardware.biometrics.fingerprint@2.1-service.fpc \ + fpc_tee_test\ + SensorTestTool \ + ImageTool \ + ImageCollection \ + fp_test \ + +PRODUCT_PACKAGES += \ + com.fingerprints.extension.xml \ + com.fingerprints.extension \ + +PRODUCT_COPY_FILES += \ + frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml + +else +# Non facotry build, use fingerprint AIDL version +include device/google/gs101/fingerprint/fpc1540/sw42/fingerprint_aidl_config.mk + +PRODUCT_PACKAGES += \ + android.hardware.biometrics.fingerprint-service.fpc42 \ + fingerprint.fpc \ + +PRODUCT_COPY_FILES += \ + frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml + +endif