unplugged-vendor/vendor/yft/opensource/packages/YftFingerprint/fingerprint.mk

208 lines
9.8 KiB
Makefile
Executable File

# fingerprint
PRODUCT_COPY_FILES += frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml
ifneq ($(filter $(YFT_SUPPORT_FINGERPRINT_CHIP), blestech_ree),)
PRODUCT_COPY_FILES += vendor/yft/opensource/packages/YftFingerprint/blestech/ree/init.fingerprint.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.fingerprint.rc
DEVICE_MANIFEST_FILE += vendor/yft/opensource/packages/YftFingerprint/blestech/ree/manifest.xml
else ifneq ($(filter $(YFT_SUPPORT_FINGERPRINT_CHIP), sunwave_tee),)
PRODUCT_COPY_FILES += vendor/yft/opensource/packages/YftFingerprint/init.fingerprint.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.fingerprint.rc
#DEVICE_MANIFEST_FILE += vendor/yft/opensource/packages/YftFingerprint/sunwave/tee/manifest.xml
else
PRODUCT_COPY_FILES += vendor/yft/opensource/packages/YftFingerprint/init.fingerprint.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.fingerprint.rc
#DEVICE_MANIFEST_FILE += vendor/yft/opensource/packages/YftFingerprint/manifest.xml
endif
PRODUCT_PACKAGES += android.hardware.biometrics.fingerprint@2.1
PRODUCT_PACKAGES += android.hardware.biometrics.fingerprint@2.1-service
#PRODUCT_PACKAGES += android.hardware.biometrics.fingerprint@2.2
ifeq (yes,$(strip $(YFT_SUPPORT_FINGERPRINT)))
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
ro.yft_fingerprint=1
endif
ifeq (yes,$(strip $(YFT_SUPPORT_FINGERPRINT_FRONT)))
PRODUCT_PROPERTY_OVERRIDES += \
ro.yft_fingerprint_front=1
endif
ifeq (yes,$(strip $(YFT_SUPPORT_FINGERPRINT_SIDE)))
SYSTEM_PRODUCT_PROPERTY_OVERRIDES += \
ro.yft_fingerprint_side=1
endif
ifeq (yes,$(strip $(YFT_SUPPORT_FINGERPRINT_HOMEKEY)))
PRODUCT_PROPERTY_OVERRIDES += \
ro.yft_fingerprint_homekey=1
endif
#cdfinger
ifneq ($(filter $(YFT_SUPPORT_FINGERPRINT_CHIP), cdfiner_fps958e_tee),)
PRODUCT_PACKAGES += cdfinger.fingerprint.default
endif
ifneq ($(filter $(YFT_SUPPORT_FINGERPRINT_CHIP), cdfiner_fps988_tee),)
PRODUCT_PACKAGES += cdfinger.fingerprint.default
endif
# focaltech
ifneq ($(filter $(YFT_SUPPORT_FINGERPRINT_CHIP), focaltech_tee),)
PRODUCT_PACKAGES += fingerprint.focaltech.default
PRODUCT_PACKAGES += vendor.focaltech.fingerprint@1.0-service
endif
ifneq ($(filter $(YFT_SUPPORT_FINGERPRINT_CHIP), focaltech_ree),)
PRODUCT_COPY_FILES += vendor/yft/opensource/packages/YftFingerprint/focaltech/ree/vendor/bin/hw/lib64/vendor.focaltech.fingerprint@1.0-service:$(TARGET_COPY_OUT_VENDOR)/bin/hw/vendor.focaltech.fingerprint@1.0-service
PRODUCT_COPY_FILES += vendor/yft/opensource/packages/YftFingerprint/focaltech/ree/vendor/bin/ff_ta.elf:$(TARGET_COPY_OUT_VENDOR)/bin/ff_ta.elf
PRODUCT_PACKAGES += fingerprint.focaltech.default
endif
#blestech
ifneq ($(filter $(YFT_SUPPORT_FINGERPRINT_CHIP), blestech_tee),)
#PRODUCT_COPY_FILES += vendor/yft/opensource/packages/YftFingerprint/blestech/tee/vendor/app/t6/f74c8d0d-4284-4acf-d0c425260610b3bd.ta:vendor/app/t6/f74c8d0d-4284-4acf-d0c425260610b3bd.ta
PRODUCT_COPY_FILES += vendor/yft/opensource/packages/YftFingerprint/blestech/tee/vendor/bin/bin64/btlfpserver:$(TARGET_COPY_OUT_VENDOR)/bin/hw/btlfpserver
DEVICE_MANIFEST_FILE += vendor/yft/opensource/packages/YftFingerprint/blestech/tee/manifest.xml
PRODUCT_PACKAGES += blestech.fingerprint.default \
libBtlFpHal \
libxuFPAlg \
libbl_fp_algo \
libBtlFpService
endif
ifneq ($(filter $(YFT_SUPPORT_FINGERPRINT_CHIP), blestech_ree),)
ifeq (MT6580,$(strip $(MTK_PLATFORM)))
PRODUCT_COPY_FILES += vendor/yft/opensource/packages/YftFingerprint/blestech/ree/vendor/bin/bin32/btlfpserver:$(TARGET_COPY_OUT_VENDOR)/bin/hw/btlfpserver
else
PRODUCT_COPY_FILES += vendor/yft/opensource/packages/YftFingerprint/blestech/ree/vendor/bin/bin64/btlfpserver:$(TARGET_COPY_OUT_VENDOR)/bin/hw/btlfpserver
endif
PRODUCT_PACKAGES += blestech.fingerprint.default \
libBtlFpHal \
libxuFPAlg \
libbl_fp_algo
endif
# microarray
ifneq ($(filter $(YFT_SUPPORT_FINGERPRINT_CHIP), microarray_tee_back),)
PRODUCT_PACKAGES += microarray.fingerprint.default \
libfprint-x32 \
libfprint-x64
endif
ifneq ($(filter $(YFT_SUPPORT_FINGERPRINT_CHIP), microarray_ree_back),)
PRODUCT_PACKAGES += microarray.fingerprint.default \
libfprint-x32 \
libfprint-x64 \
libma-fpservice
endif
# fortsense
ifneq ($(filter $(YFT_SUPPORT_FINGERPRINT_CHIP), fortsense_tee),)
#PRODUCT_COPY_FILES += vendor/yft/opensource/packages/YftFingerprint/fortsense/tee/vendor/bin/hw/vendor.fptool.fingerprint@2.0-service:$(TARGET_COPY_OUT_VENDOR)/bin/hw/vendor.fptool.fingerprint@2.0-service
#DEVICE_MANIFEST_FILE += vendor/yft/opensource/packages/YftFingerprint/fortsense/tee/manifest.xml
PRODUCT_COPY_FILES += vendor/yft/opensource/packages/YftFingerprint/fortsense/fsfp_config.xml:$(TARGET_COPY_OUT_VENDOR)/etc/fsfp_config.xml
#DEVICE_MANIFEST_FILE += vendor/yft/opensource/packages/YftFingerprint/fortsense/manifest.xml
PRODUCT_PACKAGES += fsfingerprint.default \
vendor.fptool.fingerprint@2.0-impl \
vendor.fptool.fingerprint@2.0-service \
vendor.fptool.fingerprint@2.0
endif
# fortsense
ifneq ($(filter $(YFT_SUPPORT_FINGERPRINT_CHIP), fortsense_ree),)
PRODUCT_COPY_FILES += vendor/yft/opensource/packages/YftFingerprint/fortsense/ree/vendor/bin/fs_ta:$(TARGET_COPY_OUT_VENDOR)/bin/fs_ta
PRODUCT_COPY_FILES += vendor/yft/opensource/packages/YftFingerprint/fortsense/fsfp_config.xml:$(TARGET_COPY_OUT_VENDOR)/etc/fsfp_config.xml
PRODUCT_PACKAGES += fsfingerprint.default \
vendor.fptool.fingerprint@2.0-impl \
vendor.fptool.fingerprint@2.0-service \
vendor.fptool.fingerprint@2.0
endif
# sunwave
ifneq ($(filter $(YFT_SUPPORT_FINGERPRINT_CHIP), sunwave_tee),)
#PRODUCT_COPY_FILES += vendor/yft/opensource/packages/YftFingerprint/sunwave/tee/vendor/bin/hw/vendor.sw.swfingerprint@1.0-service:$(TARGET_COPY_OUT_VENDOR)/bin/hw/vendor.sw.swfingerprint@1.0-service
#ifeq (yes,$(strip $(YFT_SUNWAVE_FINGERPRINT_SPI0)))
# PRODUCT_COPY_FILES += vendor/yft/opensource/packages/YftFingerprint/sunwave/tee/vendor/etc/spi0/sw_config.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sw_config.xml
#else
PRODUCT_COPY_FILES += vendor/yft/opensource/packages/YftFingerprint/sunwave/tee/vendor/etc/spi0/sw_config.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sw_config.xml
#endif
PRODUCT_PACKAGES += sunwave.fingerprint.default
endif
ifneq ($(filter $(YFT_SUPPORT_FINGERPRINT_CHIP), sunwave_9022_tee),)
#PRODUCT_COPY_FILES += vendor/yft/opensource/packages/YftFingerprint/sunwave/9022_tee/vendor/bin/hw/vendor.sw.swfingerprint@1.0-service:$(TARGET_COPY_OUT_VENDOR)/bin/hw/vendor.sw.swfingerprint@1.0-service
#DEVICE_MANIFEST_FILE += vendor/yft/opensource/packages/YftFingerprint/sunwave/ree/manifest.xml
#ifeq (yes,$(strip $(YFT_SUNWAVE_FINGERPRINT_SPI0)))
# PRODUCT_COPY_FILES += vendor/yft/opensource/packages/YftFingerprint/sunwave/tee/vendor/etc/spi0/sw_config.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sw_config.xml
#else
PRODUCT_COPY_FILES += vendor/yft/opensource/packages/YftFingerprint/sunwave/9022_tee/vendor/etc/sw_config.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sw_config.xml
#endif
PRODUCT_PACKAGES += sunwave.fingerprint.default
#vendor.sw.swfingerprint@1.0-impl \
#vendor.sw.swfingerprint@1.0
endif
ifneq ($(filter $(YFT_SUPPORT_FINGERPRINT_CHIP), sunwave_ree),)
PRODUCT_COPY_FILES += vendor/yft/opensource/packages/YftFingerprint/sunwave/ree/vendor/bin/hw/vendor.sw.swfingerprint@1.0-service:$(TARGET_COPY_OUT_VENDOR)/bin/hw/vendor.sw.swfingerprint@1.0-service
PRODUCT_COPY_FILES += vendor/yft/opensource/packages/YftFingerprint/sunwave/ree/vendor/bin/sf_ta:$(TARGET_COPY_OUT_VENDOR)/bin/sf_ta
#ifeq (yes,$(strip $(YFT_SUNWAVE_FINGERPRINT_SPI0)))
# PRODUCT_COPY_FILES += vendor/yft/opensource/packages/YftFingerprint/sunwave/ree/vendor/etc/spi0/sw_config.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sw_config.xml
#else
PRODUCT_COPY_FILES += vendor/yft/opensource/packages/YftFingerprint/sunwave/ree/vendor/etc/spi0/sw_config.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sw_config.xml
#endif
DEVICE_MANIFEST_FILE += vendor/yft/opensource/packages/YftFingerprint/sunwave/ree/manifest.xml
PRODUCT_PACKAGES += sunwave.fingerprint.default \
vendor.sw.swfingerprint@1.0-impl \
vendor.sw.swfingerprint@1.0
endif
# chipone
ifneq ($(filter $(YFT_SUPPORT_FINGERPRINT_CHIP), chipone_tee),)
#DEVICE_MANIFEST_FILE += vendor/yft/opensource/packages/YftFingerprint/chipone/manifest.xml
PRODUCT_PACKAGES += fpsensor_fingerprint.default
endif
ifneq ($(filter $(YFT_SUPPORT_FINGERPRINT_CHIP), chipone_ree),)
#DEVICE_MANIFEST_FILE += vendor/yft/opensource/packages/YftFingerprint/chipone/manifest.xml
PRODUCT_PACKAGES += fpsensor_fingerprint.default\
fpsensor_module.default
endif
# goodix
ifneq ($(filter $(YFT_SUPPORT_FINGERPRINT_CHIP), goodix_gf3206_tee),)
PRODUCT_PACKAGES += fingerprint.default\
libgf_ca \
libgf_hal \
libvendor.goodix.hardware.fingerprint@1.0-service \
libvendor.goodix.hardware.fingerprint@1.0 \
android.hidl.base@1.0
endif
ifneq ($(filter $(YFT_SUPPORT_FINGERPRINT_CHIP), goodix_gf3258_tee),)
PRODUCT_PACKAGES += fingerprint.default\
libgf_ca \
libgf_hal \
libgoodixhwfingerprint \
libvendor.goodix.hardware.biometrics.fingerprint@2.1
endif
# dk goodix 3216
ifneq ($(filter $(YFT_SUPPORT_FINGERPRINT_CHIP), goodix_dk_3216_tee),)
PRODUCT_PACKAGES += fingerprint.default\
libgf_ca \
libgf_hal \
libvendor.goodix.hardware.biometrics.fingerprint@2.1 \
libgoodixhwfingerprint
endif
# chipsailing
ifneq ($(filter $(YFT_SUPPORT_FINGERPRINT_CHIP), chipsailing_tee),)
PRODUCT_PACKAGES += chipsailing.fingerprint.default \
libfp_hal
endif