halapi: Add support of RISC-V architecture type
[platform/hal/api/common.git] / src / hal-api-conf.c
index a3c6c25..791ed29 100644 (file)
@@ -62,10 +62,7 @@ static struct __hal_module_info* _get_module_info_with_library_name(enum hal_mod
                                                                const char *library_name)
 {
        struct __hal_module_info *info = NULL, *new_info = NULL, *tmp_info = NULL;
-       const char *group_name = NULL;
-       const char *module_name = NULL;
        char *library_name_prefix = NULL;
-       int ret;
 
        if (!_module_hash || !library_name)
                return NULL;
@@ -118,7 +115,7 @@ static struct __hal_module_info* _get_module_info_with_library_name(enum hal_mod
        new_info->module = info->module;
        new_info->license = info->license;
        new_info->module_name = g_strdup(info->module_name);
-#if defined(__aarch64__)
+#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);