forked from EnJens/vendor-sony-oss-fingerprint
-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathAndroid.mk
106 lines (92 loc) · 2.93 KB
/
Android.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
ifeq ($(PRODUCT_PLATFORM_SOD),true)
ifneq ($(TARGET_DEVICE_NO_FPC), true)
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := [email protected]
LOCAL_INIT_RC := [email protected]
LOCAL_PROPRIETARY_MODULE := true
LOCAL_MODULE_RELATIVE_PATH := hw
LOCAL_SRC_FILES := \
$(call all-subdir-cpp-files) \
QSEEComFunc.c \
common.c
# ---------------- FPC ----------------
ifeq ($(filter-out loire tone,$(SOMC_PLATFORM)),)
LOCAL_SRC_FILES += fpc_imp_loire_tone.c
HAS_FPC := true
endif
ifeq ($(filter-out yoshino,$(SOMC_PLATFORM)),)
LOCAL_SRC_FILES += fpc_imp_yoshino_nile_tama.c
HAS_FPC := true
LOCAL_CFLAGS += \
-DUSE_FPC_YOSHINO
endif
ifeq ($(filter-out nile,$(SOMC_PLATFORM)),)
# NOTE: Nile can have either FPC or Egistec
LOCAL_SRC_FILES += fpc_imp_yoshino_nile_tama.c
HAS_FPC := true
LOCAL_CFLAGS += \
-DUSE_FPC_NILE \
-DHAS_LEGACY_EGISTEC
endif
ifeq ($(filter-out tama,$(SOMC_PLATFORM)),)
LOCAL_SRC_FILES += fpc_imp_yoshino_nile_tama.c
HAS_FPC := true
LOCAL_CFLAGS += \
-DUSE_FPC_TAMA
endif
# ---------------- Egistec ----------------
ifneq ($(filter-out loire tone yoshino tama,$(SOMC_PLATFORM)),)
LOCAL_CFLAGS += -DFINGERPRINT_TYPE_EGISTEC
endif
# Firmware custom location
ifeq ($(filter-out kumano seine edo sagami nagara yodo,$(SOMC_PLATFORM)),)
LOCAL_CFLAGS += \
-DEGIS_QSEE_APP_PATH=\"/odm/firmware\"
endif
# Firmware name and atributes
ifeq ($(filter-out kumano seine edo sagami lena murray,$(SOMC_PLATFORM)),)
LOCAL_CFLAGS += \
-DEGISTEC_SAVE_TEMPLATE_RETURNS_SIZE \
-DEGIS_QSEE_APP_NAME=\"egista\"
else ifeq ($(filter-out nagara,$(SOMC_PLATFORM)),)
LOCAL_CFLAGS += \
-DEGISTEC_SAVE_TEMPLATE_RETURNS_SIZE \
-DEGIS_QSEE_APP_NAME=\"egista64\"
else ifeq ($(filter-out zambezi yodo,$(SOMC_PLATFORM)),)
LOCAL_CFLAGS += \
-DEGISTEC_SAVE_TEMPLATE_RETURNS_SIZE \
-DEGIS_QSEE_APP_NAME=\"egisap\"
else
LOCAL_CFLAGS += \
-DEGIS_QSEE_APP_NAME=\"egisap32\"
endif
# Define dynamic power management for everything but the following platforms:
ifneq ($(filter-out kumano seine,$(SOMC_PLATFORM)),)
LOCAL_CFLAGS += -DHAS_DYNAMIC_POWER_MANAGEMENT
endif
ifneq ($(HAS_FPC),true)
# This file heavily depends on fpc_ implementations from the
# above fpc_imp_* files. There is no sensible default file
# on some platforms, so just remove the file altogether:
LOCAL_SRC_FILES -= BiometricsFingerprint.cpp
endif
LOCAL_SHARED_LIBRARIES := \
libcutils \
libdl \
libdmabufheap \
libhardware \
libhidlbase \
liblog \
libutils
ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true)
LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
endif
LOCAL_CFLAGS += \
-DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION) \
-fexceptions
include $(BUILD_EXECUTABLE)
endif
endif # PRODUCT_PLATFORM_SOD