NFC build system changes

Build system changes to include the nfc packages in the build

Change-Id: I697558f01ae367d2baacdf2c7fcf1a036b3edacd
diff --git a/msm8226.mk b/msm8226.mk
index 594fa8e..1b4242c 100644
--- a/msm8226.mk
+++ b/msm8226.mk
@@ -31,3 +31,31 @@
     AntHalService \
     libantradio \
     antradio_app
+
+# NFC packages
+PRODUCT_PACKAGES += \
+    libnfc-nci \
+    libnfc_nci_jni \
+    nfc_nci.msm8226 \
+    NfcNci \
+    Tag \
+    com.android.nfc_extras
+
+# NFCEE access control
+ifeq ($(TARGET_BUILD_VARIANT),user)
+    NFCEE_ACCESS_PATH := device/qcom/msm8226/nfc/nfcee_access.xml
+else
+    NFCEE_ACCESS_PATH := device/qcom/msm8226/nfc/nfcee_access_debug.xml
+endif
+
+# file that declares the MIFARE NFC constant
+# Commands to migrate prefs from com.android.nfc3 to com.android.nfc
+# NFC access control + feature files + configuration
+PRODUCT_COPY_FILES += \
+        packages/apps/Nfc/migrate_nfc.txt:system/etc/updatecmds/migrate_nfc.txt \
+        frameworks/native/data/etc/com.nxp.mifare.xml:system/etc/permissions/com.nxp.mifare.xml \
+        frameworks/native/data/etc/com.android.nfc_extras.xml:system/etc/permissions/com.android.nfc_extras.xml \
+        $(NFCEE_ACCESS_PATH):system/etc/nfcee_access.xml \
+        frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
+        device/qcom/msm8226/nfc/libnfc-nci.conf:system/etc/libnfc-nci.conf
+