-
Notifications
You must be signed in to change notification settings - Fork 1
/
nfc_vendor_product.mk
20 lines (16 loc) · 1.09 KB
/
nfc_vendor_product.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Enable build support for NFC open source vendor modules
ifeq ($(call is-board-platform-in-list, sdm845 sdm710 qcs605 sdm660),true)
TARGET_USES_NQ_NFC := true
endif
NQ_VENDOR_NFC += [email protected]
NQ_VENDOR_NFC += nfc_nci.nqx.default.hw
ifeq ($(strip $(TARGET_USES_NQ_NFC)),true)
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
frameworks/native/data/etc/com.android.nfc_extras.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.android.nfc_extras.xml \
frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
vendor/nxp/opensource/pn5xx/halimpl/halimpl/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci.conf
PRODUCT_PACKAGES += $(NQ_VENDOR_NFC)
endif