Skip to content

Commit

Permalink
libbt-hci: include bdroid_buildcfg.h from device repo
Browse files Browse the repository at this point in the history
This lets device repos override some constants with their bdroid_buildcfg.h if
necessary.

This fixes Bluetooth issues (namely tethering) on endeavoru where
BTHC_USERIAL_READ_MEM_SIZE needs to be set to a higher value.

Change-Id: I8955963cdb2b34f1ba63f8160861699f7284814f
  • Loading branch information
thoemy authored and Whitehawkx committed Mar 30, 2013
1 parent 6778bf5 commit d60d079
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 5 additions & 2 deletions hci/Android.mk
Expand Up @@ -2,6 +2,8 @@ LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_CFLAGS += $(bdroid_CFLAGS)

LOCAL_SRC_FILES := \
src/bt_hci_bdroid.c \
src/lpm.c \
Expand All @@ -11,7 +13,7 @@ LOCAL_SRC_FILES := \

ifeq ($(BLUETOOTH_HCI_USE_MCT),true)

LOCAL_CFLAGS := -DHCI_USE_MCT
LOCAL_CFLAGS += -DHCI_USE_MCT

LOCAL_SRC_FILES += \
src/hci_mct.c \
Expand All @@ -27,7 +29,8 @@ endif

LOCAL_C_INCLUDES += \
$(LOCAL_PATH)/include \
$(LOCAL_PATH)/../utils/include
$(LOCAL_PATH)/../utils/include \
$(bdroid_C_INCLUDES)

LOCAL_SHARED_LIBRARIES := \
libcutils \
Expand Down
5 changes: 5 additions & 0 deletions hci/include/bt_hci_bdroid.h
Expand Up @@ -32,6 +32,11 @@

#include "bt_hci_lib.h"

#ifdef HAS_BDROID_BUILDCFG
#include "bdroid_buildcfg.h"
#endif


/******************************************************************************
** Constants & Macros
******************************************************************************/
Expand Down

0 comments on commit d60d079

Please sign in to comment.