1# Copyright (C) 2011 The Android Open Source Project 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15#variables for NFC_NXP_CHIP_TYPE 16PN547C2 := 1 17PN548C2 := 2 18PN551 := 3 19PN553 := 4 20NQ110 := $PN547C2 21NQ120 := $PN547C2 22NQ210 := $PN548C2 23NQ220 := $PN548C2 24#NXP PN547 Enable 25ifeq ($(PN547C2),1) 26D_CFLAGS += -DPN547C2=1 27endif 28ifeq ($(PN548C2),2) 29D_CFLAGS += -DPN548C2=2 30endif 31ifeq ($(PN551),3) 32D_CFLAGS += -DPN551=3 33endif 34ifeq ($(PN553),4) 35D_CFLAGS += -DPN553=4 36endif 37 38#### Select the CHIP #### 39NXP_CHIP_TYPE := $PN553 40 41ifeq ($(NXP_CHIP_TYPE),$(PN547C2)) 42D_CFLAGS += -DNFC_NXP_CHIP_TYPE=PN547C2 43else ifeq ($(NXP_CHIP_TYPE),$(PN548C2)) 44D_CFLAGS += -DNFC_NXP_CHIP_TYPE=PN548C2 45else ifeq ($(NXP_CHIP_TYPE),$(PN551)) 46D_CFLAGS += -DNFC_NXP_CHIP_TYPE=PN551 47else ifeq ($(NXP_CHIP_TYPE),$(PN553)) 48D_CFLAGS += -DNFC_NXP_CHIP_TYPE=PN553 49else 50D_CFLAGS += -DNFC_NXP_CHIP_TYPE=PN553 51endif 52 53LOCAL_PATH := $(call my-dir) 54include $(CLEAR_VARS) 55LOCAL_MODULE := nfc_nci.$(TARGET_DEVICE) 56LOCAL_PROPRIETARY_MODULE := true 57LOCAL_MODULE_RELATIVE_PATH := hw 58LOCAL_SRC_FILES := \ 59 $(call all-c-files-under, common) \ 60 $(call all-c-files-under, dnld) \ 61 $(call all-c-files-under, hal) \ 62 $(call all-c-files-under, log) \ 63 $(call all-c-files-under, self-test) \ 64 $(call all-c-files-under, tml) \ 65 $(call all-c-files-under, utils) \ 66 $(call all-cpp-files-under, utils) \ 67 nfc_nci.c 68 69LOCAL_SHARED_LIBRARIES := liblog libcutils libdl libhardware 70 71LOCAL_CFLAGS := $(D_CFLAGS) 72LOCAL_C_INCLUDES += \ 73 $(LOCAL_PATH)/utils \ 74 $(LOCAL_PATH)/inc \ 75 $(LOCAL_PATH)/common \ 76 $(LOCAL_PATH)/dnld \ 77 $(LOCAL_PATH)/hal \ 78 $(LOCAL_PATH)/log \ 79 $(LOCAL_PATH)/tml \ 80 $(LOCAL_PATH)/self-test \ 81 82LOCAL_CFLAGS += -DANDROID \ 83 -DNXP_UICC_ENABLE -DNXP_HW_SELF_TEST 84LOCAL_CFLAGS += -DNFC_NXP_HFO_SETTINGS=FALSE 85#LOCAL_CFLAGS += -DFELICA_CLT_ENABLE 86 87 88# 89# nfc_nci.$(TARGET_DEVICE) 90# 91include $(BUILD_SHARED_LIBRARY) 92