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 NQ110 := $PN547C2 20 NQ120 := $PN547C2 21 NQ210 := $PN548C2 22 NQ220 := $PN548C2 23 #NXP PN547 Enable 24 ifeq ($(PN547C2),1) 25 D_CFLAGS += -DPN547C2=1 26 endif 27 ifeq ($(PN548C2),2) 28 D_CFLAGS += -DPN548C2=2 29 endif 30 ifeq ($(PN551),3) 31 D_CFLAGS += -DPN551=3 32 endif 33 34 #### Select the CHIP #### 35 ifeq ($(NXP_CHIP_TYPE),$(PN547C2)) 36 D_CFLAGS += -DNFC_NXP_CHIP_TYPE=PN547C2 37 else ifeq ($(NXP_CHIP_TYPE),$(PN548C2)) 38 D_CFLAGS += -DNFC_NXP_CHIP_TYPE=PN548C2 39 else ifeq ($(NXP_CHIP_TYPE),$(PN551)) 40 D_CFLAGS += -DNFC_NXP_CHIP_TYPE=PN551 41 else 42 D_CFLAGS += -DNFC_NXP_CHIP_TYPE=PN551 43 endif 44 LOCAL_PATH := $(call my-dir) 45 include $(CLEAR_VARS) 46 LOCAL_MODULE := nfc_nci.$(TARGET_DEVICE) 47 LOCAL_MODULE_RELATIVE_PATH := hw 48 LOCAL_SRC_FILES := $(call all-subdir-c-files) $(call all-subdir-cpp-files) 49 LOCAL_SHARED_LIBRARIES := liblog libcutils libhardware_legacy libdl libhardware 50 51 LOCAL_CFLAGS := $(D_CFLAGS) 52 LOCAL_C_INCLUDES += \ 53 $(LOCAL_PATH)/utils \ 54 $(LOCAL_PATH)/inc \ 55 $(LOCAL_PATH)/common \ 56 $(LOCAL_PATH)/dnld \ 57 $(LOCAL_PATH)/hal \ 58 $(LOCAL_PATH)/log \ 59 $(LOCAL_PATH)/tml \ 60 $(LOCAL_PATH)/self-test 61 62 LOCAL_CFLAGS += -DANDROID \ 63 -DNXP_UICC_ENABLE -DNXP_HW_SELF_TEST 64 LOCAL_CFLAGS += -DNFC_NXP_HFO_SETTINGS=FALSE 65 #LOCAL_CFLAGS += -DFELICA_CLT_ENABLE 66 67 include $(BUILD_SHARED_LIBRARY) 68