1 # 2 # Copyright 2012 The Android Open Source Project 3 # 4 # Licensed under the Apache License, Version 2.0 (the "License"); 5 # you may not use this file except in compliance with the License. 6 # You may obtain a copy of the License at 7 # 8 # http://www.apache.org/licenses/LICENSE-2.0 9 # 10 # Unless required by applicable law or agreed to in writing, software 11 # distributed under the License is distributed on an "AS IS" BASIS, 12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 # See the License for the specific language governing permissions and 14 # limitations under the License. 15 # 16 17 LOCAL_PATH := $(call my-dir) 18 19 ifeq ($(BOARD_HAVE_BLUETOOTH_QCOM),true) 20 21 include $(CLEAR_VARS) 22 23 BDROID_DIR:= system/bt 24 25 LOCAL_SRC_FILES := \ 26 src/bt_vendor_qcom.c \ 27 src/hardware.c \ 28 src/hci_uart.c \ 29 src/hci_smd.c \ 30 src/hw_rome.c \ 31 src/hw_ar3k.c 32 33 # if read from bt nv 34 # src/bt_vendor_persist.cpp 35 36 ifeq ($(QCOM_BT_USE_SIBS),true) 37 LOCAL_CFLAGS += -DQCOM_BT_SIBS_ENABLE 38 endif 39 40 ifeq ($(BOARD_HAS_QCA_BT_ROME),true) 41 LOCAL_CFLAGS += -DBT_SOC_TYPE_ROME 42 endif 43 44 LOCAL_C_INCLUDES += \ 45 $(LOCAL_PATH)/include \ 46 $(BDROID_DIR)/hci/include \ 47 $(TARGET_OUT_HEADERS)/bt/hci_qcomm_init 48 49 ifeq ($(BOARD_HAS_QCA_BT_AR3002), true) 50 LOCAL_C_FLAGS := \ 51 -DBT_WAKE_VIA_PROC 52 endif #BOARD_HAS_QCA_BT_AR3002 53 54 ifeq ($(WIFI_BT_STATUS_SYNC), true) 55 LOCAL_CFLAGS += -DWIFI_BT_STATUS_SYNC 56 endif #WIFI_BT_STATUS_SYNC 57 58 LOCAL_SHARED_LIBRARIES := \ 59 libcutils \ 60 liblog 61 62 63 # if read from bt nv 64 # libbtnv 65 #LOCAL_CFLAGS += -DBT_NV_SUPPORT 66 67 LOCAL_MODULE := libbt-vendor 68 LOCAL_MODULE_TAGS := optional 69 LOCAL_MODULE_CLASS := SHARED_LIBRARIES 70 LOCAL_MODULE_OWNER := qcom 71 72 #LOCAL_CFLAGS += -DREAD_BT_ADDR_FROM_PROP 73 74 #include $(LOCAL_PATH)/vnd_buildcfg.mk 75 76 include $(BUILD_SHARED_LIBRARY) 77 78 endif # BOARD_HAVE_BLUETOOTH_QCOM 79