To load plugin backend, this is necessary.
Change-Id: I467baae85265cb45a0a73c8b51a5d4afb1ada484
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
if (!info)
return NULL;
-#if defined(__aarch64__) || defined(__x86_64__)
+#if defined(__aarch64__) || defined(__x86_64__) || defined(__riscv)
return info->library_name_64bit;
#else
return info->library_name;
DIR *dir;
char *backend_module_name = NULL;
int count, i, ret;
-#if defined(__aarch64__) || defined(__x86_64__)
+#if defined(__aarch64__) || defined(__x86_64__) || defined(__riscv)
const char plugin_backend_path[] = "/usr/lib64/system/plugin";
#else
const char plugin_backend_path[] = "/usr/lib/system/plugin";
new_info->module = info->module;
new_info->license = info->license;
new_info->module_name = g_strdup(info->module_name);
-#if defined(__aarch64__) || defined(__x86_64__)
+#if defined(__aarch64__) || defined(__x86_64__) || defined(__riscv)
new_info->library_name_64bit = g_strdup_printf("/usr/lib64/system/plugin/%s", library_name);
#else
new_info->library_name = g_strdup_printf("/usr/lib/system/plugin/%s", library_name);