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 16 PN547C2 := 1 17 PN548C2 := 2 18 PN551 := 3 19 PN553 := 4 20 NQ110 := $PN547C2 21 NQ120 := $PN547C2 22 NQ210 := $PN548C2 23 NQ220 := $PN548C2 24 #NXP PN547 Enable 25 ifeq ($(PN547C2),1) 26 D_CFLAGS += -DPN547C2=1 27 endif 28 ifeq ($(PN548C2),2) 29 D_CFLAGS += -DPN548C2=2 30 endif 31 ifeq ($(PN551),3) 32 D_CFLAGS += -DPN551=3 33 endif 34 ifeq ($(PN553),4) 35 D_CFLAGS += -DPN553=4 36 endif 37 38 #### Select the CHIP #### 39 NXP_CHIP_TYPE := $PN553 40 41 ifeq ($(NXP_CHIP_TYPE),$(PN547C2)) 42 D_CFLAGS += -DNFC_NXP_CHIP_TYPE=PN547C2 43 else ifeq ($(NXP_CHIP_TYPE),$(PN548C2)) 44 D_CFLAGS += -DNFC_NXP_CHIP_TYPE=PN548C2 45 else ifeq ($(NXP_CHIP_TYPE),$(PN551)) 46 D_CFLAGS += -DNFC_NXP_CHIP_TYPE=PN551 47 else ifeq ($(NXP_CHIP_TYPE),$(PN553)) 48 D_CFLAGS += -DNFC_NXP_CHIP_TYPE=PN553 49 else 50 D_CFLAGS += -DNFC_NXP_CHIP_TYPE=PN553 51 endif 52 53 LOCAL_PATH := $(call my-dir) 54 include $(CLEAR_VARS) 55 LOCAL_MODULE := nfc_nci.$(TARGET_DEVICE) 56 LOCAL_PROPRIETARY_MODULE := true 57 LOCAL_MODULE_RELATIVE_PATH := hw 58 LOCAL_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 69 LOCAL_SHARED_LIBRARIES := liblog libcutils libdl libhardware 70 71 LOCAL_CFLAGS := $(D_CFLAGS) 72 LOCAL_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 82 LOCAL_CFLAGS += -DANDROID \ 83 -DNXP_UICC_ENABLE -DNXP_HW_SELF_TEST 84 LOCAL_CFLAGS += -DNFC_NXP_HFO_SETTINGS=FALSE 85 #LOCAL_CFLAGS += -DFELICA_CLT_ENABLE 86 87 88 # 89 # nfc_nci.$(TARGET_DEVICE) 90 # 91 include $(BUILD_SHARED_LIBRARY) 92