-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNfcDeviceConfigVendor.mk
57 lines (44 loc) · 2.71 KB
/
NfcDeviceConfigVendor.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
# Device configuration file to be included from device.mk for the vendor image, e.g.
#
# -include vendor/st/nfc/st21nfc/NfcDeviceConfigVendor.mk
######################################################################
########################## VENDOR image ############################
######################################################################
# Merge the manifest as needed for NFC support.
#DEVICE_MANIFEST_FILE += vendor/st/nfc/st21nfc/conf/manifest_nfc.xml
# Copy the correct parameters of the NFC controller depending on the hardware layout and CLF version.
#PRODUCT_COPY_FILES += \
# $(NFC_RF_CONFIG_PATH)/st21nfc_conf.txt:$(TARGET_COPY_OUT_VENDOR)/etc/st21nfc_conf.txt:st
################################################
## Configuration for ST NFC packages
PRODUCT_PACKAGES += \
nfc_nci.st21nfc.st \
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml:st \
frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml:st \
frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml:st \
frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml:st \
# if eSE: frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml:st \
# Stack configuration files (common for ST stack and AOSP stack)
ifneq ($(strip $(TARGET_BUILD_VARIANT)),user)
PRODUCT_COPY_FILES += \
vendor/st/nfc/st21nfc/conf/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci.conf:st \
vendor/st/nfc/st21nfc/conf/libnfc-hal-st.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-hal-st.conf:st
else
# Configuration files for user build, remove some logs for GSMA certif
PRODUCT_COPY_FILES += \
vendor/st/nfc/st21nfc/conf/libnfc-nci.conf.user:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci.conf:st \
vendor/st/nfc/st21nfc/conf/libnfc-hal-st.conf.user:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-hal-st.conf:st
endif
################################################
## Factory tests support
PRODUCT_PACKAGES += \
################################################
## If you need NFC firmware to be flashed before either NFC stack or factory
# tool starts, you can use this. This avoids in particular a long startup of
# the factory tool the 1st time it runs (FW flashing)
PRODUCT_PACKAGES += \
# Init.rc files
PRODUCT_COPY_FILES += \
vendor/st/nfc/st21nfc/conf/init.vendor.st21nfc.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.stnfc.rc:st