f247bf1e2a
From TI, they must not be redistributed in a modified form. They are built against GLIBC 2.29 To be functional, they need to be paired with a special build of Mesa. There are subpackages for each different soc and only one soc can be installed at a time. The Exynos S5PV210 subpackage uses the same SGX540-120 as the ti443x blobs, but needs a binary edit to be loaded. Due to the license restrictions, it must be done in a post-install script.
29 lines
471 B
C
29 lines
471 B
C
#include <dlfcn.h>
|
|
#include <stdio.h>
|
|
|
|
int main()
|
|
{
|
|
int ret;
|
|
int (*SrvInit)(void);
|
|
void *handle = dlopen("libsrv_init.so", RTLD_LAZY);
|
|
if (!handle) {
|
|
fprintf(stderr, "failed to open libsrv_init.so\n");
|
|
return -1;
|
|
}
|
|
|
|
SrvInit = dlsym(handle, "SrvInit");
|
|
if (!SrvInit) {
|
|
fprintf(stderr, "failed to find SrvInit symbol\n");
|
|
return -1;
|
|
}
|
|
|
|
ret = SrvInit();
|
|
|
|
if (ret) {
|
|
fprintf(stderr, "failed to initialize server\n");
|
|
}
|
|
|
|
dlclose(handle);
|
|
|
|
return ret;
|
|
}
|