OSDN Git Service

Linux vendor driver linkage fixes
authorJakub Pawlowski <jpawlowski@google.com>
Thu, 10 Mar 2016 17:25:48 +0000 (09:25 -0800)
committerJakub Pawlowski <jpawlowski@google.com>
Thu, 10 Mar 2016 17:55:35 +0000 (17:55 +0000)
Linux driver depends on osi, so it must be linked with it.
It also must export bt_vendor_interface_t, and named properly,
otherwise it is not being recognized as vendor library.

Bug: 27589244
Change-Id: Ib6817b11e4226f2e289ff0d521daca059ca9aca6

vendor_libs/linux/BUILD.gn
vendor_libs/linux/bt_vendor_linux.c

index 2179a64..be0c4b4 100644 (file)
 #
 
 shared_library("bt-vendor-linux") {
+  output_name = "libbt-vendor"
   sources = [
     "bt_vendor_linux.c",
   ]
 
+  deps = [
+   "//osi",
+  ]
+
+  cflags_c = [
+    "-Lobj/osi",
+    "-losi",
+  ]
+
   include_dirs = [ "//" ]
 }
index c6cd612..ed1b4a4 100644 (file)
@@ -410,7 +410,7 @@ static void bt_vendor_cleanup(void)
   bt_vendor_callbacks = NULL;
 }
 
-const bt_vendor_interface_t BLUETOOTH_VENDOR_LIB_INTERFACE = {
+EXPORT_SYMBOL const bt_vendor_interface_t BLUETOOTH_VENDOR_LIB_INTERFACE = {
   sizeof(bt_vendor_interface_t),
   bt_vendor_init,
   bt_vendor_op,