an-xu | 7ac9ab9 | 2022-12-28 11:20:39 +0800 | [diff] [blame] | 1 | ifeq (0,1) |
Bhuvan Varshney | 054c1ae | 2019-03-08 13:50:54 +0530 | [diff] [blame] | 2 | # Enable build support for NFC open source vendor modules |
Sairam Bandikanti | 01441fb | 2021-05-28 15:16:28 +0530 | [diff] [blame] | 3 | ifeq ($(call is-board-platform-in-list, sdm845 sdm710 msmnile $(MSMSTEPPE) $(TRINKET) kona lito bengal atoll lahaina holi monaco),true) |
Bhuvan Varshney | 054c1ae | 2019-03-08 13:50:54 +0530 | [diff] [blame] | 4 | TARGET_USES_NQ_NFC := true |
Bhuvan Varshney | 51db412 | 2020-09-15 09:11:07 +0530 | [diff] [blame] | 5 | # Disable NFC on targets matching the TARGET_PRODUCT value in the list |
| 6 | ifeq ($(filter $(TARGET_PRODUCT), bengal_32 bengal_32go),$(TARGET_PRODUCT)) |
| 7 | TARGET_USES_NQ_NFC := false |
| 8 | endif |
Bhuvan Varshney | 054c1ae | 2019-03-08 13:50:54 +0530 | [diff] [blame] | 9 | endif |
| 10 | |
Gaurav Singhal | 6ac5cbb | 2019-12-26 17:55:32 +0530 | [diff] [blame] | 11 | NQ_VENDOR_NFC += vendor.nxp.hardware.nfc@2.0-service |
Bhuvan Varshney | 054c1ae | 2019-03-08 13:50:54 +0530 | [diff] [blame] | 12 | NQ_VENDOR_NFC += nfc_nci.nqx.default.hw |
| 13 | |
| 14 | ifeq ($(strip $(TARGET_USES_NQ_NFC)),true) |
| 15 | PRODUCT_COPY_FILES += \ |
| 16 | frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \ |
| 17 | frameworks/native/data/etc/com.android.nfc_extras.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.android.nfc_extras.xml \ |
| 18 | frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \ |
| 19 | frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \ |
| 20 | frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \ |
Bhuvan Varshney | 962cb40 | 2019-06-04 13:01:39 +0530 | [diff] [blame] | 21 | frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \ |
| 22 | frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \ |
Bhuvan Varshney | 054c1ae | 2019-03-08 13:50:54 +0530 | [diff] [blame] | 23 | vendor/nxp/opensource/halimpl/SN100x/halimpl/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci.conf |
| 24 | |
| 25 | PRODUCT_PACKAGES += $(NQ_VENDOR_NFC) |
| 26 | endif |
an-xu | 7ac9ab9 | 2022-12-28 11:20:39 +0800 | [diff] [blame] | 27 | endif |
| 28 | |
Bhuvan Varshney | 054c1ae | 2019-03-08 13:50:54 +0530 | [diff] [blame] | 29 | |