Iliyan Malchev | ad7eab0 | 2012-10-10 22:24:12 -0700 | [diff] [blame] | 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 | |
Ilia Lin | 8e30e72 | 2013-09-16 21:10:40 +0300 | [diff] [blame] | 19 | ifeq ($(BOARD_HAVE_BLUETOOTH_QCOM),true) |
Iliyan Malchev | ad7eab0 | 2012-10-10 22:24:12 -0700 | [diff] [blame] | 20 | |
| 21 | include $(CLEAR_VARS) |
| 22 | |
| 23 | BDROID_DIR:= external/bluetooth/bluedroid |
| 24 | |
| 25 | LOCAL_SRC_FILES := \ |
| 26 | src/bt_vendor_qcom.c \ |
| 27 | src/hardware.c \ |
Sungjun Park | 5b324b2 | 2013-09-24 18:17:00 -0700 | [diff] [blame] | 28 | src/hci_uart.c \ |
| 29 | src/hci_smd.c \ |
| 30 | src/hw_rome.c \ |
Vadivel Thekkamalai | 8de7842 | 2013-10-08 11:33:55 -0700 | [diff] [blame] | 31 | src/hw_ar3k.c \ |
| 32 | src/bt_vendor_persist.cpp |
Sungjun Park | 5b324b2 | 2013-09-24 18:17:00 -0700 | [diff] [blame] | 33 | |
| 34 | ifeq ($(QCOM_BT_USE_SIBS),true) |
| 35 | LOCAL_CFLAGS += -DQCOM_BT_SIBS_ENABLE |
| 36 | endif |
Iliyan Malchev | ad7eab0 | 2012-10-10 22:24:12 -0700 | [diff] [blame] | 37 | |
pramod kotreshappa | cc8eb58 | 2014-05-20 17:11:40 -0700 | [diff] [blame] | 38 | ifeq ($(BOARD_HAS_QCA_BT_ROME),true) |
| 39 | LOCAL_CFLAGS += -DBT_SOC_TYPE_ROME |
| 40 | endif |
| 41 | |
Iliyan Malchev | ad7eab0 | 2012-10-10 22:24:12 -0700 | [diff] [blame] | 42 | LOCAL_C_INCLUDES += \ |
| 43 | $(LOCAL_PATH)/include \ |
Vadivel Thekkamalai | 8de7842 | 2013-10-08 11:33:55 -0700 | [diff] [blame] | 44 | $(BDROID_DIR)/hci/include \ |
pramod kotreshappa | 5894106 | 2014-06-16 11:32:53 -0700 | [diff] [blame] | 45 | $(TARGET_OUT_HEADERS)/bt/hci_qcomm_init |
Iliyan Malchev | ad7eab0 | 2012-10-10 22:24:12 -0700 | [diff] [blame] | 46 | |
Ilia Lin | 19b4c94 | 2013-09-02 13:42:42 +0300 | [diff] [blame] | 47 | ifeq ($(BOARD_HAS_QCA_BT_AR3002), true) |
| 48 | LOCAL_C_FLAGS := \ |
| 49 | -DBT_WAKE_VIA_PROC |
| 50 | endif #BOARD_HAS_QCA_BT_AR3002 |
| 51 | |
Pradeep Panigrahi | 0fb6684 | 2014-01-28 15:04:08 +0530 | [diff] [blame] | 52 | ifeq ($(WIFI_BT_STATUS_SYNC), true) |
| 53 | LOCAL_CFLAGS += -DWIFI_BT_STATUS_SYNC |
| 54 | endif #WIFI_BT_STATUS_SYNC |
| 55 | |
Iliyan Malchev | ad7eab0 | 2012-10-10 22:24:12 -0700 | [diff] [blame] | 56 | LOCAL_SHARED_LIBRARIES := \ |
Ying Wang | cb62121 | 2013-04-09 21:58:41 -0700 | [diff] [blame] | 57 | libcutils \ |
Vadivel Thekkamalai | 8de7842 | 2013-10-08 11:33:55 -0700 | [diff] [blame] | 58 | liblog \ |
| 59 | libbtnv |
Iliyan Malchev | ad7eab0 | 2012-10-10 22:24:12 -0700 | [diff] [blame] | 60 | |
| 61 | LOCAL_MODULE := libbt-vendor |
| 62 | LOCAL_MODULE_TAGS := optional |
| 63 | LOCAL_MODULE_CLASS := SHARED_LIBRARIES |
| 64 | LOCAL_MODULE_OWNER := qcom |
Iliyan Malchev | ad7eab0 | 2012-10-10 22:24:12 -0700 | [diff] [blame] | 65 | |
Vadivel Thekkamalai | 8de7842 | 2013-10-08 11:33:55 -0700 | [diff] [blame] | 66 | LOCAL_CFLAGS += -DBT_NV_SUPPORT |
| 67 | |
Iliyan Malchev | ad7eab0 | 2012-10-10 22:24:12 -0700 | [diff] [blame] | 68 | include $(LOCAL_PATH)/vnd_buildcfg.mk |
| 69 | |
Kees Jongenburger | a8cb95e | 2015-06-23 17:07:38 +0200 | [diff] [blame] | 70 | ifeq ($(PROPRIETARY_BLOBS_EXIST),true) |
| 71 | #include $(BUILD_SHARED_LIBRARY) |
| 72 | else |
Iliyan Malchev | ad7eab0 | 2012-10-10 22:24:12 -0700 | [diff] [blame] | 73 | include $(BUILD_SHARED_LIBRARY) |
Kees Jongenburger | a8cb95e | 2015-06-23 17:07:38 +0200 | [diff] [blame] | 74 | endif |
Iliyan Malchev | ad7eab0 | 2012-10-10 22:24:12 -0700 | [diff] [blame] | 75 | |
| 76 | endif # BOARD_HAVE_BLUETOOTH_QCOM |