Skip to contentSkip to conversation

android: Fix build dependency of bluetoothd on target

PATCH Superseded Luiz Augusto von Dentz 1 participant 4 messages Oct 23, 2013 Bluetooth drivers

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Luiz Augusto von Dentz

author maintainer
#0 lore raw

PATCH 1/4 android: Fix build dependency of bluetoothd on target

From: Luiz Augusto von Dentz <[email protected]>

This adds missing headers necessary to build bluetoothd.

---
 android/Android.mk | 23 ++++++++++++-----------
 1 file changed, 12 insertions(+), 11 deletions(-)
android/Android.mk +12 -11
index eef809a..a00b658 100644
@@ -15,18 +15,19 @@ include $(CLEAR_VARS)
 LOCAL_SRC_FILES := \
 	main.c \
 	log.c \
-	adapter.c \
-	hid.c \
+	adapter.c adapter.h \
+	hid.c hid.h \
 	ipc.c ipc.h \
-	../src/shared/mgmt.c \
-	../src/shared/util.c \
-	../src/sdpd-database.c \
-	../src/sdpd-service.c \
-	../src/sdpd-request.c \
-	../src/sdpd-server.c \
-	../lib/sdp.c \
-	../lib/bluetooth.c \
-	../lib/hci.c \
+	$(LOCAL_PATH)/../src/sdp.h \
+	$(LOCAL_PATH)/../src/shared/mgmt.c \
+	$(LOCAL_PATH)/../src/shared/util.c \
+	$(LOCAL_PATH)/../src/sdpd-database.c \
+	$(LOCAL_PATH)/../src/sdpd-service.c \
+	$(LOCAL_PATH)/../src/sdpd-request.c \
+	$(LOCAL_PATH)/../src/sdpd-server.c \
+	$(LOCAL_PATH)/../lib/sdp.c \
+	$(LOCAL_PATH)/../lib/bluetooth.c \
+	$(LOCAL_PATH)/../lib/hci.c \
 
 LOCAL_C_INCLUDES := \
 	$(call include-path-for, glib) \
Signature · 1 line
1.8.3.1
author maintainer
#1 lore raw

PATCH 2/4 android: Fix build dependency of bluetooth.default.so HAL on target

From: Luiz Augusto von Dentz <[email protected]>

This adds missing headers necessary to build bluetooth.default.so

---
 android/Android.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
android/Android.mk +2 -1
index a00b658..cdc99a8 100644
@@ -54,7 +54,8 @@ include $(BUILD_EXECUTABLE)
 include $(CLEAR_VARS)
 
 LOCAL_SRC_FILES := \
-	hal-ipc.c \
+	hal.h hal-msg.h hal-log.h \
+	hal-ipc.c hal-ipc.h \
 	hal-bluetooth.c \
 	hal-sock.c \
 	hal-hidhost.c \
Signature · 1 line
1.8.3.1
author maintainer
#2 lore raw

PATCH 3/4 android: Fix build dependency of haltest on target

In reply to Luiz Augusto von Dentz

From: Luiz Augusto von Dentz <[email protected]>

This adds missing headers necessary to build haltest.

---
 android/Android.mk | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
android/Android.mk +5 -4
index cdc99a8..9becddc 100644
@@ -80,11 +80,12 @@ include $(CLEAR_VARS)
 
 LOCAL_SRC_FILES := \
 	client/haltest.c \
-	client/pollhandler.c \
-	client/terminal.c \
-	client/history.c \
-	client/textconv.c \
+	client/pollhandler.c client/pollhandler.h \
+	client/terminal.c client/terminal.h \
+	client/history.c client/history.h \
+	client/textconv.c client/textconv.h \
 	client/tabcompletion.c \
+	client/if-main.h \
 	client/if-bt.c \
 	client/if-hh.c \
 
Signature · 1 line
1.8.3.1
author maintainer
#3 lore raw

PATCH 4/4 android: Add variable ROOT_PATH to Android.mk

In reply to Luiz Augusto von Dentz

From: Luiz Augusto von Dentz <[email protected]>

This makes it simpler to include files from other parts of the code.

---
 android/Android.mk | 29 +++++++++++++++--------------
 1 file changed, 15 insertions(+), 14 deletions(-)
android/Android.mk +15 -14
index 9becddc..baa0a49 100644
@@ -1,7 +1,8 @@
 LOCAL_PATH := $(call my-dir)
+ROOT_PATH := $(LOCAL_PATH)/..
 
 # Retrieve BlueZ version from configure.ac file
-BLUEZ_VERSION := $(shell grep ^AC_INIT $(LOCAL_PATH)/../configure.ac | cpp -P -D'AC_INIT(_,v)=v')
+BLUEZ_VERSION := $(shell grep ^AC_INIT $(ROOT_PATH)/configure.ac | cpp -P -D'AC_INIT(_,v)=v')
 
 # Specify pathmap for glib
 pathmap_INCL += glib:external/bluetooth/glib
@@ -18,25 +19,25 @@ LOCAL_SRC_FILES := \
 	adapter.c adapter.h \
 	hid.c hid.h \
 	ipc.c ipc.h \
-	$(LOCAL_PATH)/../src/sdp.h \
-	$(LOCAL_PATH)/../src/shared/mgmt.c \
-	$(LOCAL_PATH)/../src/shared/util.c \
-	$(LOCAL_PATH)/../src/sdpd-database.c \
-	$(LOCAL_PATH)/../src/sdpd-service.c \
-	$(LOCAL_PATH)/../src/sdpd-request.c \
-	$(LOCAL_PATH)/../src/sdpd-server.c \
-	$(LOCAL_PATH)/../lib/sdp.c \
-	$(LOCAL_PATH)/../lib/bluetooth.c \
-	$(LOCAL_PATH)/../lib/hci.c \
+	$(ROOT_PATH)/src/sdp.h \
+	$(ROOT_PATH)/src/shared/mgmt.c \
+	$(ROOT_PATH)/src/shared/util.c \
+	$(ROOT_PATH)/src/sdpd-database.c \
+	$(ROOT_PATH)/src/sdpd-service.c \
+	$(ROOT_PATH)/src/sdpd-request.c \
+	$(ROOT_PATH)/src/sdpd-server.c \
+	$(ROOT_PATH)/lib/sdp.c \
+	$(ROOT_PATH)/lib/bluetooth.c \
+	$(ROOT_PATH)/lib/hci.c \
 
 LOCAL_C_INCLUDES := \
 	$(call include-path-for, glib) \
 	$(call include-path-for, glib)/glib \
 
 LOCAL_C_INCLUDES += \
-	$(LOCAL_PATH)/../ \
-	$(LOCAL_PATH)/../src \
-	$(LOCAL_PATH)/../lib \
+	$(ROOT_PATH)/ \
+	$(ROOT_PATH)/src \
+	$(ROOT_PATH)/lib \
 
 LOCAL_CFLAGS := -DVERSION=\"$(BLUEZ_VERSION)\"
 
Signature · 1 line
1.8.3.1