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
#
shared_library("bt-vendor-linux") {
+ output_name = "libbt-vendor"
sources = [
"bt_vendor_linux.c",
]
+ deps = [
+ "//osi",
+ ]
+
+ cflags_c = [
+ "-Lobj/osi",
+ "-losi",
+ ]
+
include_dirs = [ "//" ]
}
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,