Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9b2d8318 authored by Jakub Pawlowski's avatar Jakub Pawlowski
Browse files

Linux vendor driver linkage fixes

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
parent 0e78ee10
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -15,9 +15,19 @@
#

shared_library("bt-vendor-linux") {
  output_name = "libbt-vendor"
  sources = [
    "bt_vendor_linux.c",
  ]

  deps = [
   "//osi",
  ]

  cflags_c = [
    "-Lobj/osi",
    "-losi",
  ]

  include_dirs = [ "//" ]
}
+1 −1
Original line number Diff line number Diff line
@@ -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,