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, len;
-#if defined(__aarch64__) || defined(__x86_64__)
+#if defined(__aarch64__) || defined(__x86_64__) || defined (__riscv)
const char hal_backend_path[] = "/hal/lib64";
#else
const char hal_backend_path[] = "/hal/lib";
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("/hal/lib64/%s", library_name);
#else
new_info->library_name = g_strdup_printf("/hal/lib/%s", library_name);
ret = hal_common_get_backend_library_name(info.module_, ret_library_name, MAX_BUFF);
EXPECT_TRUE(ret == TIZEN_ERROR_NONE);
-#if defined(__aarch64__) || defined(__x86_64__)
+#if defined(__aarch64__) || defined(__x86_64__) || defined(__riscv)
EXPECT_STREQ(info.library_name_64bit_, ret_library_name) << "module name is " << info.module_name_;
#else
EXPECT_STREQ(info.library_name_, ret_library_name) << "module name is " << info.module_name_;