From ec8988232beee52aaa236c7e1de539b5bd53379f Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Tue, 15 Apr 2014 14:41:05 +0200 Subject: [PATCH] android: Build hciattach tool --- android/Android.mk | 30 ++++++++++++++++++++++++++++++ android/README | 2 +- 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/android/Android.mk b/android/Android.mk index 5f4e70c87..f838bfde2 100644 --- a/android/Android.mk +++ b/android/Android.mk @@ -442,6 +442,36 @@ LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/bluez/configure.ac include $(BUILD_EXECUTABLE) +# +# hciattach +# + +include $(CLEAR_VARS) + +LOCAL_SRC_FILES := \ + bluez/tools/hciattach.c \ + bluez/tools/hciattach_st.c \ + bluez/tools/hciattach_ti.c \ + bluez/tools/hciattach_tialt.c \ + bluez/tools/hciattach_ath3k.c \ + bluez/tools/hciattach_qualcomm.c \ + bluez/tools/hciattach_intel.c \ + bluez/tools/hciattach_bcm43xx.c \ + bluez/lib/bluetooth.c \ + bluez/lib/hci.c \ + +LOCAL_CFLAGS := $(BLUEZ_COMMON_CFLAGS) + +LOCAL_STATIC_LIBRARIES := \ + bluetooth-headers \ + +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE := hciattach + +LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/bluez/configure.ac + +include $(BUILD_EXECUTABLE) + # # libsbc # diff --git a/android/README b/android/README index ff4d7bfb5..6254d3403 100644 --- a/android/README +++ b/android/README @@ -33,7 +33,7 @@ by BlueZ. SBC code is available at git://git.kernel.org/pub/scm/bluetooth/sbc - Bionic support - Currently only 'master' branch available at https://android.googlesource.com/platform/bionic provides all required functionality and running BlueZ on release branch requires backporting missing -features (currently only epoll_create1 call for Android 4.4.2). Sample +features (currently epoll_create1 and ppoll calls for Android 4.4.2). Sample Bionic for Android 4.4.2 with all required features backported is available at https://code.google.com/p/aosp-bluez.platform-bionic/ -- 2.47.3