summaryrefslogtreecommitdiffstats
path: root/hci/Android.mk
diff options
context:
space:
mode:
authorYK Jeffrey Chao <jechao@broadcom.com>2012-04-23 11:28:18 -0700
committerMatthew Xie <mattx@google.com>2012-07-14 11:19:20 -0700
commit32f0db60f911ed0b7f3bca0210a4568621b99074 (patch)
tree5e41addd71324439e3bbaa2a9fe5978c262311e4 /hci/Android.mk
parenta4b46830e5efa9b753a692b98971d1f5a9975905 (diff)
downloadexternal_bluetooth_bluedroid-32f0db60f911ed0b7f3bca0210a4568621b99074.zip
external_bluetooth_bluedroid-32f0db60f911ed0b7f3bca0210a4568621b99074.tar.gz
external_bluetooth_bluedroid-32f0db60f911ed0b7f3bca0210a4568621b99074.tar.bz2
Split and restructure the original BT vendor lib (I - external/bluetooth/bluedroid).
1. Split the original external/bluetooth/bluedroid/vendor directory to two parts: external/bluetooth/bluedroid/hci and vendor/broadcom/libbt-vendor. Each part produces a .so library (libbt-hci.so and libbt-vendor.so). 2. libbt-hci.so contains: + HCI H4 send & receive functions + Userial read & write functions + LPM common logic operations + btsnoop functions. 3. No build-time (.txt) and run-time (.conf) configuration for libbt-hci.so. 4. libbt-vendor.so contains: + firmware patch download function + SCO configuration + LPM VSC and BT_WAKE control + UART port open + upio control for BT chip power on/off. 5. libbt-vendor.so has build-time and run-time configuration support. Change-Id: I61d55c75c66d25459d80893a5f72bccce2b54770
Diffstat (limited to 'hci/Android.mk')
-rw-r--r--hci/Android.mk25
1 files changed, 25 insertions, 0 deletions
diff --git a/hci/Android.mk b/hci/Android.mk
new file mode 100644
index 0000000..a500538
--- /dev/null
+++ b/hci/Android.mk
@@ -0,0 +1,25 @@
+LOCAL_PATH := $(call my-dir)
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := \
+ src/bt_hci_bdroid.c \
+ src/hci_h4.c \
+ src/userial.c \
+ src/lpm.c \
+ src/bt_hw.c \
+ src/btsnoop.c \
+ src/utils.c
+
+LOCAL_C_INCLUDES += \
+ $(LOCAL_PATH)/include
+
+LOCAL_SHARED_LIBRARIES := \
+ libcutils \
+ libbt-vendor
+
+LOCAL_MODULE := libbt-hci
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_CLASS := SHARED_LIBRARIES
+
+include $(BUILD_SHARED_LIBRARY)