Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

hardware: look in /vendor for default.so

Some vendors have their own HAL modules, which may need their
default implementation stored in /vendor.

Change-Id: I5337a61875023404a85029bbc59b984056b3e441
  • Loading branch information...
commit b0c303229fcbc89a0afa8f170de64f2a7fee9d6c 1 parent 89cfe20
@colincross colincross authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 hardware.c
View
4 hardware.c
@@ -154,6 +154,10 @@ int hw_get_module_by_class(const char *class_id, const char *inst,
if (access(path, R_OK) == 0) break;
} else {
snprintf(path, sizeof(path), "%s/%s.default.so",
+ HAL_LIBRARY_PATH2, name);
+ if (access(path, R_OK) == 0) break;
+
+ snprintf(path, sizeof(path), "%s/%s.default.so",
HAL_LIBRARY_PATH1, name);
if (access(path, R_OK) == 0) break;
}
Please sign in to comment.
Something went wrong with that request. Please try again.