Permalink
Browse files

bluedroid: Add option for a device-specific bluedroid implementation

We are in the process of adding ANT+ sensor support for tiwlan-based
SEMC devices. These binary plugs expect a slightly different bluedroid
implementation which may be useful for others implementing ANT+ but
may cause problems for other devices.

This patch adds BOARD_CUSTOM_BLUEDROID which can be used to replace the
standard bluetooth.c with a custom implementation without breaking
things for devices that assume default functionality.

Change-Id: I5f5ba2b36c0ffe4ab83130122dc6bda9aeeb9fc6
  • Loading branch information...
1 parent aeec50d commit 566d2f2dc04f0538137e1705f898b92740db450d @defer defer committed Oct 12, 2011
Showing with 7 additions and 2 deletions.
  1. +7 −2 bluedroid/Android.mk
View
@@ -6,8 +6,13 @@ LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
-LOCAL_SRC_FILES := \
- bluetooth.c
+ifeq ($(BOARD_CUSTOM_BLUEDROID),)
+ LOCAL_SRC_FILES := \
+ bluetooth.c
+else
+ LOCAL_SRC_FILES := \
+ $(BOARD_CUSTOM_BLUEDROID)
+endif
LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/include \

0 comments on commit 566d2f2

Please sign in to comment.