From 00498669ebd164caa4a1858905d4062eb3bcb41e Mon Sep 17 00:00:00 2001 From: chengjinsong2 Date: Thu, 6 Jul 2023 09:44:11 +0800 Subject: [PATCH] feat:add HDF_LIBRARY_NAME macro Signed-off-by: chengjinsong2 --- interfaces/inner_api/utils/hdf_base.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/interfaces/inner_api/utils/hdf_base.h b/interfaces/inner_api/utils/hdf_base.h index c6cf6a699..2e8405334 100644 --- a/interfaces/inner_api/utils/hdf_base.h +++ b/interfaces/inner_api/utils/hdf_base.h @@ -116,6 +116,11 @@ typedef enum { * @brief Declares the directory of the HCS configuration file of the HDF. */ #define HDF_CHIP_PROD_CONFIG_DIR "/etc" + +/** + * @brief Declares the name of the HDF module library. + */ +#define HDF_LIBRARY_NAME(x) x ".so" #else /** * @brief Declares the full path of the HDF module library. @@ -150,6 +155,11 @@ typedef enum { * @brief Declares the installation directory of the HDF kernel-mode service module driver. */ #define HDF_MODULE_DIR "/vendor/modules/" + +/** + * @brief Declares the name of the HDF module library. + */ +#define HDF_LIBRARY_NAME(x) x ".z.so" #endif #ifdef __cplusplus -- Gitee