1 # Copyright (C) 2012-2014 NXP Semiconductors 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 LOCAL_PATH := $(call my-dir) 16 include $(CLEAR_VARS) 17 LOCAL_MODULE := nfc_nci.$(TARGET_DEVICE) 18 LOCAL_MODULE_RELATIVE_PATH := hw 19 LOCAL_SRC_FILES := $(call all-subdir-c-files) $(call all-subdir-cpp-files) 20 LOCAL_SHARED_LIBRARIES := liblog libcutils libhardware_legacy libdl libhardware 21 22 LOCAL_C_INCLUDES += \ 23 $(LOCAL_PATH)/utils \ 24 $(LOCAL_PATH)/inc \ 25 $(LOCAL_PATH)/common \ 26 $(LOCAL_PATH)/dnld \ 27 $(LOCAL_PATH)/hal \ 28 $(LOCAL_PATH)/log \ 29 $(LOCAL_PATH)/tml \ 30 $(LOCAL_PATH)/self-test 31 32 #variables for NFC_NXP_CHIP_TYPE 33 PN547C2 := 1 34 PN548C2 := 2 35 36 ifeq ($(PN547C2),1) 37 LOCAL_CFLAGS += -DPN547C2=1 38 endif 39 ifeq ($(PN548C2),2) 40 LOCAL_CFLAGS += -DPN548C2=2 41 endif 42 43 #### Select the CHIP #### 44 ifeq ($(NFC_NXP_CHIP_TYPE),PN547C2) 45 LOCAL_CFLAGS += -DNFC_NXP_CHIP_TYPE=PN547C2 46 else 47 LOCAL_CFLAGS += -DNFC_NXP_CHIP_TYPE=PN548C2 48 endif 49 50 LOCAL_CFLAGS += -DANDROID \ 51 -DNXP_UICC_ENABLE -DNXP_HW_SELF_TEST 52 LOCAL_CFLAGS += -DNFC_NXP_HFO_SETTINGS=FALSE 53 #LOCAL_CFLAGS += -DFELICA_CLT_ENABLE 54 55 include $(BUILD_SHARED_LIBRARY) 56