diff --git a/framework/core/host/src/hdf_load_vdi.c b/framework/core/host/src/hdf_load_vdi.c index 7b7068100e123108e20497528abdd53e81989d23..34dd5090295df368716292515e72d113ae6dc539 100644 --- a/framework/core/host/src/hdf_load_vdi.c +++ b/framework/core/host/src/hdf_load_vdi.c @@ -15,11 +15,7 @@ #define HDF_LOG_TAG dev_load_vdi -#ifdef __ARCH64__ -#define VDI_PATH HDF_LIBRARY_DIR"64/" -#else #define VDI_PATH HDF_LIBRARY_DIR"/" -#endif struct HdfVdiObject *HdfLoadVdi(const char *libName) { diff --git a/interfaces/inner_api/utils/hdf_base.h b/interfaces/inner_api/utils/hdf_base.h index 165b4b9959c517e92e6418bd9f614d61d662880c..946f34e7dac6202dd767af51432beb3abdf3e746 100644 --- a/interfaces/inner_api/utils/hdf_base.h +++ b/interfaces/inner_api/utils/hdf_base.h @@ -97,11 +97,6 @@ typedef enum { */ #define HDF_LIBRARY_FULL_PATH(x) "/usr/lib/" x ".so" -/** - * @brief Declares the directory of the HDF module library. - */ -#define HDF_LIBRARY_DIR "/usr/lib" - /** * @brief Declares the directory of the HDF module configuration files. */ @@ -134,7 +129,11 @@ typedef enum { /** * @brief Declares the directory of the HDF module library. */ +#if (defined(__aarch64__) || defined(__x86_64__)) +#define HDF_LIBRARY_DIR "/vendor/lib64" +#else #define HDF_LIBRARY_DIR "/vendor/lib" +#endif /** * @brief Declares the directory of the HDF module configuration files.