diff --git a/packages/platforms/accton/x86-64/as4222-28pe/onlp/builds/x86_64_accton_as4222_28pe/module/auto/make.mk b/packages/platforms/accton/x86-64/as4222-28pe/onlp/builds/x86_64_accton_as4222_28pe/module/auto/make.mk new file mode 100644 index 00000000..811338b0 --- /dev/null +++ b/packages/platforms/accton/x86-64/as4222-28pe/onlp/builds/x86_64_accton_as4222_28pe/module/auto/make.mk @@ -0,0 +1,8 @@ +############################################################################### +# +# x86_64_accton_as4222_28pe Autogeneration +# +############################################################################### +x86_64_accton_as4222_28pe_AUTO_DEFS := module/auto/x86_64_accton_as4222_28pe.yml +x86_64_accton_as4222_28pe_AUTO_DIRS := module/inc/x86_64_accton_as4222_28pe module/src +include $(BUILDER)/auto.mk diff --git a/packages/platforms/accton/x86-64/as4630-54pe/onlp/builds/x86_64_accton_as4630_54pe/module/auto/make.mk b/packages/platforms/accton/x86-64/as4630-54pe/onlp/builds/x86_64_accton_as4630_54pe/module/auto/make.mk new file mode 100644 index 00000000..e2344c1f --- /dev/null +++ b/packages/platforms/accton/x86-64/as4630-54pe/onlp/builds/x86_64_accton_as4630_54pe/module/auto/make.mk @@ -0,0 +1,8 @@ +############################################################################### +# +# x86_64_accton_as4630_54pe Autogeneration +# +############################################################################### +x86_64_accton_as4630_54pe_AUTO_DEFS := module/auto/x86_64_accton_as4630_54pe.yml +x86_64_accton_as4630_54pe_AUTO_DIRS := module/inc/x86_64_accton_as4630_54pe module/src +include $(BUILDER)/auto.mk diff --git a/packages/platforms/accton/x86-64/as5916-26xb/onlp/builds/x86_64_accton_as5916_26xb/module/auto/make.mk b/packages/platforms/accton/x86-64/as5916-26xb/onlp/builds/x86_64_accton_as5916_26xb/module/auto/make.mk index 9db4a259..0cfe1ac3 100644 --- a/packages/platforms/accton/x86-64/as5916-26xb/onlp/builds/x86_64_accton_as5916_26xb/module/auto/make.mk +++ b/packages/platforms/accton/x86-64/as5916-26xb/onlp/builds/x86_64_accton_as5916_26xb/module/auto/make.mk @@ -1,9 +1,8 @@ ############################################################################### # -# x86_64_accton_as5916_54x Autogeneration +# x86_64_accton_as5916_26xb Autogeneration # ############################################################################### -x86_64_accton_as5916_54x_AUTO_DEFS := module/auto/x86_64_accton_as5916_54x.yml -x86_64_accton_as5916_54x_AUTO_DIRS := module/inc/x86_64_accton_as5916_54x module/src +x86_64_accton_as5916_26xb_AUTO_DEFS := module/auto/x86_64_accton_as5916_26xb.yml +x86_64_accton_as5916_26xb_AUTO_DIRS := module/inc/x86_64_accton_as5916_26xb module/src include $(BUILDER)/auto.mk - diff --git a/packages/platforms/accton/x86-64/as5916-26xb/onlp/builds/x86_64_accton_as5916_26xb/module/auto/x86_64_accton_as5916_26xb.yml b/packages/platforms/accton/x86-64/as5916-26xb/onlp/builds/x86_64_accton_as5916_26xb/module/auto/x86_64_accton_as5916_26xb.yml index 0896dd45..047e4969 100644 --- a/packages/platforms/accton/x86-64/as5916-26xb/onlp/builds/x86_64_accton_as5916_26xb/module/auto/x86_64_accton_as5916_26xb.yml +++ b/packages/platforms/accton/x86-64/as5916-26xb/onlp/builds/x86_64_accton_as5916_26xb/module/auto/x86_64_accton_as5916_26xb.yml @@ -33,7 +33,7 @@ cdefs: &cdefs definitions: cdefs: - X86_64_ACCTON_AS5916_26xb_CONFIG_HEADER: + X86_64_ACCTON_AS5916_26XB_CONFIG_HEADER: defs: *cdefs basename: x86_64_accton_as5916_26xb_config diff --git a/packages/platforms/accton/x86-64/as5916-54xk/onlp/builds/x86_64_accton_as5916_54xk/Makefile b/packages/platforms/accton/x86-64/as5916-54xk/onlp/builds/x86_64_accton_as5916_54xk/Makefile index 24ddaca8..7b71cf0f 100644 --- a/packages/platforms/accton/x86-64/as5916-54xk/onlp/builds/x86_64_accton_as5916_54xk/Makefile +++ b/packages/platforms/accton/x86-64/as5916-54xk/onlp/builds/x86_64_accton_as5916_54xk/Makefile @@ -1,9 +1,9 @@ ############################################################################### # -# +# # ############################################################################### -include ../../init.mk +include $(ONL)/make/config.mk MODULE := x86_64_accton_as5916_54xk AUTOMODULE := x86_64_accton_as5916_54xk include $(BUILDER)/definemodule.mk diff --git a/packages/platforms/accton/x86-64/as5916-54xk/onlp/builds/x86_64_accton_as5916_54xk/module/inc/x86_64_accton_as5916_54xk/x86_64_accton_as5916_54xk_porting.h b/packages/platforms/accton/x86-64/as5916-54xk/onlp/builds/x86_64_accton_as5916_54xk/module/inc/x86_64_accton_as5916_54xk/x86_64_accton_as5916_54xk_porting.h index bcfbee39..21afc8be 100644 --- a/packages/platforms/accton/x86-64/as5916-54xk/onlp/builds/x86_64_accton_as5916_54xk/module/inc/x86_64_accton_as5916_54xk/x86_64_accton_as5916_54xk_porting.h +++ b/packages/platforms/accton/x86-64/as5916-54xk/onlp/builds/x86_64_accton_as5916_54xk/module/inc/x86_64_accton_as5916_54xk/x86_64_accton_as5916_54xk_porting.h @@ -20,83 +20,83 @@ #include #endif -#ifndef x86_64_accton_as5916_54xk_MALLOC +#ifndef X86_64_ACCTON_AS5916_54XK_MALLOC #if defined(GLOBAL_MALLOC) - #define x86_64_accton_as5916_54xk_MALLOC GLOBAL_MALLOC + #define X86_64_ACCTON_AS5916_54XK_MALLOC GLOBAL_MALLOC #elif X86_64_ACCTON_AS5916_54XK_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_as5916_54xk_MALLOC malloc + #define X86_64_ACCTON_AS5916_54XK_MALLOC malloc #else - #error The macro x86_64_accton_as5916_54xk_MALLOC is required but cannot be defined. + #error The macro X86_64_ACCTON_AS5916_54XK_MALLOC is required but cannot be defined. #endif #endif -#ifndef x86_64_accton_as5916_54xk_FREE +#ifndef X86_64_ACCTON_AS5916_54XK_FREE #if defined(GLOBAL_FREE) - #define x86_64_accton_as5916_54xk_FREE GLOBAL_FREE + #define X86_64_ACCTON_AS5916_54XK_FREE GLOBAL_FREE #elif X86_64_ACCTON_AS5916_54XK_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_as5916_54xk_FREE free + #define X86_64_ACCTON_AS5916_54XK_FREE free #else - #error The macro x86_64_accton_as5916_54xk_FREE is required but cannot be defined. + #error The macro X86_64_ACCTON_AS5916_54XK_FREE is required but cannot be defined. #endif #endif -#ifndef x86_64_accton_as5916_54xk_MEMSET +#ifndef X86_64_ACCTON_AS5916_54XK_MEMSET #if defined(GLOBAL_MEMSET) - #define x86_64_accton_as5916_54xk_MEMSET GLOBAL_MEMSET + #define X86_64_ACCTON_AS5916_54XK_MEMSET GLOBAL_MEMSET #elif X86_64_ACCTON_AS5916_54XK_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_as5916_54xk_MEMSET memset + #define X86_64_ACCTON_AS5916_54XK_MEMSET memset #else - #error The macro x86_64_accton_as5916_54xk_MEMSET is required but cannot be defined. + #error The macro X86_64_ACCTON_AS5916_54XK_MEMSET is required but cannot be defined. #endif #endif -#ifndef x86_64_accton_as5916_54xk_MEMCPY +#ifndef X86_64_ACCTON_AS5916_54XK_MEMCPY #if defined(GLOBAL_MEMCPY) - #define x86_64_accton_as5916_54xk_MEMCPY GLOBAL_MEMCPY + #define X86_64_ACCTON_AS5916_54XK_MEMCPY GLOBAL_MEMCPY #elif X86_64_ACCTON_AS5916_54XK_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_as5916_54xk_MEMCPY memcpy + #define X86_64_ACCTON_AS5916_54XK_MEMCPY memcpy #else - #error The macro x86_64_accton_as5916_54xk_MEMCPY is required but cannot be defined. + #error The macro X86_64_ACCTON_AS5916_54XK_MEMCPY is required but cannot be defined. #endif #endif -#ifndef x86_64_accton_as5916_54xk_STRNCPY +#ifndef X86_64_ACCTON_AS5916_54XK_STRNCPY #if defined(GLOBAL_STRNCPY) - #define x86_64_accton_as5916_54xk_STRNCPY GLOBAL_STRNCPY + #define X86_64_ACCTON_AS5916_54XK_STRNCPY GLOBAL_STRNCPY #elif X86_64_ACCTON_AS5916_54XK_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_as5916_54xk_STRNCPY strncpy + #define X86_64_ACCTON_AS5916_54XK_STRNCPY strncpy #else - #error The macro x86_64_accton_as5916_54xk_STRNCPY is required but cannot be defined. + #error The macro X86_64_ACCTON_AS5916_54XK_STRNCPY is required but cannot be defined. #endif #endif -#ifndef x86_64_accton_as5916_54xk_VSNPRINTF +#ifndef X86_64_ACCTON_AS5916_54XK_VSNPRINTF #if defined(GLOBAL_VSNPRINTF) - #define x86_64_accton_as5916_54xk_VSNPRINTF GLOBAL_VSNPRINTF + #define X86_64_ACCTON_AS5916_54XK_VSNPRINTF GLOBAL_VSNPRINTF #elif X86_64_ACCTON_AS5916_54XK_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_as5916_54xk_VSNPRINTF vsnprintf + #define X86_64_ACCTON_AS5916_54XK_VSNPRINTF vsnprintf #else - #error The macro x86_64_accton_as5916_54xk_VSNPRINTF is required but cannot be defined. + #error The macro X86_64_ACCTON_AS5916_54XK_VSNPRINTF is required but cannot be defined. #endif #endif -#ifndef x86_64_accton_as5916_54xk_SNPRINTF +#ifndef X86_64_ACCTON_AS5916_54XK_SNPRINTF #if defined(GLOBAL_SNPRINTF) - #define x86_64_accton_as5916_54xk_SNPRINTF GLOBAL_SNPRINTF + #define X86_64_ACCTON_AS5916_54XK_SNPRINTF GLOBAL_SNPRINTF #elif X86_64_ACCTON_AS5916_54XK_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_as5916_54xk_SNPRINTF snprintf + #define X86_64_ACCTON_AS5916_54XK_SNPRINTF snprintf #else - #error The macro x86_64_accton_as5916_54xk_SNPRINTF is required but cannot be defined. + #error The macro X86_64_ACCTON_AS5916_54XK_SNPRINTF is required but cannot be defined. #endif #endif -#ifndef x86_64_accton_as5916_54xk_STRLEN +#ifndef X86_64_ACCTON_AS5916_54XK_STRLEN #if defined(GLOBAL_STRLEN) - #define x86_64_accton_as5916_54xk_STRLEN GLOBAL_STRLEN + #define X86_64_ACCTON_AS5916_54XK_STRLEN GLOBAL_STRLEN #elif X86_64_ACCTON_AS5916_54XK_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_as5916_54xk_STRLEN strlen + #define X86_64_ACCTON_AS5916_54XK_STRLEN strlen #else - #error The macro x86_64_accton_as5916_54xk_STRLEN is required but cannot be defined. + #error The macro X86_64_ACCTON_AS5916_54XK_STRLEN is required but cannot be defined. #endif #endif diff --git a/packages/platforms/accton/x86-64/as5916-54xk/onlp/builds/x86_64_accton_as5916_54xk/module/src/x86_64_accton_as5916_54xk_config.c b/packages/platforms/accton/x86-64/as5916-54xk/onlp/builds/x86_64_accton_as5916_54xk/module/src/x86_64_accton_as5916_54xk_config.c index 6596013d..6cdf943f 100644 --- a/packages/platforms/accton/x86-64/as5916-54xk/onlp/builds/x86_64_accton_as5916_54xk/module/src/x86_64_accton_as5916_54xk_config.c +++ b/packages/platforms/accton/x86-64/as5916-54xk/onlp/builds/x86_64_accton_as5916_54xk/module/src/x86_64_accton_as5916_54xk_config.c @@ -5,7 +5,7 @@ *****************************************************************************/ #include -/* */ +/* */ #define __x86_64_accton_as5916_54xk_config_STRINGIFY_NAME(_x) #_x #define __x86_64_accton_as5916_54xk_config_STRINGIFY_VALUE(_x) __x86_64_accton_as5916_54xk_config_STRINGIFY_NAME(_x) x86_64_accton_as5916_54xk_config_settings_t x86_64_accton_as5916_54xk_config_settings[] = @@ -60,7 +60,7 @@ x86_64_accton_as5916_54xk_config_lookup(const char* setting) { int i; for(i = 0; x86_64_accton_as5916_54xk_config_settings[i].name; i++) { - if(strcmp(x86_64_accton_as5916_54xk_config_settings[i].name, setting)) { + if(!strcmp(x86_64_accton_as5916_54xk_config_settings[i].name, setting)) { return x86_64_accton_as5916_54xk_config_settings[i].value; } } @@ -77,4 +77,4 @@ x86_64_accton_as5916_54xk_config_show(struct aim_pvs_s* pvs) return i; } -/* */ \ No newline at end of file +/* */ diff --git a/packages/platforms/accton/x86-64/as5916-54xl/onlp/builds/x86_64_accton_as5916_54xl/module/inc/x86_64_accton_as5916_54xl/x86_64_accton_as5916_54xl_config.h b/packages/platforms/accton/x86-64/as5916-54xl/onlp/builds/x86_64_accton_as5916_54xl/module/inc/x86_64_accton_as5916_54xl/x86_64_accton_as5916_54xl_config.h index 0fc2c50e..4ad9214a 100755 --- a/packages/platforms/accton/x86-64/as5916-54xl/onlp/builds/x86_64_accton_as5916_54xl/module/inc/x86_64_accton_as5916_54xl/x86_64_accton_as5916_54xl_config.h +++ b/packages/platforms/accton/x86-64/as5916-54xl/onlp/builds/x86_64_accton_as5916_54xl/module/inc/x86_64_accton_as5916_54xl/x86_64_accton_as5916_54xl_config.h @@ -18,117 +18,117 @@ #endif /* */ -#include -/** - * X86_64_ACCTON_AS5916_54XL_CONFIG_INCLUDE_LOGGING - * - * Include or exclude logging. */ - - -#ifndef X86_64_ACCTON_AS5916_54XL_CONFIG_INCLUDE_LOGGING -#define X86_64_ACCTON_AS5916_54XL_CONFIG_INCLUDE_LOGGING 1 -#endif - -/** - * X86_64_ACCTON_AS5916_54XL_CONFIG_LOG_OPTIONS_DEFAULT - * - * Default enabled log options. */ - - -#ifndef X86_64_ACCTON_AS5916_54XL_CONFIG_LOG_OPTIONS_DEFAULT -#define X86_64_ACCTON_AS5916_54XL_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT -#endif - -/** - * X86_64_ACCTON_AS5916_54XL_CONFIG_LOG_BITS_DEFAULT - * - * Default enabled log bits. */ - - -#ifndef X86_64_ACCTON_AS5916_54XL_CONFIG_LOG_BITS_DEFAULT -#define X86_64_ACCTON_AS5916_54XL_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT -#endif - -/** - * X86_64_ACCTON_AS5916_54XL_CONFIG_LOG_CUSTOM_BITS_DEFAULT - * - * Default enabled custom log bits. */ - - -#ifndef X86_64_ACCTON_AS5916_54XL_CONFIG_LOG_CUSTOM_BITS_DEFAULT -#define X86_64_ACCTON_AS5916_54XL_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 -#endif - -/** - * X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_STDLIB - * - * Default all porting macros to use the C standard libraries. */ - - -#ifndef X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_STDLIB -#define X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_STDLIB 1 -#endif - -/** - * X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS - * - * Include standard library headers for stdlib porting macros. */ - - -#ifndef X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS -#define X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_STDLIB -#endif - -/** - * X86_64_ACCTON_AS5916_54XL_CONFIG_INCLUDE_UCLI - * - * Include generic uCli support. */ - - -#ifndef X86_64_ACCTON_AS5916_54XL_CONFIG_INCLUDE_UCLI -#define X86_64_ACCTON_AS5916_54XL_CONFIG_INCLUDE_UCLI 0 -#endif - -/** - * X86_64_ACCTON_AS5916_54XL_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION - * - * Assume chassis fan direction is the same as the PSU fan direction. */ - - -#ifndef X86_64_ACCTON_AS5916_54XL_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION -#define X86_64_ACCTON_AS5916_54XL_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION 0 -#endif - - - -/** - * All compile time options can be queried or displayed - */ - -/** Configuration settings structure. */ -typedef struct x86_64_accton_as5916_54xl_config_settings_s { - /** name */ - const char* name; - /** value */ - const char* value; -} x86_64_accton_as5916_54xl_config_settings_t; - -/** Configuration settings table. */ -/** x86_64_accton_as5916_54xl_config_settings table. */ -extern x86_64_accton_as5916_54xl_config_settings_t x86_64_accton_as5916_54xl_config_settings[]; - -/** - * @brief Lookup a configuration setting. - * @param setting The name of the configuration option to lookup. - */ -const char* x86_64_accton_as5916_54xl_config_lookup(const char* setting); - -/** - * @brief Show the compile-time configuration. - * @param pvs The output stream. - */ -int x86_64_accton_as5916_54xl_config_show(struct aim_pvs_s* pvs); - +#include +/** + * X86_64_ACCTON_AS5916_54XL_CONFIG_INCLUDE_LOGGING + * + * Include or exclude logging. */ + + +#ifndef X86_64_ACCTON_AS5916_54XL_CONFIG_INCLUDE_LOGGING +#define X86_64_ACCTON_AS5916_54XL_CONFIG_INCLUDE_LOGGING 1 +#endif + +/** + * X86_64_ACCTON_AS5916_54XL_CONFIG_LOG_OPTIONS_DEFAULT + * + * Default enabled log options. */ + + +#ifndef X86_64_ACCTON_AS5916_54XL_CONFIG_LOG_OPTIONS_DEFAULT +#define X86_64_ACCTON_AS5916_54XL_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT +#endif + +/** + * X86_64_ACCTON_AS5916_54XL_CONFIG_LOG_BITS_DEFAULT + * + * Default enabled log bits. */ + + +#ifndef X86_64_ACCTON_AS5916_54XL_CONFIG_LOG_BITS_DEFAULT +#define X86_64_ACCTON_AS5916_54XL_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT +#endif + +/** + * X86_64_ACCTON_AS5916_54XL_CONFIG_LOG_CUSTOM_BITS_DEFAULT + * + * Default enabled custom log bits. */ + + +#ifndef X86_64_ACCTON_AS5916_54XL_CONFIG_LOG_CUSTOM_BITS_DEFAULT +#define X86_64_ACCTON_AS5916_54XL_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 +#endif + +/** + * X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_STDLIB + * + * Default all porting macros to use the C standard libraries. */ + + +#ifndef X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_STDLIB +#define X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_STDLIB 1 +#endif + +/** + * X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + * + * Include standard library headers for stdlib porting macros. */ + + +#ifndef X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS +#define X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_STDLIB +#endif + +/** + * X86_64_ACCTON_AS5916_54XL_CONFIG_INCLUDE_UCLI + * + * Include generic uCli support. */ + + +#ifndef X86_64_ACCTON_AS5916_54XL_CONFIG_INCLUDE_UCLI +#define X86_64_ACCTON_AS5916_54XL_CONFIG_INCLUDE_UCLI 0 +#endif + +/** + * X86_64_ACCTON_AS5916_54XL_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION + * + * Assume chassis fan direction is the same as the PSU fan direction. */ + + +#ifndef X86_64_ACCTON_AS5916_54XL_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION +#define X86_64_ACCTON_AS5916_54XL_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION 0 +#endif + + + +/** + * All compile time options can be queried or displayed + */ + +/** Configuration settings structure. */ +typedef struct x86_64_accton_as5916_54xl_config_settings_s { + /** name */ + const char* name; + /** value */ + const char* value; +} x86_64_accton_as5916_54xl_config_settings_t; + +/** Configuration settings table. */ +/** x86_64_accton_as5916_54xl_config_settings table. */ +extern x86_64_accton_as5916_54xl_config_settings_t x86_64_accton_as5916_54xl_config_settings[]; + +/** + * @brief Lookup a configuration setting. + * @param setting The name of the configuration option to lookup. + */ +const char* x86_64_accton_as5916_54xl_config_lookup(const char* setting); + +/** + * @brief Show the compile-time configuration. + * @param pvs The output stream. + */ +int x86_64_accton_as5916_54xl_config_show(struct aim_pvs_s* pvs); + /* */ #include "x86_64_accton_as5916_54xl_porting.h" diff --git a/packages/platforms/accton/x86-64/as5916-54xl/onlp/builds/x86_64_accton_as5916_54xl/module/inc/x86_64_accton_as5916_54xl/x86_64_accton_as5916_54xl_porting.h b/packages/platforms/accton/x86-64/as5916-54xl/onlp/builds/x86_64_accton_as5916_54xl/module/inc/x86_64_accton_as5916_54xl/x86_64_accton_as5916_54xl_porting.h index 0dd5667e..fdce3dd9 100755 --- a/packages/platforms/accton/x86-64/as5916-54xl/onlp/builds/x86_64_accton_as5916_54xl/module/inc/x86_64_accton_as5916_54xl/x86_64_accton_as5916_54xl_porting.h +++ b/packages/platforms/accton/x86-64/as5916-54xl/onlp/builds/x86_64_accton_as5916_54xl/module/inc/x86_64_accton_as5916_54xl/x86_64_accton_as5916_54xl_porting.h @@ -12,94 +12,94 @@ /* */ -#if X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 -#include -#include -#include -#include -#include -#endif - -#ifndef X86_64_ACCTON_AS5916_54XL_MALLOC - #if defined(GLOBAL_MALLOC) - #define X86_64_ACCTON_AS5916_54XL_MALLOC GLOBAL_MALLOC - #elif X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_STDLIB == 1 - #define X86_64_ACCTON_AS5916_54XL_MALLOC malloc - #else - #error The macro X86_64_ACCTON_AS5916_54XL_MALLOC is required but cannot be defined. - #endif -#endif - -#ifndef X86_64_ACCTON_AS5916_54XL_FREE - #if defined(GLOBAL_FREE) - #define X86_64_ACCTON_AS5916_54XL_FREE GLOBAL_FREE - #elif X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_STDLIB == 1 - #define X86_64_ACCTON_AS5916_54XL_FREE free - #else - #error The macro X86_64_ACCTON_AS5916_54XL_FREE is required but cannot be defined. - #endif -#endif - -#ifndef X86_64_ACCTON_AS5916_54XL_MEMSET - #if defined(GLOBAL_MEMSET) - #define X86_64_ACCTON_AS5916_54XL_MEMSET GLOBAL_MEMSET - #elif X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_STDLIB == 1 - #define X86_64_ACCTON_AS5916_54XL_MEMSET memset - #else - #error The macro X86_64_ACCTON_AS5916_54XL_MEMSET is required but cannot be defined. - #endif -#endif - -#ifndef X86_64_ACCTON_AS5916_54XL_MEMCPY - #if defined(GLOBAL_MEMCPY) - #define X86_64_ACCTON_AS5916_54XL_MEMCPY GLOBAL_MEMCPY - #elif X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_STDLIB == 1 - #define X86_64_ACCTON_AS5916_54XL_MEMCPY memcpy - #else - #error The macro X86_64_ACCTON_AS5916_54XL_MEMCPY is required but cannot be defined. - #endif -#endif - -#ifndef X86_64_ACCTON_AS5916_54XL_STRNCPY - #if defined(GLOBAL_STRNCPY) - #define X86_64_ACCTON_AS5916_54XL_STRNCPY GLOBAL_STRNCPY - #elif X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_STDLIB == 1 - #define X86_64_ACCTON_AS5916_54XL_STRNCPY strncpy - #else - #error The macro X86_64_ACCTON_AS5916_54XL_STRNCPY is required but cannot be defined. - #endif -#endif - -#ifndef X86_64_ACCTON_AS5916_54XL_VSNPRINTF - #if defined(GLOBAL_VSNPRINTF) - #define X86_64_ACCTON_AS5916_54XL_VSNPRINTF GLOBAL_VSNPRINTF - #elif X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_STDLIB == 1 - #define X86_64_ACCTON_AS5916_54XL_VSNPRINTF vsnprintf - #else - #error The macro X86_64_ACCTON_AS5916_54XL_VSNPRINTF is required but cannot be defined. - #endif -#endif - -#ifndef X86_64_ACCTON_AS5916_54XL_SNPRINTF - #if defined(GLOBAL_SNPRINTF) - #define X86_64_ACCTON_AS5916_54XL_SNPRINTF GLOBAL_SNPRINTF - #elif X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_STDLIB == 1 - #define X86_64_ACCTON_AS5916_54XL_SNPRINTF snprintf - #else - #error The macro X86_64_ACCTON_AS5916_54XL_SNPRINTF is required but cannot be defined. - #endif -#endif - -#ifndef X86_64_ACCTON_AS5916_54XL_STRLEN - #if defined(GLOBAL_STRLEN) - #define X86_64_ACCTON_AS5916_54XL_STRLEN GLOBAL_STRLEN - #elif X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_STDLIB == 1 - #define X86_64_ACCTON_AS5916_54XL_STRLEN strlen - #else - #error The macro X86_64_ACCTON_AS5916_54XL_STRLEN is required but cannot be defined. - #endif -#endif - +#if X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 +#include +#include +#include +#include +#include +#endif + +#ifndef X86_64_ACCTON_AS5916_54XL_MALLOC + #if defined(GLOBAL_MALLOC) + #define X86_64_ACCTON_AS5916_54XL_MALLOC GLOBAL_MALLOC + #elif X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_AS5916_54XL_MALLOC malloc + #else + #error The macro X86_64_ACCTON_AS5916_54XL_MALLOC is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_AS5916_54XL_FREE + #if defined(GLOBAL_FREE) + #define X86_64_ACCTON_AS5916_54XL_FREE GLOBAL_FREE + #elif X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_AS5916_54XL_FREE free + #else + #error The macro X86_64_ACCTON_AS5916_54XL_FREE is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_AS5916_54XL_MEMSET + #if defined(GLOBAL_MEMSET) + #define X86_64_ACCTON_AS5916_54XL_MEMSET GLOBAL_MEMSET + #elif X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_AS5916_54XL_MEMSET memset + #else + #error The macro X86_64_ACCTON_AS5916_54XL_MEMSET is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_AS5916_54XL_MEMCPY + #if defined(GLOBAL_MEMCPY) + #define X86_64_ACCTON_AS5916_54XL_MEMCPY GLOBAL_MEMCPY + #elif X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_AS5916_54XL_MEMCPY memcpy + #else + #error The macro X86_64_ACCTON_AS5916_54XL_MEMCPY is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_AS5916_54XL_STRNCPY + #if defined(GLOBAL_STRNCPY) + #define X86_64_ACCTON_AS5916_54XL_STRNCPY GLOBAL_STRNCPY + #elif X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_AS5916_54XL_STRNCPY strncpy + #else + #error The macro X86_64_ACCTON_AS5916_54XL_STRNCPY is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_AS5916_54XL_VSNPRINTF + #if defined(GLOBAL_VSNPRINTF) + #define X86_64_ACCTON_AS5916_54XL_VSNPRINTF GLOBAL_VSNPRINTF + #elif X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_AS5916_54XL_VSNPRINTF vsnprintf + #else + #error The macro X86_64_ACCTON_AS5916_54XL_VSNPRINTF is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_AS5916_54XL_SNPRINTF + #if defined(GLOBAL_SNPRINTF) + #define X86_64_ACCTON_AS5916_54XL_SNPRINTF GLOBAL_SNPRINTF + #elif X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_AS5916_54XL_SNPRINTF snprintf + #else + #error The macro X86_64_ACCTON_AS5916_54XL_SNPRINTF is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_AS5916_54XL_STRLEN + #if defined(GLOBAL_STRLEN) + #define X86_64_ACCTON_AS5916_54XL_STRLEN GLOBAL_STRLEN + #elif X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_AS5916_54XL_STRLEN strlen + #else + #error The macro X86_64_ACCTON_AS5916_54XL_STRLEN is required but cannot be defined. + #endif +#endif + /* */ diff --git a/packages/platforms/accton/x86-64/as5916-54xl/onlp/builds/x86_64_accton_as5916_54xl/module/src/x86_64_accton_as5916_54xl_config.c b/packages/platforms/accton/x86-64/as5916-54xl/onlp/builds/x86_64_accton_as5916_54xl/module/src/x86_64_accton_as5916_54xl_config.c index 1ad1aa85..4732422b 100755 --- a/packages/platforms/accton/x86-64/as5916-54xl/onlp/builds/x86_64_accton_as5916_54xl/module/src/x86_64_accton_as5916_54xl_config.c +++ b/packages/platforms/accton/x86-64/as5916-54xl/onlp/builds/x86_64_accton_as5916_54xl/module/src/x86_64_accton_as5916_54xl_config.c @@ -6,75 +6,75 @@ #include /* */ -#define __x86_64_accton_as5916_54xl_config_STRINGIFY_NAME(_x) #_x -#define __x86_64_accton_as5916_54xl_config_STRINGIFY_VALUE(_x) __x86_64_accton_as5916_54xl_config_STRINGIFY_NAME(_x) -x86_64_accton_as5916_54xl_config_settings_t x86_64_accton_as5916_54xl_config_settings[] = -{ -#ifdef X86_64_ACCTON_AS5916_54XL_CONFIG_INCLUDE_LOGGING - { __x86_64_accton_as5916_54xl_config_STRINGIFY_NAME(X86_64_ACCTON_AS5916_54XL_CONFIG_INCLUDE_LOGGING), __x86_64_accton_as5916_54xl_config_STRINGIFY_VALUE(X86_64_ACCTON_AS5916_54XL_CONFIG_INCLUDE_LOGGING) }, -#else -{ X86_64_ACCTON_AS5916_54XL_CONFIG_INCLUDE_LOGGING(__x86_64_accton_as5916_54xl_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef X86_64_ACCTON_AS5916_54XL_CONFIG_LOG_OPTIONS_DEFAULT - { __x86_64_accton_as5916_54xl_config_STRINGIFY_NAME(X86_64_ACCTON_AS5916_54XL_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_accton_as5916_54xl_config_STRINGIFY_VALUE(X86_64_ACCTON_AS5916_54XL_CONFIG_LOG_OPTIONS_DEFAULT) }, -#else -{ X86_64_ACCTON_AS5916_54XL_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_accton_as5916_54xl_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef X86_64_ACCTON_AS5916_54XL_CONFIG_LOG_BITS_DEFAULT - { __x86_64_accton_as5916_54xl_config_STRINGIFY_NAME(X86_64_ACCTON_AS5916_54XL_CONFIG_LOG_BITS_DEFAULT), __x86_64_accton_as5916_54xl_config_STRINGIFY_VALUE(X86_64_ACCTON_AS5916_54XL_CONFIG_LOG_BITS_DEFAULT) }, -#else -{ X86_64_ACCTON_AS5916_54XL_CONFIG_LOG_BITS_DEFAULT(__x86_64_accton_as5916_54xl_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef X86_64_ACCTON_AS5916_54XL_CONFIG_LOG_CUSTOM_BITS_DEFAULT - { __x86_64_accton_as5916_54xl_config_STRINGIFY_NAME(X86_64_ACCTON_AS5916_54XL_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_accton_as5916_54xl_config_STRINGIFY_VALUE(X86_64_ACCTON_AS5916_54XL_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, -#else -{ X86_64_ACCTON_AS5916_54XL_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_accton_as5916_54xl_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_STDLIB - { __x86_64_accton_as5916_54xl_config_STRINGIFY_NAME(X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_STDLIB), __x86_64_accton_as5916_54xl_config_STRINGIFY_VALUE(X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_STDLIB) }, -#else -{ X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_STDLIB(__x86_64_accton_as5916_54xl_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS - { __x86_64_accton_as5916_54xl_config_STRINGIFY_NAME(X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_accton_as5916_54xl_config_STRINGIFY_VALUE(X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, -#else -{ X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_accton_as5916_54xl_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef X86_64_ACCTON_AS5916_54XL_CONFIG_INCLUDE_UCLI - { __x86_64_accton_as5916_54xl_config_STRINGIFY_NAME(X86_64_ACCTON_AS5916_54XL_CONFIG_INCLUDE_UCLI), __x86_64_accton_as5916_54xl_config_STRINGIFY_VALUE(X86_64_ACCTON_AS5916_54XL_CONFIG_INCLUDE_UCLI) }, -#else -{ X86_64_ACCTON_AS5916_54XL_CONFIG_INCLUDE_UCLI(__x86_64_accton_as5916_54xl_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef X86_64_ACCTON_AS5916_54XL_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION - { __x86_64_accton_as5916_54xl_config_STRINGIFY_NAME(X86_64_ACCTON_AS5916_54XL_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __x86_64_accton_as5916_54xl_config_STRINGIFY_VALUE(X86_64_ACCTON_AS5916_54XL_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, -#else -{ X86_64_ACCTON_AS5916_54XL_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__x86_64_accton_as5916_54xl_config_STRINGIFY_NAME), "__undefined__" }, -#endif - { NULL, NULL } -}; -#undef __x86_64_accton_as5916_54xl_config_STRINGIFY_VALUE -#undef __x86_64_accton_as5916_54xl_config_STRINGIFY_NAME - -const char* -x86_64_accton_as5916_54xl_config_lookup(const char* setting) -{ - int i; - for(i = 0; x86_64_accton_as5916_54xl_config_settings[i].name; i++) { - if(!strcmp(x86_64_accton_as5916_54xl_config_settings[i].name, setting)) { - return x86_64_accton_as5916_54xl_config_settings[i].value; - } - } - return NULL; -} - -int -x86_64_accton_as5916_54xl_config_show(struct aim_pvs_s* pvs) -{ - int i; - for(i = 0; x86_64_accton_as5916_54xl_config_settings[i].name; i++) { - aim_printf(pvs, "%s = %s\n", x86_64_accton_as5916_54xl_config_settings[i].name, x86_64_accton_as5916_54xl_config_settings[i].value); - } - return i; -} - +#define __x86_64_accton_as5916_54xl_config_STRINGIFY_NAME(_x) #_x +#define __x86_64_accton_as5916_54xl_config_STRINGIFY_VALUE(_x) __x86_64_accton_as5916_54xl_config_STRINGIFY_NAME(_x) +x86_64_accton_as5916_54xl_config_settings_t x86_64_accton_as5916_54xl_config_settings[] = +{ +#ifdef X86_64_ACCTON_AS5916_54XL_CONFIG_INCLUDE_LOGGING + { __x86_64_accton_as5916_54xl_config_STRINGIFY_NAME(X86_64_ACCTON_AS5916_54XL_CONFIG_INCLUDE_LOGGING), __x86_64_accton_as5916_54xl_config_STRINGIFY_VALUE(X86_64_ACCTON_AS5916_54XL_CONFIG_INCLUDE_LOGGING) }, +#else +{ X86_64_ACCTON_AS5916_54XL_CONFIG_INCLUDE_LOGGING(__x86_64_accton_as5916_54xl_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_AS5916_54XL_CONFIG_LOG_OPTIONS_DEFAULT + { __x86_64_accton_as5916_54xl_config_STRINGIFY_NAME(X86_64_ACCTON_AS5916_54XL_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_accton_as5916_54xl_config_STRINGIFY_VALUE(X86_64_ACCTON_AS5916_54XL_CONFIG_LOG_OPTIONS_DEFAULT) }, +#else +{ X86_64_ACCTON_AS5916_54XL_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_accton_as5916_54xl_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_AS5916_54XL_CONFIG_LOG_BITS_DEFAULT + { __x86_64_accton_as5916_54xl_config_STRINGIFY_NAME(X86_64_ACCTON_AS5916_54XL_CONFIG_LOG_BITS_DEFAULT), __x86_64_accton_as5916_54xl_config_STRINGIFY_VALUE(X86_64_ACCTON_AS5916_54XL_CONFIG_LOG_BITS_DEFAULT) }, +#else +{ X86_64_ACCTON_AS5916_54XL_CONFIG_LOG_BITS_DEFAULT(__x86_64_accton_as5916_54xl_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_AS5916_54XL_CONFIG_LOG_CUSTOM_BITS_DEFAULT + { __x86_64_accton_as5916_54xl_config_STRINGIFY_NAME(X86_64_ACCTON_AS5916_54XL_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_accton_as5916_54xl_config_STRINGIFY_VALUE(X86_64_ACCTON_AS5916_54XL_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, +#else +{ X86_64_ACCTON_AS5916_54XL_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_accton_as5916_54xl_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_STDLIB + { __x86_64_accton_as5916_54xl_config_STRINGIFY_NAME(X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_STDLIB), __x86_64_accton_as5916_54xl_config_STRINGIFY_VALUE(X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_STDLIB) }, +#else +{ X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_STDLIB(__x86_64_accton_as5916_54xl_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + { __x86_64_accton_as5916_54xl_config_STRINGIFY_NAME(X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_accton_as5916_54xl_config_STRINGIFY_VALUE(X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, +#else +{ X86_64_ACCTON_AS5916_54XL_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_accton_as5916_54xl_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_AS5916_54XL_CONFIG_INCLUDE_UCLI + { __x86_64_accton_as5916_54xl_config_STRINGIFY_NAME(X86_64_ACCTON_AS5916_54XL_CONFIG_INCLUDE_UCLI), __x86_64_accton_as5916_54xl_config_STRINGIFY_VALUE(X86_64_ACCTON_AS5916_54XL_CONFIG_INCLUDE_UCLI) }, +#else +{ X86_64_ACCTON_AS5916_54XL_CONFIG_INCLUDE_UCLI(__x86_64_accton_as5916_54xl_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_AS5916_54XL_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION + { __x86_64_accton_as5916_54xl_config_STRINGIFY_NAME(X86_64_ACCTON_AS5916_54XL_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __x86_64_accton_as5916_54xl_config_STRINGIFY_VALUE(X86_64_ACCTON_AS5916_54XL_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, +#else +{ X86_64_ACCTON_AS5916_54XL_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__x86_64_accton_as5916_54xl_config_STRINGIFY_NAME), "__undefined__" }, +#endif + { NULL, NULL } +}; +#undef __x86_64_accton_as5916_54xl_config_STRINGIFY_VALUE +#undef __x86_64_accton_as5916_54xl_config_STRINGIFY_NAME + +const char* +x86_64_accton_as5916_54xl_config_lookup(const char* setting) +{ + int i; + for(i = 0; x86_64_accton_as5916_54xl_config_settings[i].name; i++) { + if(!strcmp(x86_64_accton_as5916_54xl_config_settings[i].name, setting)) { + return x86_64_accton_as5916_54xl_config_settings[i].value; + } + } + return NULL; +} + +int +x86_64_accton_as5916_54xl_config_show(struct aim_pvs_s* pvs) +{ + int i; + for(i = 0; x86_64_accton_as5916_54xl_config_settings[i].name; i++) { + aim_printf(pvs, "%s = %s\n", x86_64_accton_as5916_54xl_config_settings[i].name, x86_64_accton_as5916_54xl_config_settings[i].value); + } + return i; +} + /* */ diff --git a/packages/platforms/accton/x86-64/as7112-54x/onlp/builds/x86_64_accton_as7112_54x/module/auto/x86_64_accton_as7112_64x.yml b/packages/platforms/accton/x86-64/as7112-54x/onlp/builds/x86_64_accton_as7112_54x/module/auto/x86_64_accton_as7112_54x.yml similarity index 100% rename from packages/platforms/accton/x86-64/as7112-54x/onlp/builds/x86_64_accton_as7112_54x/module/auto/x86_64_accton_as7112_64x.yml rename to packages/platforms/accton/x86-64/as7112-54x/onlp/builds/x86_64_accton_as7112_54x/module/auto/x86_64_accton_as7112_54x.yml diff --git a/packages/platforms/accton/x86-64/as7112-54x/onlp/builds/x86_64_accton_as7112_54x/module/src/x86_64_accton_as7112_54x_config.c b/packages/platforms/accton/x86-64/as7112-54x/onlp/builds/x86_64_accton_as7112_54x/module/src/x86_64_accton_as7112_54x_config.c index 99cd1a54..7e94e165 100755 --- a/packages/platforms/accton/x86-64/as7112-54x/onlp/builds/x86_64_accton_as7112_54x/module/src/x86_64_accton_as7112_54x_config.c +++ b/packages/platforms/accton/x86-64/as7112-54x/onlp/builds/x86_64_accton_as7112_54x/module/src/x86_64_accton_as7112_54x_config.c @@ -6,54 +6,54 @@ #include /* */ -#define __X86_64_ACCTON_AS7112_54X_CONFIG_STRINGIFY_NAME(_x) #_x -#define __X86_64_ACCTON_AS7112_54X_CONFIG_STRINGIFY_VALUE(_x) __X86_64_ACCTON_AS7112_54X_CONFIG_STRINGIFY_NAME(_x) +#define __x86_64_accton_as7112_54x_config_STRINGIFY_NAME(_x) #_x +#define __x86_64_accton_as7112_54x_config_STRINGIFY_VALUE(_x) __x86_64_accton_as7112_54x_config_STRINGIFY_NAME(_x) x86_64_accton_as7112_54x_config_settings_t x86_64_accton_as7112_54x_config_settings[] = { #ifdef X86_64_ACCTON_AS7112_54X_CONFIG_INCLUDE_LOGGING - { __X86_64_ACCTON_AS7112_54X_CONFIG_STRINGIFY_NAME(X86_64_ACCTON_AS7112_54X_CONFIG_INCLUDE_LOGGING), __X86_64_ACCTON_AS7112_54X_CONFIG_STRINGIFY_VALUE(X86_64_ACCTON_AS7112_54X_CONFIG_INCLUDE_LOGGING) }, + { __x86_64_accton_as7112_54x_config_STRINGIFY_NAME(X86_64_ACCTON_AS7112_54X_CONFIG_INCLUDE_LOGGING), __x86_64_accton_as7112_54x_config_STRINGIFY_VALUE(X86_64_ACCTON_AS7112_54X_CONFIG_INCLUDE_LOGGING) }, #else -{ X86_64_ACCTON_AS7112_54X_CONFIG_INCLUDE_LOGGING(__X86_64_ACCTON_AS7112_54X_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_ACCTON_AS7112_54X_CONFIG_INCLUDE_LOGGING(__x86_64_accton_as7112_54x_config_STRINGIFY_NAME), "__undefined__" }, #endif #ifdef X86_64_ACCTON_AS7112_54X_CONFIG_LOG_OPTIONS_DEFAULT - { __X86_64_ACCTON_AS7112_54X_CONFIG_STRINGIFY_NAME(X86_64_ACCTON_AS7112_54X_CONFIG_LOG_OPTIONS_DEFAULT), __X86_64_ACCTON_AS7112_54X_CONFIG_STRINGIFY_VALUE(X86_64_ACCTON_AS7112_54X_CONFIG_LOG_OPTIONS_DEFAULT) }, + { __x86_64_accton_as7112_54x_config_STRINGIFY_NAME(X86_64_ACCTON_AS7112_54X_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_accton_as7112_54x_config_STRINGIFY_VALUE(X86_64_ACCTON_AS7112_54X_CONFIG_LOG_OPTIONS_DEFAULT) }, #else -{ X86_64_ACCTON_AS7112_54X_CONFIG_LOG_OPTIONS_DEFAULT(__X86_64_ACCTON_AS7112_54X_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_ACCTON_AS7112_54X_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_accton_as7112_54x_config_STRINGIFY_NAME), "__undefined__" }, #endif #ifdef X86_64_ACCTON_AS7112_54X_CONFIG_LOG_BITS_DEFAULT - { __X86_64_ACCTON_AS7112_54X_CONFIG_STRINGIFY_NAME(X86_64_ACCTON_AS7112_54X_CONFIG_LOG_BITS_DEFAULT), __X86_64_ACCTON_AS7112_54X_CONFIG_STRINGIFY_VALUE(X86_64_ACCTON_AS7112_54X_CONFIG_LOG_BITS_DEFAULT) }, + { __x86_64_accton_as7112_54x_config_STRINGIFY_NAME(X86_64_ACCTON_AS7112_54X_CONFIG_LOG_BITS_DEFAULT), __x86_64_accton_as7112_54x_config_STRINGIFY_VALUE(X86_64_ACCTON_AS7112_54X_CONFIG_LOG_BITS_DEFAULT) }, #else -{ X86_64_ACCTON_AS7112_54X_CONFIG_LOG_BITS_DEFAULT(__X86_64_ACCTON_AS7112_54X_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_ACCTON_AS7112_54X_CONFIG_LOG_BITS_DEFAULT(__x86_64_accton_as7112_54x_config_STRINGIFY_NAME), "__undefined__" }, #endif #ifdef X86_64_ACCTON_AS7112_54X_CONFIG_LOG_CUSTOM_BITS_DEFAULT - { __X86_64_ACCTON_AS7112_54X_CONFIG_STRINGIFY_NAME(X86_64_ACCTON_AS7112_54X_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __X86_64_ACCTON_AS7112_54X_CONFIG_STRINGIFY_VALUE(X86_64_ACCTON_AS7112_54X_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, + { __x86_64_accton_as7112_54x_config_STRINGIFY_NAME(X86_64_ACCTON_AS7112_54X_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_accton_as7112_54x_config_STRINGIFY_VALUE(X86_64_ACCTON_AS7112_54X_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, #else -{ X86_64_ACCTON_AS7112_54X_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__X86_64_ACCTON_AS7112_54X_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_ACCTON_AS7112_54X_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_accton_as7112_54x_config_STRINGIFY_NAME), "__undefined__" }, #endif #ifdef X86_64_ACCTON_AS7112_54X_CONFIG_PORTING_STDLIB - { __X86_64_ACCTON_AS7112_54X_CONFIG_STRINGIFY_NAME(X86_64_ACCTON_AS7112_54X_CONFIG_PORTING_STDLIB), __X86_64_ACCTON_AS7112_54X_CONFIG_STRINGIFY_VALUE(X86_64_ACCTON_AS7112_54X_CONFIG_PORTING_STDLIB) }, + { __x86_64_accton_as7112_54x_config_STRINGIFY_NAME(X86_64_ACCTON_AS7112_54X_CONFIG_PORTING_STDLIB), __x86_64_accton_as7112_54x_config_STRINGIFY_VALUE(X86_64_ACCTON_AS7112_54X_CONFIG_PORTING_STDLIB) }, #else -{ X86_64_ACCTON_AS7112_54X_CONFIG_PORTING_STDLIB(__X86_64_ACCTON_AS7112_54X_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_ACCTON_AS7112_54X_CONFIG_PORTING_STDLIB(__x86_64_accton_as7112_54x_config_STRINGIFY_NAME), "__undefined__" }, #endif #ifdef X86_64_ACCTON_AS7112_54X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS - { __X86_64_ACCTON_AS7112_54X_CONFIG_STRINGIFY_NAME(X86_64_ACCTON_AS7112_54X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __X86_64_ACCTON_AS7112_54X_CONFIG_STRINGIFY_VALUE(X86_64_ACCTON_AS7112_54X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, + { __x86_64_accton_as7112_54x_config_STRINGIFY_NAME(X86_64_ACCTON_AS7112_54X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_accton_as7112_54x_config_STRINGIFY_VALUE(X86_64_ACCTON_AS7112_54X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, #else -{ X86_64_ACCTON_AS7112_54X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__X86_64_ACCTON_AS7112_54X_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_ACCTON_AS7112_54X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_accton_as7112_54x_config_STRINGIFY_NAME), "__undefined__" }, #endif #ifdef X86_64_ACCTON_AS7112_54X_CONFIG_INCLUDE_UCLI - { __X86_64_ACCTON_AS7112_54X_CONFIG_STRINGIFY_NAME(X86_64_ACCTON_AS7112_54X_CONFIG_INCLUDE_UCLI), __X86_64_ACCTON_AS7112_54X_CONFIG_STRINGIFY_VALUE(X86_64_ACCTON_AS7112_54X_CONFIG_INCLUDE_UCLI) }, + { __x86_64_accton_as7112_54x_config_STRINGIFY_NAME(X86_64_ACCTON_AS7112_54X_CONFIG_INCLUDE_UCLI), __x86_64_accton_as7112_54x_config_STRINGIFY_VALUE(X86_64_ACCTON_AS7112_54X_CONFIG_INCLUDE_UCLI) }, #else -{ X86_64_ACCTON_AS7112_54X_CONFIG_INCLUDE_UCLI(__X86_64_ACCTON_AS7112_54X_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_ACCTON_AS7112_54X_CONFIG_INCLUDE_UCLI(__x86_64_accton_as7112_54x_config_STRINGIFY_NAME), "__undefined__" }, #endif #ifdef X86_64_ACCTON_AS7112_54X_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION - { __X86_64_ACCTON_AS7112_54X_CONFIG_STRINGIFY_NAME(X86_64_ACCTON_AS7112_54X_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __X86_64_ACCTON_AS7112_54X_CONFIG_STRINGIFY_VALUE(X86_64_ACCTON_AS7112_54X_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, + { __x86_64_accton_as7112_54x_config_STRINGIFY_NAME(X86_64_ACCTON_AS7112_54X_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __x86_64_accton_as7112_54x_config_STRINGIFY_VALUE(X86_64_ACCTON_AS7112_54X_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, #else -{ X86_64_ACCTON_AS7112_54X_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__X86_64_ACCTON_AS7112_54X_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_ACCTON_AS7112_54X_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__x86_64_accton_as7112_54x_config_STRINGIFY_NAME), "__undefined__" }, #endif { NULL, NULL } }; -#undef __X86_64_ACCTON_AS7112_54X_CONFIG_STRINGIFY_VALUE -#undef __X86_64_ACCTON_AS7112_54X_CONFIG_STRINGIFY_NAME +#undef __x86_64_accton_as7112_54x_config_STRINGIFY_VALUE +#undef __x86_64_accton_as7112_54x_config_STRINGIFY_NAME const char* x86_64_accton_as7112_54x_config_lookup(const char* setting) diff --git a/packages/platforms/accton/x86-64/as7112-54x/onlp/builds/x86_64_accton_as7112_54x/x86_64_accton_as7112_54x.mk b/packages/platforms/accton/x86-64/as7112-54x/onlp/builds/x86_64_accton_as7112_54x/x86_64_accton_as7112_54x.mk index 914ed9e7..1c601603 100644 --- a/packages/platforms/accton/x86-64/as7112-54x/onlp/builds/x86_64_accton_as7112_54x/x86_64_accton_as7112_54x.mk +++ b/packages/platforms/accton/x86-64/as7112-54x/onlp/builds/x86_64_accton_as7112_54x/x86_64_accton_as7112_54x.mk @@ -3,11 +3,11 @@ # # Inclusive Makefile for the x86_64_accton_as7112_54x module. # -# Autogenerated 2018-09-12 02:07:07.665347 +# Autogenerated 2019-07-13 17:26:43.980186 # ############################################################################### x86_64_accton_as7112_54x_BASEDIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST)))) include $(x86_64_accton_as7112_54x_BASEDIR)module/make.mk -include $(x86_64_accton_as7112_54x_BASEDIR)module/src/make.mk include $(x86_64_accton_as7112_54x_BASEDIR)module/auto/make.mk +include $(x86_64_accton_as7112_54x_BASEDIR)module/src/make.mk diff --git a/packages/platforms/accton/x86-64/as7312-54xs/onlp/builds/x86_64_accton_as7312_54xs/Makefile b/packages/platforms/accton/x86-64/as7312-54xs/onlp/builds/x86_64_accton_as7312_54xs/Makefile index 2b8bd61d..304a23cb 100644 --- a/packages/platforms/accton/x86-64/as7312-54xs/onlp/builds/x86_64_accton_as7312_54xs/Makefile +++ b/packages/platforms/accton/x86-64/as7312-54xs/onlp/builds/x86_64_accton_as7312_54xs/Makefile @@ -1,9 +1,9 @@ ############################################################################### # -# +# # ############################################################################### -include ../../init.mk +include $(ONL)/make/config.mk MODULE := x86_64_accton_as7312_54xs AUTOMODULE := x86_64_accton_as7312_54xs include $(BUILDER)/definemodule.mk diff --git a/packages/platforms/accton/x86-64/as7312-54xs/onlp/builds/x86_64_accton_as7312_54xs/module/inc/x86_64_accton_as7312_54xs/x86_64_accton_as7312_54xs_porting.h b/packages/platforms/accton/x86-64/as7312-54xs/onlp/builds/x86_64_accton_as7312_54xs/module/inc/x86_64_accton_as7312_54xs/x86_64_accton_as7312_54xs_porting.h index e95b63da..7b679b76 100644 --- a/packages/platforms/accton/x86-64/as7312-54xs/onlp/builds/x86_64_accton_as7312_54xs/module/inc/x86_64_accton_as7312_54xs/x86_64_accton_as7312_54xs_porting.h +++ b/packages/platforms/accton/x86-64/as7312-54xs/onlp/builds/x86_64_accton_as7312_54xs/module/inc/x86_64_accton_as7312_54xs/x86_64_accton_as7312_54xs_porting.h @@ -20,83 +20,83 @@ #include #endif -#ifndef x86_64_accton_as7312_54xs_MALLOC +#ifndef X86_64_ACCTON_AS7312_54XS_MALLOC #if defined(GLOBAL_MALLOC) - #define x86_64_accton_as7312_54xs_MALLOC GLOBAL_MALLOC + #define X86_64_ACCTON_AS7312_54XS_MALLOC GLOBAL_MALLOC #elif X86_64_ACCTON_AS7312_54XS_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_as7312_54xs_MALLOC malloc + #define X86_64_ACCTON_AS7312_54XS_MALLOC malloc #else - #error The macro x86_64_accton_as7312_54xs_MALLOC is required but cannot be defined. + #error The macro X86_64_ACCTON_AS7312_54XS_MALLOC is required but cannot be defined. #endif #endif -#ifndef x86_64_accton_as7312_54xs_FREE +#ifndef X86_64_ACCTON_AS7312_54XS_FREE #if defined(GLOBAL_FREE) - #define x86_64_accton_as7312_54xs_FREE GLOBAL_FREE + #define X86_64_ACCTON_AS7312_54XS_FREE GLOBAL_FREE #elif X86_64_ACCTON_AS7312_54XS_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_as7312_54xs_FREE free + #define X86_64_ACCTON_AS7312_54XS_FREE free #else - #error The macro x86_64_accton_as7312_54xs_FREE is required but cannot be defined. + #error The macro X86_64_ACCTON_AS7312_54XS_FREE is required but cannot be defined. #endif #endif -#ifndef x86_64_accton_as7312_54xs_MEMSET +#ifndef X86_64_ACCTON_AS7312_54XS_MEMSET #if defined(GLOBAL_MEMSET) - #define x86_64_accton_as7312_54xs_MEMSET GLOBAL_MEMSET + #define X86_64_ACCTON_AS7312_54XS_MEMSET GLOBAL_MEMSET #elif X86_64_ACCTON_AS7312_54XS_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_as7312_54xs_MEMSET memset + #define X86_64_ACCTON_AS7312_54XS_MEMSET memset #else - #error The macro x86_64_accton_as7312_54xs_MEMSET is required but cannot be defined. + #error The macro X86_64_ACCTON_AS7312_54XS_MEMSET is required but cannot be defined. #endif #endif -#ifndef x86_64_accton_as7312_54xs_MEMCPY +#ifndef X86_64_ACCTON_AS7312_54XS_MEMCPY #if defined(GLOBAL_MEMCPY) - #define x86_64_accton_as7312_54xs_MEMCPY GLOBAL_MEMCPY + #define X86_64_ACCTON_AS7312_54XS_MEMCPY GLOBAL_MEMCPY #elif X86_64_ACCTON_AS7312_54XS_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_as7312_54xs_MEMCPY memcpy + #define X86_64_ACCTON_AS7312_54XS_MEMCPY memcpy #else - #error The macro x86_64_accton_as7312_54xs_MEMCPY is required but cannot be defined. + #error The macro X86_64_ACCTON_AS7312_54XS_MEMCPY is required but cannot be defined. #endif #endif -#ifndef x86_64_accton_as7312_54xs_STRNCPY +#ifndef X86_64_ACCTON_AS7312_54XS_STRNCPY #if defined(GLOBAL_STRNCPY) - #define x86_64_accton_as7312_54xs_STRNCPY GLOBAL_STRNCPY + #define X86_64_ACCTON_AS7312_54XS_STRNCPY GLOBAL_STRNCPY #elif X86_64_ACCTON_AS7312_54XS_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_as7312_54xs_STRNCPY strncpy + #define X86_64_ACCTON_AS7312_54XS_STRNCPY strncpy #else - #error The macro x86_64_accton_as7312_54xs_STRNCPY is required but cannot be defined. + #error The macro X86_64_ACCTON_AS7312_54XS_STRNCPY is required but cannot be defined. #endif #endif -#ifndef x86_64_accton_as7312_54xs_VSNPRINTF +#ifndef X86_64_ACCTON_AS7312_54XS_VSNPRINTF #if defined(GLOBAL_VSNPRINTF) - #define x86_64_accton_as7312_54xs_VSNPRINTF GLOBAL_VSNPRINTF + #define X86_64_ACCTON_AS7312_54XS_VSNPRINTF GLOBAL_VSNPRINTF #elif X86_64_ACCTON_AS7312_54XS_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_as7312_54xs_VSNPRINTF vsnprintf + #define X86_64_ACCTON_AS7312_54XS_VSNPRINTF vsnprintf #else - #error The macro x86_64_accton_as7312_54xs_VSNPRINTF is required but cannot be defined. + #error The macro X86_64_ACCTON_AS7312_54XS_VSNPRINTF is required but cannot be defined. #endif #endif -#ifndef x86_64_accton_as7312_54xs_SNPRINTF +#ifndef X86_64_ACCTON_AS7312_54XS_SNPRINTF #if defined(GLOBAL_SNPRINTF) - #define x86_64_accton_as7312_54xs_SNPRINTF GLOBAL_SNPRINTF + #define X86_64_ACCTON_AS7312_54XS_SNPRINTF GLOBAL_SNPRINTF #elif X86_64_ACCTON_AS7312_54XS_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_as7312_54xs_SNPRINTF snprintf + #define X86_64_ACCTON_AS7312_54XS_SNPRINTF snprintf #else - #error The macro x86_64_accton_as7312_54xs_SNPRINTF is required but cannot be defined. + #error The macro X86_64_ACCTON_AS7312_54XS_SNPRINTF is required but cannot be defined. #endif #endif -#ifndef x86_64_accton_as7312_54xs_STRLEN +#ifndef X86_64_ACCTON_AS7312_54XS_STRLEN #if defined(GLOBAL_STRLEN) - #define x86_64_accton_as7312_54xs_STRLEN GLOBAL_STRLEN + #define X86_64_ACCTON_AS7312_54XS_STRLEN GLOBAL_STRLEN #elif X86_64_ACCTON_AS7312_54XS_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_as7312_54xs_STRLEN strlen + #define X86_64_ACCTON_AS7312_54XS_STRLEN strlen #else - #error The macro x86_64_accton_as7312_54xs_STRLEN is required but cannot be defined. + #error The macro X86_64_ACCTON_AS7312_54XS_STRLEN is required but cannot be defined. #endif #endif diff --git a/packages/platforms/accton/x86-64/as7312-54xs/onlp/builds/x86_64_accton_as7312_54xs/module/src/x86_64_accton_as7312_54xs_config.c b/packages/platforms/accton/x86-64/as7312-54xs/onlp/builds/x86_64_accton_as7312_54xs/module/src/x86_64_accton_as7312_54xs_config.c index 8d380535..ebea6201 100644 --- a/packages/platforms/accton/x86-64/as7312-54xs/onlp/builds/x86_64_accton_as7312_54xs/module/src/x86_64_accton_as7312_54xs_config.c +++ b/packages/platforms/accton/x86-64/as7312-54xs/onlp/builds/x86_64_accton_as7312_54xs/module/src/x86_64_accton_as7312_54xs_config.c @@ -5,7 +5,7 @@ *****************************************************************************/ #include -/* */ +/* */ #define __x86_64_accton_as7312_54xs_config_STRINGIFY_NAME(_x) #_x #define __x86_64_accton_as7312_54xs_config_STRINGIFY_VALUE(_x) __x86_64_accton_as7312_54xs_config_STRINGIFY_NAME(_x) x86_64_accton_as7312_54xs_config_settings_t x86_64_accton_as7312_54xs_config_settings[] = @@ -60,7 +60,7 @@ x86_64_accton_as7312_54xs_config_lookup(const char* setting) { int i; for(i = 0; x86_64_accton_as7312_54xs_config_settings[i].name; i++) { - if(strcmp(x86_64_accton_as7312_54xs_config_settings[i].name, setting)) { + if(!strcmp(x86_64_accton_as7312_54xs_config_settings[i].name, setting)) { return x86_64_accton_as7312_54xs_config_settings[i].value; } } @@ -78,4 +78,3 @@ x86_64_accton_as7312_54xs_config_show(struct aim_pvs_s* pvs) } /* */ - diff --git a/packages/platforms/accton/x86-64/as7316-26xb/onlp/builds/x86_64_accton_as7316_26xb/module/auto/make.mk b/packages/platforms/accton/x86-64/as7316-26xb/onlp/builds/x86_64_accton_as7316_26xb/module/auto/make.mk index 39491a06..695e5aa6 100644 --- a/packages/platforms/accton/x86-64/as7316-26xb/onlp/builds/x86_64_accton_as7316_26xb/module/auto/make.mk +++ b/packages/platforms/accton/x86-64/as7316-26xb/onlp/builds/x86_64_accton_as7316_26xb/module/auto/make.mk @@ -1,9 +1,8 @@ ############################################################################### # -# x86_64_accton_as7316_54x Autogeneration +# x86_64_accton_as7316_26xb Autogeneration # ############################################################################### -x86_64_accton_as7316_54x_AUTO_DEFS := module/auto/x86_64_accton_as7316_54x.yml -x86_64_accton_as7316_54x_AUTO_DIRS := module/inc/x86_64_accton_as7316_54x module/src +x86_64_accton_as7316_26xb_AUTO_DEFS := module/auto/x86_64_accton_as7316_26xb.yml +x86_64_accton_as7316_26xb_AUTO_DIRS := module/inc/x86_64_accton_as7316_26xb module/src include $(BUILDER)/auto.mk - diff --git a/packages/platforms/accton/x86-64/as7316-26xb/onlp/builds/x86_64_accton_as7316_26xb/module/auto/x86_64_accton_as7316_26xb.yml b/packages/platforms/accton/x86-64/as7316-26xb/onlp/builds/x86_64_accton_as7316_26xb/module/auto/x86_64_accton_as7316_26xb.yml index cec22856..e7c0b12f 100644 --- a/packages/platforms/accton/x86-64/as7316-26xb/onlp/builds/x86_64_accton_as7316_26xb/module/auto/x86_64_accton_as7316_26xb.yml +++ b/packages/platforms/accton/x86-64/as7316-26xb/onlp/builds/x86_64_accton_as7316_26xb/module/auto/x86_64_accton_as7316_26xb.yml @@ -33,7 +33,7 @@ cdefs: &cdefs definitions: cdefs: - X86_64_ACCTON_AS7316_26xb_CONFIG_HEADER: + X86_64_ACCTON_AS7316_26XB_CONFIG_HEADER: defs: *cdefs basename: x86_64_accton_as7316_26xb_config diff --git a/packages/platforms/accton/x86-64/as7326-56x/onlp/builds/x86_64_accton_as7326_56x/module/auto/x86_64_accton_as7326_56x.yml b/packages/platforms/accton/x86-64/as7326-56x/onlp/builds/x86_64_accton_as7326_56x/module/auto/x86_64_accton_as7326_56x.yml index 2295d34c..a3b20480 100644 --- a/packages/platforms/accton/x86-64/as7326-56x/onlp/builds/x86_64_accton_as7326_56x/module/auto/x86_64_accton_as7326_56x.yml +++ b/packages/platforms/accton/x86-64/as7326-56x/onlp/builds/x86_64_accton_as7326_56x/module/auto/x86_64_accton_as7326_56x.yml @@ -1,44 +1,44 @@ ############################################################################### # -# x86_64_accton_as7326_56x Autogeneration Definitions. +# X86_64_ACCTON_AS7326_56X Autogeneration Definitions. # ############################################################################### cdefs: &cdefs -- x86_64_accton_as7326_56x_CONFIG_INCLUDE_LOGGING: +- X86_64_ACCTON_AS7326_56X_CONFIG_INCLUDE_LOGGING: doc: "Include or exclude logging." default: 1 -- x86_64_accton_as7326_56x_CONFIG_LOG_OPTIONS_DEFAULT: +- X86_64_ACCTON_AS7326_56X_CONFIG_LOG_OPTIONS_DEFAULT: doc: "Default enabled log options." default: AIM_LOG_OPTIONS_DEFAULT -- x86_64_accton_as7326_56x_CONFIG_LOG_BITS_DEFAULT: +- X86_64_ACCTON_AS7326_56X_CONFIG_LOG_BITS_DEFAULT: doc: "Default enabled log bits." default: AIM_LOG_BITS_DEFAULT -- x86_64_accton_as7326_56x_CONFIG_LOG_CUSTOM_BITS_DEFAULT: +- X86_64_ACCTON_AS7326_56X_CONFIG_LOG_CUSTOM_BITS_DEFAULT: doc: "Default enabled custom log bits." default: 0 -- x86_64_accton_as7326_56x_CONFIG_PORTING_STDLIB: +- X86_64_ACCTON_AS7326_56X_CONFIG_PORTING_STDLIB: doc: "Default all porting macros to use the C standard libraries." default: 1 -- x86_64_accton_as7326_56x_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS: +- X86_64_ACCTON_AS7326_56X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS: doc: "Include standard library headers for stdlib porting macros." - default: x86_64_accton_as7326_56x_CONFIG_PORTING_STDLIB -- x86_64_accton_as7326_56x_CONFIG_INCLUDE_UCLI: + default: X86_64_ACCTON_AS7326_56X_CONFIG_PORTING_STDLIB +- X86_64_ACCTON_AS7326_56X_CONFIG_INCLUDE_UCLI: doc: "Include generic uCli support." default: 0 -- x86_64_accton_as7326_56x_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION: +- X86_64_ACCTON_AS7326_56X_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION: doc: "Assume chassis fan direction is the same as the PSU fan direction." default: 0 definitions: cdefs: - x86_64_accton_as7326_56x_CONFIG_HEADER: + X86_64_ACCTON_AS7326_56X_CONFIG_HEADER: defs: *cdefs - basename: x86_64_accton_as7326_56x_config + basename: X86_64_ACCTON_AS7326_56X_CONFIG portingmacro: - x86_64_accton_as7326_56x: + X86_64_ACCTON_AS7326_56X: macros: - malloc - free diff --git a/packages/platforms/accton/x86-64/as7326-56x/onlp/builds/x86_64_accton_as7326_56x/module/inc/x86_64_accton_as7326_56x/x86_64_accton_as7326_56x_config.h b/packages/platforms/accton/x86-64/as7326-56x/onlp/builds/x86_64_accton_as7326_56x/module/inc/x86_64_accton_as7326_56x/x86_64_accton_as7326_56x_config.h index 7e32b421..ecbe4573 100644 --- a/packages/platforms/accton/x86-64/as7326-56x/onlp/builds/x86_64_accton_as7326_56x/module/inc/x86_64_accton_as7326_56x/x86_64_accton_as7326_56x_config.h +++ b/packages/platforms/accton/x86-64/as7326-56x/onlp/builds/x86_64_accton_as7326_56x/module/inc/x86_64_accton_as7326_56x/x86_64_accton_as7326_56x_config.h @@ -13,90 +13,90 @@ #ifdef GLOBAL_INCLUDE_CUSTOM_CONFIG #include #endif -#ifdef x86_64_accton_as7326_56x_INCLUDE_CUSTOM_CONFIG +#ifdef X86_64_ACCTON_AS7326_56X_INCLUDE_CUSTOM_CONFIG #include #endif -/* */ +/* */ #include /** - * x86_64_accton_as7326_56x_CONFIG_INCLUDE_LOGGING + * X86_64_ACCTON_AS7326_56X_CONFIG_INCLUDE_LOGGING * * Include or exclude logging. */ -#ifndef x86_64_accton_as7326_56x_CONFIG_INCLUDE_LOGGING -#define x86_64_accton_as7326_56x_CONFIG_INCLUDE_LOGGING 1 +#ifndef X86_64_ACCTON_AS7326_56X_CONFIG_INCLUDE_LOGGING +#define X86_64_ACCTON_AS7326_56X_CONFIG_INCLUDE_LOGGING 1 #endif /** - * x86_64_accton_as7326_56x_CONFIG_LOG_OPTIONS_DEFAULT + * X86_64_ACCTON_AS7326_56X_CONFIG_LOG_OPTIONS_DEFAULT * * Default enabled log options. */ -#ifndef x86_64_accton_as7326_56x_CONFIG_LOG_OPTIONS_DEFAULT -#define x86_64_accton_as7326_56x_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT +#ifndef X86_64_ACCTON_AS7326_56X_CONFIG_LOG_OPTIONS_DEFAULT +#define X86_64_ACCTON_AS7326_56X_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT #endif /** - * x86_64_accton_as7326_56x_CONFIG_LOG_BITS_DEFAULT + * X86_64_ACCTON_AS7326_56X_CONFIG_LOG_BITS_DEFAULT * * Default enabled log bits. */ -#ifndef x86_64_accton_as7326_56x_CONFIG_LOG_BITS_DEFAULT -#define x86_64_accton_as7326_56x_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT +#ifndef X86_64_ACCTON_AS7326_56X_CONFIG_LOG_BITS_DEFAULT +#define X86_64_ACCTON_AS7326_56X_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT #endif /** - * x86_64_accton_as7326_56x_CONFIG_LOG_CUSTOM_BITS_DEFAULT + * X86_64_ACCTON_AS7326_56X_CONFIG_LOG_CUSTOM_BITS_DEFAULT * * Default enabled custom log bits. */ -#ifndef x86_64_accton_as7326_56x_CONFIG_LOG_CUSTOM_BITS_DEFAULT -#define x86_64_accton_as7326_56x_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 +#ifndef X86_64_ACCTON_AS7326_56X_CONFIG_LOG_CUSTOM_BITS_DEFAULT +#define X86_64_ACCTON_AS7326_56X_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 #endif /** - * x86_64_accton_as7326_56x_CONFIG_PORTING_STDLIB + * X86_64_ACCTON_AS7326_56X_CONFIG_PORTING_STDLIB * * Default all porting macros to use the C standard libraries. */ -#ifndef x86_64_accton_as7326_56x_CONFIG_PORTING_STDLIB -#define x86_64_accton_as7326_56x_CONFIG_PORTING_STDLIB 1 +#ifndef X86_64_ACCTON_AS7326_56X_CONFIG_PORTING_STDLIB +#define X86_64_ACCTON_AS7326_56X_CONFIG_PORTING_STDLIB 1 #endif /** - * x86_64_accton_as7326_56x_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + * X86_64_ACCTON_AS7326_56X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS * * Include standard library headers for stdlib porting macros. */ -#ifndef x86_64_accton_as7326_56x_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS -#define x86_64_accton_as7326_56x_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS x86_64_accton_as5512_56x_CONFIG_PORTING_STDLIB +#ifndef X86_64_ACCTON_AS7326_56X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS +#define X86_64_ACCTON_AS7326_56X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS X86_64_ACCTON_AS7326_56X_CONFIG_PORTING_STDLIB #endif /** - * x86_64_accton_as7326_56x_CONFIG_INCLUDE_UCLI + * X86_64_ACCTON_AS7326_56X_CONFIG_INCLUDE_UCLI * * Include generic uCli support. */ -#ifndef x86_64_accton_as7326_56x_CONFIG_INCLUDE_UCLI -#define x86_64_accton_as7326_56x_CONFIG_INCLUDE_UCLI 0 +#ifndef X86_64_ACCTON_AS7326_56X_CONFIG_INCLUDE_UCLI +#define X86_64_ACCTON_AS7326_56X_CONFIG_INCLUDE_UCLI 0 #endif /** - * x86_64_accton_as7326_56x_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION + * X86_64_ACCTON_AS7326_56X_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION * * Assume chassis fan direction is the same as the PSU fan direction. */ -#ifndef x86_64_accton_as7326_56x_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION -#define x86_64_accton_as7326_56x_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION 0 +#ifndef X86_64_ACCTON_AS7326_56X_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION +#define X86_64_ACCTON_AS7326_56X_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION 0 #endif @@ -106,32 +106,32 @@ */ /** Configuration settings structure. */ -typedef struct x86_64_accton_as7326_56x_config_settings_s { +typedef struct X86_64_ACCTON_AS7326_56X_CONFIG_settings_s { /** name */ const char* name; /** value */ const char* value; -} x86_64_accton_as7326_56x_config_settings_t; +} X86_64_ACCTON_AS7326_56X_CONFIG_settings_t; /** Configuration settings table. */ -/** x86_64_accton_as7326_56x_config_settings table. */ -extern x86_64_accton_as7326_56x_config_settings_t x86_64_accton_as7326_56x_config_settings[]; +/** X86_64_ACCTON_AS7326_56X_CONFIG_settings table. */ +extern X86_64_ACCTON_AS7326_56X_CONFIG_settings_t X86_64_ACCTON_AS7326_56X_CONFIG_settings[]; /** * @brief Lookup a configuration setting. * @param setting The name of the configuration option to lookup. */ -const char* x86_64_accton_as7326_56x_config_lookup(const char* setting); +const char* _x86_64__a_c_c_t_o_n__a_s7326_56_x__c_o_n_f_i_g_lookup(const char* setting); /** * @brief Show the compile-time configuration. * @param pvs The output stream. */ -int x86_64_accton_as7326_56x_config_show(struct aim_pvs_s* pvs); +int _x86_64__a_c_c_t_o_n__a_s7326_56_x__c_o_n_f_i_g_show(struct aim_pvs_s* pvs); -/* */ +/* */ #include "x86_64_accton_as7326_56x_porting.h" -#endif /* __x86_64_accton_as7326_56x_CONFIG_H__ */ +#endif /* __X86_64_ACCTON_AS7326_56X_CONFIG_H__ */ /* @} */ diff --git a/packages/platforms/accton/x86-64/as7326-56x/onlp/builds/x86_64_accton_as7326_56x/module/inc/x86_64_accton_as7326_56x/x86_64_accton_as7326_56x_porting.h b/packages/platforms/accton/x86-64/as7326-56x/onlp/builds/x86_64_accton_as7326_56x/module/inc/x86_64_accton_as7326_56x/x86_64_accton_as7326_56x_porting.h index 9aa10b55..cfa28f2c 100644 --- a/packages/platforms/accton/x86-64/as7326-56x/onlp/builds/x86_64_accton_as7326_56x/module/inc/x86_64_accton_as7326_56x/x86_64_accton_as7326_56x_porting.h +++ b/packages/platforms/accton/x86-64/as7326-56x/onlp/builds/x86_64_accton_as7326_56x/module/inc/x86_64_accton_as7326_56x/x86_64_accton_as7326_56x_porting.h @@ -12,7 +12,7 @@ /* */ -#if x86_64_accton_as7326_56x_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 +#if X86_64_ACCTON_AS7326_56X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 #include #include #include @@ -20,83 +20,83 @@ #include #endif -#ifndef x86_64_accton_as7326_56x_MALLOC +#ifndef X86_64_ACCTON_AS7326_56X_MALLOC #if defined(GLOBAL_MALLOC) - #define x86_64_accton_as7326_56x_MALLOC GLOBAL_MALLOC - #elif x86_64_accton_as7326_56x_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_as7326_56x_MALLOC malloc + #define X86_64_ACCTON_AS7326_56X_MALLOC GLOBAL_MALLOC + #elif X86_64_ACCTON_AS7326_56X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_AS7326_56X_MALLOC malloc #else - #error The macro x86_64_accton_as7326_56x_MALLOC is required but cannot be defined. + #error The macro X86_64_ACCTON_AS7326_56X_MALLOC is required but cannot be defined. #endif #endif -#ifndef x86_64_accton_as7326_56x_FREE +#ifndef X86_64_ACCTON_AS7326_56X_FREE #if defined(GLOBAL_FREE) - #define x86_64_accton_as7326_56x_FREE GLOBAL_FREE - #elif x86_64_accton_as7326_56x_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_as7326_56x_FREE free + #define X86_64_ACCTON_AS7326_56X_FREE GLOBAL_FREE + #elif X86_64_ACCTON_AS7326_56X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_AS7326_56X_FREE free #else - #error The macro x86_64_accton_as7326_56x_FREE is required but cannot be defined. + #error The macro X86_64_ACCTON_AS7326_56X_FREE is required but cannot be defined. #endif #endif -#ifndef x86_64_accton_as7326_56x_MEMSET +#ifndef X86_64_ACCTON_AS7326_56X_MEMSET #if defined(GLOBAL_MEMSET) - #define x86_64_accton_as7326_56x_MEMSET GLOBAL_MEMSET - #elif x86_64_accton_as7326_56x_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_as7326_56x_MEMSET memset + #define X86_64_ACCTON_AS7326_56X_MEMSET GLOBAL_MEMSET + #elif X86_64_ACCTON_AS7326_56X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_AS7326_56X_MEMSET memset #else - #error The macro x86_64_accton_as7326_56x_MEMSET is required but cannot be defined. + #error The macro X86_64_ACCTON_AS7326_56X_MEMSET is required but cannot be defined. #endif #endif -#ifndef x86_64_accton_as7326_56x_MEMCPY +#ifndef X86_64_ACCTON_AS7326_56X_MEMCPY #if defined(GLOBAL_MEMCPY) - #define x86_64_accton_as7326_56x_MEMCPY GLOBAL_MEMCPY - #elif x86_64_accton_as7326_56x_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_as7326_56x_MEMCPY memcpy + #define X86_64_ACCTON_AS7326_56X_MEMCPY GLOBAL_MEMCPY + #elif X86_64_ACCTON_AS7326_56X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_AS7326_56X_MEMCPY memcpy #else - #error The macro x86_64_accton_as7326_56x_MEMCPY is required but cannot be defined. + #error The macro X86_64_ACCTON_AS7326_56X_MEMCPY is required but cannot be defined. #endif #endif -#ifndef x86_64_accton_as7326_56x_STRNCPY +#ifndef X86_64_ACCTON_AS7326_56X_STRNCPY #if defined(GLOBAL_STRNCPY) - #define x86_64_accton_as7326_56x_STRNCPY GLOBAL_STRNCPY - #elif x86_64_accton_as7326_56x_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_as7326_56x_STRNCPY strncpy + #define X86_64_ACCTON_AS7326_56X_STRNCPY GLOBAL_STRNCPY + #elif X86_64_ACCTON_AS7326_56X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_AS7326_56X_STRNCPY strncpy #else - #error The macro x86_64_accton_as7326_56x_STRNCPY is required but cannot be defined. + #error The macro X86_64_ACCTON_AS7326_56X_STRNCPY is required but cannot be defined. #endif #endif -#ifndef x86_64_accton_as7326_56x_VSNPRINTF +#ifndef X86_64_ACCTON_AS7326_56X_VSNPRINTF #if defined(GLOBAL_VSNPRINTF) - #define x86_64_accton_as7326_56x_VSNPRINTF GLOBAL_VSNPRINTF - #elif x86_64_accton_as7326_56x_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_as7326_56x_VSNPRINTF vsnprintf + #define X86_64_ACCTON_AS7326_56X_VSNPRINTF GLOBAL_VSNPRINTF + #elif X86_64_ACCTON_AS7326_56X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_AS7326_56X_VSNPRINTF vsnprintf #else - #error The macro x86_64_accton_as7326_56x_VSNPRINTF is required but cannot be defined. + #error The macro X86_64_ACCTON_AS7326_56X_VSNPRINTF is required but cannot be defined. #endif #endif -#ifndef x86_64_accton_as7326_56x_SNPRINTF +#ifndef X86_64_ACCTON_AS7326_56X_SNPRINTF #if defined(GLOBAL_SNPRINTF) - #define x86_64_accton_as7326_56x_SNPRINTF GLOBAL_SNPRINTF - #elif x86_64_accton_as7326_56x_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_as7326_56x_SNPRINTF snprintf + #define X86_64_ACCTON_AS7326_56X_SNPRINTF GLOBAL_SNPRINTF + #elif X86_64_ACCTON_AS7326_56X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_AS7326_56X_SNPRINTF snprintf #else - #error The macro x86_64_accton_as7326_56x_SNPRINTF is required but cannot be defined. + #error The macro X86_64_ACCTON_AS7326_56X_SNPRINTF is required but cannot be defined. #endif #endif -#ifndef x86_64_accton_as7326_56x_STRLEN +#ifndef X86_64_ACCTON_AS7326_56X_STRLEN #if defined(GLOBAL_STRLEN) - #define x86_64_accton_as7326_56x_STRLEN GLOBAL_STRLEN - #elif x86_64_accton_as7326_56x_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_as7326_56x_STRLEN strlen + #define X86_64_ACCTON_AS7326_56X_STRLEN GLOBAL_STRLEN + #elif X86_64_ACCTON_AS7326_56X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_AS7326_56X_STRLEN strlen #else - #error The macro x86_64_accton_as7326_56x_STRLEN is required but cannot be defined. + #error The macro X86_64_ACCTON_AS7326_56X_STRLEN is required but cannot be defined. #endif #endif diff --git a/packages/platforms/accton/x86-64/as7326-56x/onlp/builds/x86_64_accton_as7326_56x/module/src/x86_64_accton_as7326_56x_config.c b/packages/platforms/accton/x86-64/as7326-56x/onlp/builds/x86_64_accton_as7326_56x/module/src/x86_64_accton_as7326_56x_config.c index a7e200ad..130be563 100644 --- a/packages/platforms/accton/x86-64/as7326-56x/onlp/builds/x86_64_accton_as7326_56x/module/src/x86_64_accton_as7326_56x_config.c +++ b/packages/platforms/accton/x86-64/as7326-56x/onlp/builds/x86_64_accton_as7326_56x/module/src/x86_64_accton_as7326_56x_config.c @@ -5,77 +5,77 @@ *****************************************************************************/ #include -/* */ -#define __x86_64_accton_as7326_56x_config_STRINGIFY_NAME(_x) #_x -#define __x86_64_accton_as7326_56x_config_STRINGIFY_VALUE(_x) __x86_64_accton_as7326_56x_config_STRINGIFY_NAME(_x) -x86_64_accton_as7326_56x_config_settings_t x86_64_accton_as7326_56x_config_settings[] = +/* */ +#define __X86_64_ACCTON_AS7326_56X_CONFIG_STRINGIFY_NAME(_x) #_x +#define __X86_64_ACCTON_AS7326_56X_CONFIG_STRINGIFY_VALUE(_x) __X86_64_ACCTON_AS7326_56X_CONFIG_STRINGIFY_NAME(_x) +X86_64_ACCTON_AS7326_56X_CONFIG_settings_t X86_64_ACCTON_AS7326_56X_CONFIG_settings[] = { -#ifdef x86_64_accton_as7326_56x_CONFIG_INCLUDE_LOGGING - { __x86_64_accton_as7326_56x_config_STRINGIFY_NAME(x86_64_accton_as7326_56x_CONFIG_INCLUDE_LOGGING), __x86_64_accton_as7326_56x_config_STRINGIFY_VALUE(x86_64_accton_as7326_56x_CONFIG_INCLUDE_LOGGING) }, +#ifdef X86_64_ACCTON_AS7326_56X_CONFIG_INCLUDE_LOGGING + { __X86_64_ACCTON_AS7326_56X_CONFIG_STRINGIFY_NAME(X86_64_ACCTON_AS7326_56X_CONFIG_INCLUDE_LOGGING), __X86_64_ACCTON_AS7326_56X_CONFIG_STRINGIFY_VALUE(X86_64_ACCTON_AS7326_56X_CONFIG_INCLUDE_LOGGING) }, #else -{ x86_64_accton_as7326_56x_CONFIG_INCLUDE_LOGGING(__x86_64_accton_as7326_56x_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_ACCTON_AS7326_56X_CONFIG_INCLUDE_LOGGING(__X86_64_ACCTON_AS7326_56X_CONFIG_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_accton_as7326_56x_CONFIG_LOG_OPTIONS_DEFAULT - { __x86_64_accton_as7326_56x_config_STRINGIFY_NAME(x86_64_accton_as7326_56x_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_accton_as7326_56x_config_STRINGIFY_VALUE(x86_64_accton_as7326_56x_CONFIG_LOG_OPTIONS_DEFAULT) }, +#ifdef X86_64_ACCTON_AS7326_56X_CONFIG_LOG_OPTIONS_DEFAULT + { __X86_64_ACCTON_AS7326_56X_CONFIG_STRINGIFY_NAME(X86_64_ACCTON_AS7326_56X_CONFIG_LOG_OPTIONS_DEFAULT), __X86_64_ACCTON_AS7326_56X_CONFIG_STRINGIFY_VALUE(X86_64_ACCTON_AS7326_56X_CONFIG_LOG_OPTIONS_DEFAULT) }, #else -{ x86_64_accton_as7326_56x_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_accton_as7326_56x_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_ACCTON_AS7326_56X_CONFIG_LOG_OPTIONS_DEFAULT(__X86_64_ACCTON_AS7326_56X_CONFIG_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_accton_as7326_56x_CONFIG_LOG_BITS_DEFAULT - { __x86_64_accton_as7326_56x_config_STRINGIFY_NAME(x86_64_accton_as7326_56x_CONFIG_LOG_BITS_DEFAULT), __x86_64_accton_as7326_56x_config_STRINGIFY_VALUE(x86_64_accton_as7326_56x_CONFIG_LOG_BITS_DEFAULT) }, +#ifdef X86_64_ACCTON_AS7326_56X_CONFIG_LOG_BITS_DEFAULT + { __X86_64_ACCTON_AS7326_56X_CONFIG_STRINGIFY_NAME(X86_64_ACCTON_AS7326_56X_CONFIG_LOG_BITS_DEFAULT), __X86_64_ACCTON_AS7326_56X_CONFIG_STRINGIFY_VALUE(X86_64_ACCTON_AS7326_56X_CONFIG_LOG_BITS_DEFAULT) }, #else -{ x86_64_accton_as7326_56x_CONFIG_LOG_BITS_DEFAULT(__x86_64_accton_as7326_56x_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_ACCTON_AS7326_56X_CONFIG_LOG_BITS_DEFAULT(__X86_64_ACCTON_AS7326_56X_CONFIG_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_accton_as7326_56x_CONFIG_LOG_CUSTOM_BITS_DEFAULT - { __x86_64_accton_as7326_56x_config_STRINGIFY_NAME(x86_64_accton_as7326_56x_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_accton_as7326_56x_config_STRINGIFY_VALUE(x86_64_accton_as7326_56x_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, +#ifdef X86_64_ACCTON_AS7326_56X_CONFIG_LOG_CUSTOM_BITS_DEFAULT + { __X86_64_ACCTON_AS7326_56X_CONFIG_STRINGIFY_NAME(X86_64_ACCTON_AS7326_56X_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __X86_64_ACCTON_AS7326_56X_CONFIG_STRINGIFY_VALUE(X86_64_ACCTON_AS7326_56X_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, #else -{ x86_64_accton_as7326_56x_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_accton_as7326_56x_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_ACCTON_AS7326_56X_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__X86_64_ACCTON_AS7326_56X_CONFIG_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_accton_as7326_56x_CONFIG_PORTING_STDLIB - { __x86_64_accton_as7326_56x_config_STRINGIFY_NAME(x86_64_accton_as7326_56x_CONFIG_PORTING_STDLIB), __x86_64_accton_as7326_56x_config_STRINGIFY_VALUE(x86_64_accton_as7326_56x_CONFIG_PORTING_STDLIB) }, +#ifdef X86_64_ACCTON_AS7326_56X_CONFIG_PORTING_STDLIB + { __X86_64_ACCTON_AS7326_56X_CONFIG_STRINGIFY_NAME(X86_64_ACCTON_AS7326_56X_CONFIG_PORTING_STDLIB), __X86_64_ACCTON_AS7326_56X_CONFIG_STRINGIFY_VALUE(X86_64_ACCTON_AS7326_56X_CONFIG_PORTING_STDLIB) }, #else -{ x86_64_accton_as7326_56x_CONFIG_PORTING_STDLIB(__x86_64_accton_as7326_56x_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_ACCTON_AS7326_56X_CONFIG_PORTING_STDLIB(__X86_64_ACCTON_AS7326_56X_CONFIG_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_accton_as7326_56x_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS - { __x86_64_accton_as7326_56x_config_STRINGIFY_NAME(x86_64_accton_as7326_56x_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_accton_as7326_56x_config_STRINGIFY_VALUE(x86_64_accton_as7326_56x_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, +#ifdef X86_64_ACCTON_AS7326_56X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + { __X86_64_ACCTON_AS7326_56X_CONFIG_STRINGIFY_NAME(X86_64_ACCTON_AS7326_56X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __X86_64_ACCTON_AS7326_56X_CONFIG_STRINGIFY_VALUE(X86_64_ACCTON_AS7326_56X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, #else -{ x86_64_accton_as7326_56x_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_accton_as7326_56x_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_ACCTON_AS7326_56X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__X86_64_ACCTON_AS7326_56X_CONFIG_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_accton_as7326_56x_CONFIG_INCLUDE_UCLI - { __x86_64_accton_as7326_56x_config_STRINGIFY_NAME(x86_64_accton_as7326_56x_CONFIG_INCLUDE_UCLI), __x86_64_accton_as7326_56x_config_STRINGIFY_VALUE(x86_64_accton_as7326_56x_CONFIG_INCLUDE_UCLI) }, +#ifdef X86_64_ACCTON_AS7326_56X_CONFIG_INCLUDE_UCLI + { __X86_64_ACCTON_AS7326_56X_CONFIG_STRINGIFY_NAME(X86_64_ACCTON_AS7326_56X_CONFIG_INCLUDE_UCLI), __X86_64_ACCTON_AS7326_56X_CONFIG_STRINGIFY_VALUE(X86_64_ACCTON_AS7326_56X_CONFIG_INCLUDE_UCLI) }, #else -{ x86_64_accton_as7326_56x_CONFIG_INCLUDE_UCLI(__x86_64_accton_as7326_56x_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_ACCTON_AS7326_56X_CONFIG_INCLUDE_UCLI(__X86_64_ACCTON_AS7326_56X_CONFIG_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_accton_as7326_56x_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION - { __x86_64_accton_as7326_56x_config_STRINGIFY_NAME(x86_64_accton_as7326_56x_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __x86_64_accton_as7326_56x_config_STRINGIFY_VALUE(x86_64_accton_as7326_56x_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, +#ifdef X86_64_ACCTON_AS7326_56X_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION + { __X86_64_ACCTON_AS7326_56X_CONFIG_STRINGIFY_NAME(X86_64_ACCTON_AS7326_56X_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __X86_64_ACCTON_AS7326_56X_CONFIG_STRINGIFY_VALUE(X86_64_ACCTON_AS7326_56X_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, #else -{ x86_64_accton_as7326_56x_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__x86_64_accton_as7326_56x_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_ACCTON_AS7326_56X_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__X86_64_ACCTON_AS7326_56X_CONFIG_STRINGIFY_NAME), "__undefined__" }, #endif { NULL, NULL } }; -#undef __x86_64_accton_as7326_56x_config_STRINGIFY_VALUE -#undef __x86_64_accton_as7326_56x_config_STRINGIFY_NAME +#undef __X86_64_ACCTON_AS7326_56X_CONFIG_STRINGIFY_VALUE +#undef __X86_64_ACCTON_AS7326_56X_CONFIG_STRINGIFY_NAME const char* -x86_64_accton_as7326_56x_config_lookup(const char* setting) +_x86_64__a_c_c_t_o_n__a_s7326_56_x__c_o_n_f_i_g_lookup(const char* setting) { int i; - for(i = 0; x86_64_accton_as7326_56x_config_settings[i].name; i++) { - if(strcmp(x86_64_accton_as7326_56x_config_settings[i].name, setting)) { - return x86_64_accton_as7326_56x_config_settings[i].value; + for(i = 0; X86_64_ACCTON_AS7326_56X_CONFIG_settings[i].name; i++) { + if(!strcmp(X86_64_ACCTON_AS7326_56X_CONFIG_settings[i].name, setting)) { + return X86_64_ACCTON_AS7326_56X_CONFIG_settings[i].value; } } return NULL; } int -x86_64_accton_as7326_56x_config_show(struct aim_pvs_s* pvs) +_x86_64__a_c_c_t_o_n__a_s7326_56_x__c_o_n_f_i_g_show(struct aim_pvs_s* pvs) { int i; - for(i = 0; x86_64_accton_as7326_56x_config_settings[i].name; i++) { - aim_printf(pvs, "%s = %s\n", x86_64_accton_as7326_56x_config_settings[i].name, x86_64_accton_as7326_56x_config_settings[i].value); + for(i = 0; X86_64_ACCTON_AS7326_56X_CONFIG_settings[i].name; i++) { + aim_printf(pvs, "%s = %s\n", X86_64_ACCTON_AS7326_56X_CONFIG_settings[i].name, X86_64_ACCTON_AS7326_56X_CONFIG_settings[i].value); } return i; } -/* */ +/* */ diff --git a/packages/platforms/accton/x86-64/as7326-56x/onlp/builds/x86_64_accton_as7326_56x/module/src/x86_64_accton_as7326_56x_log.c b/packages/platforms/accton/x86-64/as7326-56x/onlp/builds/x86_64_accton_as7326_56x/module/src/x86_64_accton_as7326_56x_log.c index 11fdcb33..5ce84318 100644 --- a/packages/platforms/accton/x86-64/as7326-56x/onlp/builds/x86_64_accton_as7326_56x/module/src/x86_64_accton_as7326_56x_log.c +++ b/packages/platforms/accton/x86-64/as7326-56x/onlp/builds/x86_64_accton_as7326_56x/module/src/x86_64_accton_as7326_56x_log.c @@ -10,9 +10,9 @@ * x86_64_accton_as7326_56x log struct. */ AIM_LOG_STRUCT_DEFINE( - x86_64_accton_as7326_56x_CONFIG_LOG_OPTIONS_DEFAULT, - x86_64_accton_as7326_56x_CONFIG_LOG_BITS_DEFAULT, + X86_64_ACCTON_AS7326_56X_CONFIG_LOG_OPTIONS_DEFAULT, + X86_64_ACCTON_AS7326_56X_CONFIG_LOG_BITS_DEFAULT, NULL, /* Custom log map */ - x86_64_accton_as7326_56x_CONFIG_LOG_CUSTOM_BITS_DEFAULT + X86_64_ACCTON_AS7326_56X_CONFIG_LOG_CUSTOM_BITS_DEFAULT ); diff --git a/packages/platforms/accton/x86-64/as7716-24sc/onlp/builds/x86_64_accton_as7716_24sc/module/inc/x86_64_accton_as7716_24sc/x86_64_accton_as7716_24sc_config.h b/packages/platforms/accton/x86-64/as7716-24sc/onlp/builds/x86_64_accton_as7716_24sc/module/inc/x86_64_accton_as7716_24sc/x86_64_accton_as7716_24sc_config.h index 8685d19e..073254fc 100644 --- a/packages/platforms/accton/x86-64/as7716-24sc/onlp/builds/x86_64_accton_as7716_24sc/module/inc/x86_64_accton_as7716_24sc/x86_64_accton_as7716_24sc_config.h +++ b/packages/platforms/accton/x86-64/as7716-24sc/onlp/builds/x86_64_accton_as7716_24sc/module/inc/x86_64_accton_as7716_24sc/x86_64_accton_as7716_24sc_config.h @@ -18,107 +18,107 @@ #endif /* */ -#include -/** - * X86_64_ACCTON_AS7716_24SC_CONFIG_INCLUDE_LOGGING - * - * Include or exclude logging. */ - - -#ifndef X86_64_ACCTON_AS7716_24SC_CONFIG_INCLUDE_LOGGING -#define X86_64_ACCTON_AS7716_24SC_CONFIG_INCLUDE_LOGGING 1 -#endif - -/** - *X86_64_ACCTON_AS7716_24SC_CONFIG_LOG_OPTIONS_DEFAULT - * - * Default enabled log options. */ - - -#ifndef X86_64_ACCTON_AS7716_24SC_CONFIG_LOG_OPTIONS_DEFAULT -#define X86_64_ACCTON_AS7716_24SC_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT -#endif - -/** - * X86_64_ACCTON_AS7716_24SC_CONFIG_LOG_BITS_DEFAULT - * - * Default enabled log bits. */ - - -#ifndef X86_64_ACCTON_AS7716_24SC_CONFIG_LOG_BITS_DEFAULT -#define X86_64_ACCTON_AS7716_24SC_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT -#endif - -/** - * X86_64_ACCTON_AS7716_24SC_CONFIG_LOG_CUSTOM_BITS_DEFAULT - * - * Default enabled custom log bits. */ - - -#ifndef X86_64_ACCTON_AS7716_24SC_CONFIG_LOG_CUSTOM_BITS_DEFAULT -#define X86_64_ACCTON_AS7716_24SC_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 -#endif - -/** - * X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_STDLIB - * - * Default all porting macros to use the C standard libraries. */ - - -#ifndef X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_STDLIB -#define X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_STDLIB 1 -#endif - -/** - * X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS - * - * Include standard library headers for stdlib porting macros. */ - - -#ifndef X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS -#define X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_STDLIB -#endif - -/** - * X86_64_ACCTON_AS7716_24SC_CONFIG_INCLUDE_UCLI - * - * Include generic uCli support. */ - - -#ifndef X86_64_ACCTON_AS7716_24SC_CONFIG_INCLUDE_UCLI -#define X86_64_ACCTON_AS7716_24SC_CONFIG_INCLUDE_UCLI 0 -#endif - - - -/** - * All compile time options can be queried or displayed - */ - -/** Configuration settings structure. */ -typedef struct x86_64_accton_as7716_24sc_config_settings_s { - /** name */ - const char* name; - /** value */ - const char* value; -} x86_64_accton_as7716_24sc_config_settings_t; - -/** Configuration settings table. */ -/** x86_64_accton_as7716_24sc_config_settings table. */ -extern x86_64_accton_as7716_24sc_config_settings_t x86_64_accton_as7716_24sc_config_settings[]; - -/** - * @brief Lookup a configuration setting. - * @param setting The name of the configuration option to lookup. - */ -const char* x86_64_accton_as7716_24sc_config_lookup(const char* setting); - -/** - * @brief Show the compile-time configuration. - * @param pvs The output stream. - */ -int x86_64_accton_as7716_24sc_config_show(struct aim_pvs_s* pvs); - +#include +/** + * X86_64_ACCTON_AS7716_24SC_CONFIG_INCLUDE_LOGGING + * + * Include or exclude logging. */ + + +#ifndef X86_64_ACCTON_AS7716_24SC_CONFIG_INCLUDE_LOGGING +#define X86_64_ACCTON_AS7716_24SC_CONFIG_INCLUDE_LOGGING 1 +#endif + +/** + * X86_64_ACCTON_AS7716_24SC_CONFIG_LOG_OPTIONS_DEFAULT + * + * Default enabled log options. */ + + +#ifndef X86_64_ACCTON_AS7716_24SC_CONFIG_LOG_OPTIONS_DEFAULT +#define X86_64_ACCTON_AS7716_24SC_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT +#endif + +/** + * X86_64_ACCTON_AS7716_24SC_CONFIG_LOG_BITS_DEFAULT + * + * Default enabled log bits. */ + + +#ifndef X86_64_ACCTON_AS7716_24SC_CONFIG_LOG_BITS_DEFAULT +#define X86_64_ACCTON_AS7716_24SC_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT +#endif + +/** + * X86_64_ACCTON_AS7716_24SC_CONFIG_LOG_CUSTOM_BITS_DEFAULT + * + * Default enabled custom log bits. */ + + +#ifndef X86_64_ACCTON_AS7716_24SC_CONFIG_LOG_CUSTOM_BITS_DEFAULT +#define X86_64_ACCTON_AS7716_24SC_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 +#endif + +/** + * X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_STDLIB + * + * Default all porting macros to use the C standard libraries. */ + + +#ifndef X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_STDLIB +#define X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_STDLIB 1 +#endif + +/** + * X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + * + * Include standard library headers for stdlib porting macros. */ + + +#ifndef X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS +#define X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_STDLIB +#endif + +/** + * X86_64_ACCTON_AS7716_24SC_CONFIG_INCLUDE_UCLI + * + * Include generic uCli support. */ + + +#ifndef X86_64_ACCTON_AS7716_24SC_CONFIG_INCLUDE_UCLI +#define X86_64_ACCTON_AS7716_24SC_CONFIG_INCLUDE_UCLI 0 +#endif + + + +/** + * All compile time options can be queried or displayed + */ + +/** Configuration settings structure. */ +typedef struct x86_64_accton_as7716_24sc_config_settings_s { + /** name */ + const char* name; + /** value */ + const char* value; +} x86_64_accton_as7716_24sc_config_settings_t; + +/** Configuration settings table. */ +/** x86_64_accton_as7716_24sc_config_settings table. */ +extern x86_64_accton_as7716_24sc_config_settings_t x86_64_accton_as7716_24sc_config_settings[]; + +/** + * @brief Lookup a configuration setting. + * @param setting The name of the configuration option to lookup. + */ +const char* x86_64_accton_as7716_24sc_config_lookup(const char* setting); + +/** + * @brief Show the compile-time configuration. + * @param pvs The output stream. + */ +int x86_64_accton_as7716_24sc_config_show(struct aim_pvs_s* pvs); + /* */ #include "x86_64_accton_as7716_24sc_porting.h" diff --git a/packages/platforms/accton/x86-64/as7716-24sc/onlp/builds/x86_64_accton_as7716_24sc/module/inc/x86_64_accton_as7716_24sc/x86_64_accton_as7716_24sc_porting.h b/packages/platforms/accton/x86-64/as7716-24sc/onlp/builds/x86_64_accton_as7716_24sc/module/inc/x86_64_accton_as7716_24sc/x86_64_accton_as7716_24sc_porting.h index a3d0d976..85595738 100644 --- a/packages/platforms/accton/x86-64/as7716-24sc/onlp/builds/x86_64_accton_as7716_24sc/module/inc/x86_64_accton_as7716_24sc/x86_64_accton_as7716_24sc_porting.h +++ b/packages/platforms/accton/x86-64/as7716-24sc/onlp/builds/x86_64_accton_as7716_24sc/module/inc/x86_64_accton_as7716_24sc/x86_64_accton_as7716_24sc_porting.h @@ -12,94 +12,94 @@ /* */ -#if X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 -#include -#include -#include -#include -#include -#endif - -#ifndef X86_64_ACCTON_AS7716_24SC_MALLOC - #if defined(GLOBAL_MALLOC) - #define X86_64_ACCTON_AS7716_24SC_MALLOC GLOBAL_MALLOC - #elif X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_STDLIB == 1 - #define X86_64_ACCTON_AS7716_24SC_MALLOC malloc - #else - #error The macro X86_64_ACCTON_AS7716_24SC_MALLOC is required but cannot be defined. - #endif -#endif - -#ifndef X86_64_ACCTON_AS7716_24SC_FREE - #if defined(GLOBAL_FREE) - #define X86_64_ACCTON_AS7716_24SC_FREE GLOBAL_FREE - #elif X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_STDLIB == 1 - #define X86_64_ACCTON_AS7716_24SC_FREE free - #else - #error The macro X86_64_ACCTON_AS7716_24SC_FREE is required but cannot be defined. - #endif -#endif - -#ifndef X86_64_ACCTON_AS7716_24SC_MEMSET - #if defined(GLOBAL_MEMSET) - #define X86_64_ACCTON_AS7716_24SC_MEMSET GLOBAL_MEMSET - #elif X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_STDLIB == 1 - #define X86_64_ACCTON_AS7716_24SC_MEMSET memset - #else - #error The macro X86_64_ACCTON_AS7716_24SC_MEMSET is required but cannot be defined. - #endif -#endif - -#ifndef X86_64_ACCTON_AS7716_24SC_MEMCPY - #if defined(GLOBAL_MEMCPY) - #define X86_64_ACCTON_AS7716_24SC_MEMCPY GLOBAL_MEMCPY - #elif X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_STDLIB == 1 - #define X86_64_ACCTON_AS7716_24SC_MEMCPY memcpy - #else - #error The macro X86_64_ACCTON_AS7716_24SC_MEMCPY is required but cannot be defined. - #endif -#endif - -#ifndef X86_64_ACCTON_AS7716_24SC_STRNCPY - #if defined(GLOBAL_STRNCPY) - #define X86_64_ACCTON_AS7716_24SC_STRNCPY GLOBAL_STRNCPY - #elif X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_STDLIB == 1 - #define X86_64_ACCTON_AS7716_24SC_STRNCPY strncpy - #else - #error The macro X86_64_ACCTON_AS7716_24SC_STRNCPY is required but cannot be defined. - #endif -#endif - -#ifndef X86_64_ACCTON_AS7716_24SC_VSNPRINTF - #if defined(GLOBAL_VSNPRINTF) - #define X86_64_ACCTON_AS7716_24SC_VSNPRINTF GLOBAL_VSNPRINTF - #elif X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_STDLIB == 1 - #define X86_64_ACCTON_AS7716_24SC_VSNPRINTF vsnprintf - #else - #error The macro X86_64_ACCTON_AS7716_24SC_VSNPRINTF is required but cannot be defined. - #endif -#endif - -#ifndef X86_64_ACCTON_AS7716_24SC_SNPRINTF - #if defined(GLOBAL_SNPRINTF) - #define X86_64_ACCTON_AS7716_24SC_SNPRINTF GLOBAL_SNPRINTF - #elif X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_STDLIB == 1 - #define X86_64_ACCTON_AS7716_24SC_SNPRINTF snprintf - #else - #error The macro X86_64_ACCTON_AS7716_24SC_SNPRINTF is required but cannot be defined. - #endif -#endif - -#ifndef X86_64_ACCTON_AS7716_24SC_STRLEN - #if defined(GLOBAL_STRLEN) - #define X86_64_ACCTON_AS7716_24SC_STRLEN GLOBAL_STRLEN - #elif X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_STDLIB == 1 - #define X86_64_ACCTON_AS7716_24SC_STRLEN strlen - #else - #error The macro X86_64_ACCTON_AS7716_24SC_STRLEN is required but cannot be defined. - #endif -#endif - +#if X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 +#include +#include +#include +#include +#include +#endif + +#ifndef X86_64_ACCTON_AS7716_24SC_MALLOC + #if defined(GLOBAL_MALLOC) + #define X86_64_ACCTON_AS7716_24SC_MALLOC GLOBAL_MALLOC + #elif X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_AS7716_24SC_MALLOC malloc + #else + #error The macro X86_64_ACCTON_AS7716_24SC_MALLOC is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_AS7716_24SC_FREE + #if defined(GLOBAL_FREE) + #define X86_64_ACCTON_AS7716_24SC_FREE GLOBAL_FREE + #elif X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_AS7716_24SC_FREE free + #else + #error The macro X86_64_ACCTON_AS7716_24SC_FREE is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_AS7716_24SC_MEMSET + #if defined(GLOBAL_MEMSET) + #define X86_64_ACCTON_AS7716_24SC_MEMSET GLOBAL_MEMSET + #elif X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_AS7716_24SC_MEMSET memset + #else + #error The macro X86_64_ACCTON_AS7716_24SC_MEMSET is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_AS7716_24SC_MEMCPY + #if defined(GLOBAL_MEMCPY) + #define X86_64_ACCTON_AS7716_24SC_MEMCPY GLOBAL_MEMCPY + #elif X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_AS7716_24SC_MEMCPY memcpy + #else + #error The macro X86_64_ACCTON_AS7716_24SC_MEMCPY is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_AS7716_24SC_STRNCPY + #if defined(GLOBAL_STRNCPY) + #define X86_64_ACCTON_AS7716_24SC_STRNCPY GLOBAL_STRNCPY + #elif X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_AS7716_24SC_STRNCPY strncpy + #else + #error The macro X86_64_ACCTON_AS7716_24SC_STRNCPY is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_AS7716_24SC_VSNPRINTF + #if defined(GLOBAL_VSNPRINTF) + #define X86_64_ACCTON_AS7716_24SC_VSNPRINTF GLOBAL_VSNPRINTF + #elif X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_AS7716_24SC_VSNPRINTF vsnprintf + #else + #error The macro X86_64_ACCTON_AS7716_24SC_VSNPRINTF is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_AS7716_24SC_SNPRINTF + #if defined(GLOBAL_SNPRINTF) + #define X86_64_ACCTON_AS7716_24SC_SNPRINTF GLOBAL_SNPRINTF + #elif X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_AS7716_24SC_SNPRINTF snprintf + #else + #error The macro X86_64_ACCTON_AS7716_24SC_SNPRINTF is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_AS7716_24SC_STRLEN + #if defined(GLOBAL_STRLEN) + #define X86_64_ACCTON_AS7716_24SC_STRLEN GLOBAL_STRLEN + #elif X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_AS7716_24SC_STRLEN strlen + #else + #error The macro X86_64_ACCTON_AS7716_24SC_STRLEN is required but cannot be defined. + #endif +#endif + /* */ diff --git a/packages/platforms/accton/x86-64/as7716-24sc/onlp/builds/x86_64_accton_as7716_24sc/module/src/x86_64_accton_as7716_24sc_config.c b/packages/platforms/accton/x86-64/as7716-24sc/onlp/builds/x86_64_accton_as7716_24sc/module/src/x86_64_accton_as7716_24sc_config.c index f63b55a3..fcd81c1c 100644 --- a/packages/platforms/accton/x86-64/as7716-24sc/onlp/builds/x86_64_accton_as7716_24sc/module/src/x86_64_accton_as7716_24sc_config.c +++ b/packages/platforms/accton/x86-64/as7716-24sc/onlp/builds/x86_64_accton_as7716_24sc/module/src/x86_64_accton_as7716_24sc_config.c @@ -6,71 +6,71 @@ #include /* */ -#define __x86_64_accton_as7716_24sc_config_STRINGIFY_NAME(_x) #_x -#define __x86_64_accton_as7716_24sc_config_STRINGIFY_VALUE(_x) __x86_64_accton_as7716_24sc_config_STRINGIFY_NAME(_x) -x86_64_accton_as7716_24sc_config_settings_t x86_64_accton_as7716_24sc_config_settings[] = -{ -#ifdef X86_64_ACCTON_AS7716_24SC_CONFIG_INCLUDE_LOGGING - { __x86_64_accton_as7716_24sc_config_STRINGIFY_NAME(X86_64_ACCTON_AS7716_24SC_CONFIG_INCLUDE_LOGGING), __x86_64_accton_as7716_24sc_config_STRINGIFY_VALUE(X86_64_ACCTON_AS7716_24SC_CONFIG_INCLUDE_LOGGING) }, -#else -{ X86_64_ACCTON_AS7716_24SC_CONFIG_INCLUDE_LOGGING(__x86_64_accton_as7716_24sc_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef X86_64_ACCTON_AS7716_24SC_CONFIG_LOG_OPTIONS_DEFAULT - { __x86_64_accton_as7716_24sc_config_STRINGIFY_NAME(X86_64_ACCTON_AS7716_24SC_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_accton_as7716_24sc_config_STRINGIFY_VALUE(X86_64_ACCTON_AS7716_24SC_CONFIG_LOG_OPTIONS_DEFAULT) }, -#else -{ X86_64_ACCTON_AS7716_24SC_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_accton_as7716_24sc_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef X86_64_ACCTON_AS7716_24SC_CONFIG_LOG_BITS_DEFAULT - { __x86_64_accton_as7716_24sc_config_STRINGIFY_NAME(X86_64_ACCTON_AS7716_24SC_CONFIG_LOG_BITS_DEFAULT), __x86_64_accton_as7716_24sc_config_STRINGIFY_VALUE(X86_64_ACCTON_AS7716_24SC_CONFIG_LOG_BITS_DEFAULT) }, -#else -{ X86_64_ACCTON_AS7716_24SC_CONFIG_LOG_BITS_DEFAULT(__x86_64_accton_as7716_24sc_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef X86_64_ACCTON_AS7716_24SC_CONFIG_LOG_CUSTOM_BITS_DEFAULT - { __x86_64_accton_as7716_24sc_config_STRINGIFY_NAME(X86_64_ACCTON_AS7716_24SC_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_accton_as7716_24sc_config_STRINGIFY_VALUE(X86_64_ACCTON_AS7716_24SC_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, -#else -{ X86_64_ACCTON_AS7716_24SC_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_accton_as7716_24sc_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_STDLIB - { __x86_64_accton_as7716_24sc_config_STRINGIFY_NAME(X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_STDLIB), __x86_64_accton_as7716_24sc_config_STRINGIFY_VALUE(X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_STDLIB) }, -#else -{ X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_STDLIB(__x86_64_accton_as7716_24sc_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS - { __x86_64_accton_as7716_24sc_config_STRINGIFY_NAME(X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_accton_as7716_24sc_config_STRINGIFY_VALUE(X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, -#else -{ X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_accton_as7716_24sc_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef X86_64_ACCTON_AS7716_24SC_CONFIG_INCLUDE_UCLI - { __x86_64_accton_as7716_24sc_config_STRINGIFY_NAME(X86_64_ACCTON_AS7716_24SC_CONFIG_INCLUDE_UCLI), __x86_64_accton_as7716_24sc_config_STRINGIFY_VALUE(X86_64_ACCTON_AS7716_24SC_CONFIG_INCLUDE_UCLI) }, -#else -{ X86_64_ACCTON_AS7716_24SC_CONFIG_INCLUDE_UCLI(__x86_64_accton_as7716_24sc_config_STRINGIFY_NAME), "__undefined__" }, -#endif - { NULL, NULL } -}; -#undef __x86_64_accton_as7716_24sc_config_STRINGIFY_VALUE -#undef __x86_64_accton_as7716_24sc_config_STRINGIFY_NAME - -const char* -x86_64_accton_as7716_24sc_config_lookup(const char* setting) -{ - int i; - for(i = 0; x86_64_accton_as7716_24sc_config_settings[i].name; i++) { - if(strcmp(x86_64_accton_as7716_24sc_config_settings[i].name, setting)) { - return x86_64_accton_as7716_24sc_config_settings[i].value; - } - } - return NULL; -} - -int -x86_64_accton_as7716_24sc_config_show(struct aim_pvs_s* pvs) -{ - int i; - for(i = 0; x86_64_accton_as7716_24sc_config_settings[i].name; i++) { - aim_printf(pvs, "%s = %s\n", x86_64_accton_as7716_24sc_config_settings[i].name, x86_64_accton_as7716_24sc_config_settings[i].value); - } - return i; -} - +#define __x86_64_accton_as7716_24sc_config_STRINGIFY_NAME(_x) #_x +#define __x86_64_accton_as7716_24sc_config_STRINGIFY_VALUE(_x) __x86_64_accton_as7716_24sc_config_STRINGIFY_NAME(_x) +x86_64_accton_as7716_24sc_config_settings_t x86_64_accton_as7716_24sc_config_settings[] = +{ +#ifdef X86_64_ACCTON_AS7716_24SC_CONFIG_INCLUDE_LOGGING + { __x86_64_accton_as7716_24sc_config_STRINGIFY_NAME(X86_64_ACCTON_AS7716_24SC_CONFIG_INCLUDE_LOGGING), __x86_64_accton_as7716_24sc_config_STRINGIFY_VALUE(X86_64_ACCTON_AS7716_24SC_CONFIG_INCLUDE_LOGGING) }, +#else +{ X86_64_ACCTON_AS7716_24SC_CONFIG_INCLUDE_LOGGING(__x86_64_accton_as7716_24sc_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_AS7716_24SC_CONFIG_LOG_OPTIONS_DEFAULT + { __x86_64_accton_as7716_24sc_config_STRINGIFY_NAME(X86_64_ACCTON_AS7716_24SC_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_accton_as7716_24sc_config_STRINGIFY_VALUE(X86_64_ACCTON_AS7716_24SC_CONFIG_LOG_OPTIONS_DEFAULT) }, +#else +{ X86_64_ACCTON_AS7716_24SC_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_accton_as7716_24sc_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_AS7716_24SC_CONFIG_LOG_BITS_DEFAULT + { __x86_64_accton_as7716_24sc_config_STRINGIFY_NAME(X86_64_ACCTON_AS7716_24SC_CONFIG_LOG_BITS_DEFAULT), __x86_64_accton_as7716_24sc_config_STRINGIFY_VALUE(X86_64_ACCTON_AS7716_24SC_CONFIG_LOG_BITS_DEFAULT) }, +#else +{ X86_64_ACCTON_AS7716_24SC_CONFIG_LOG_BITS_DEFAULT(__x86_64_accton_as7716_24sc_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_AS7716_24SC_CONFIG_LOG_CUSTOM_BITS_DEFAULT + { __x86_64_accton_as7716_24sc_config_STRINGIFY_NAME(X86_64_ACCTON_AS7716_24SC_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_accton_as7716_24sc_config_STRINGIFY_VALUE(X86_64_ACCTON_AS7716_24SC_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, +#else +{ X86_64_ACCTON_AS7716_24SC_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_accton_as7716_24sc_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_STDLIB + { __x86_64_accton_as7716_24sc_config_STRINGIFY_NAME(X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_STDLIB), __x86_64_accton_as7716_24sc_config_STRINGIFY_VALUE(X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_STDLIB) }, +#else +{ X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_STDLIB(__x86_64_accton_as7716_24sc_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + { __x86_64_accton_as7716_24sc_config_STRINGIFY_NAME(X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_accton_as7716_24sc_config_STRINGIFY_VALUE(X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, +#else +{ X86_64_ACCTON_AS7716_24SC_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_accton_as7716_24sc_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_AS7716_24SC_CONFIG_INCLUDE_UCLI + { __x86_64_accton_as7716_24sc_config_STRINGIFY_NAME(X86_64_ACCTON_AS7716_24SC_CONFIG_INCLUDE_UCLI), __x86_64_accton_as7716_24sc_config_STRINGIFY_VALUE(X86_64_ACCTON_AS7716_24SC_CONFIG_INCLUDE_UCLI) }, +#else +{ X86_64_ACCTON_AS7716_24SC_CONFIG_INCLUDE_UCLI(__x86_64_accton_as7716_24sc_config_STRINGIFY_NAME), "__undefined__" }, +#endif + { NULL, NULL } +}; +#undef __x86_64_accton_as7716_24sc_config_STRINGIFY_VALUE +#undef __x86_64_accton_as7716_24sc_config_STRINGIFY_NAME + +const char* +x86_64_accton_as7716_24sc_config_lookup(const char* setting) +{ + int i; + for(i = 0; x86_64_accton_as7716_24sc_config_settings[i].name; i++) { + if(!strcmp(x86_64_accton_as7716_24sc_config_settings[i].name, setting)) { + return x86_64_accton_as7716_24sc_config_settings[i].value; + } + } + return NULL; +} + +int +x86_64_accton_as7716_24sc_config_show(struct aim_pvs_s* pvs) +{ + int i; + for(i = 0; x86_64_accton_as7716_24sc_config_settings[i].name; i++) { + aim_printf(pvs, "%s = %s\n", x86_64_accton_as7716_24sc_config_settings[i].name, x86_64_accton_as7716_24sc_config_settings[i].value); + } + return i; +} + /* */ diff --git a/packages/platforms/accton/x86-64/as7716-24xc/onlp/builds/x86_64_accton_as7716_24xc/module/inc/x86_64_accton_as7716_24xc/x86_64_accton_as7716_24xc_config.h b/packages/platforms/accton/x86-64/as7716-24xc/onlp/builds/x86_64_accton_as7716_24xc/module/inc/x86_64_accton_as7716_24xc/x86_64_accton_as7716_24xc_config.h index b09447f4..b68bf406 100644 --- a/packages/platforms/accton/x86-64/as7716-24xc/onlp/builds/x86_64_accton_as7716_24xc/module/inc/x86_64_accton_as7716_24xc/x86_64_accton_as7716_24xc_config.h +++ b/packages/platforms/accton/x86-64/as7716-24xc/onlp/builds/x86_64_accton_as7716_24xc/module/inc/x86_64_accton_as7716_24xc/x86_64_accton_as7716_24xc_config.h @@ -18,107 +18,107 @@ #endif /* */ -#include -/** - * X86_64_ACCTON_AS7716_24XC_CONFIG_INCLUDE_LOGGING - * - * Include or exclude logging. */ - - -#ifndef X86_64_ACCTON_AS7716_24XC_CONFIG_INCLUDE_LOGGING -#define X86_64_ACCTON_AS7716_24XC_CONFIG_INCLUDE_LOGGING 1 -#endif - -/** - *X86_64_ACCTON_AS7716_24XC_CONFIG_LOG_OPTIONS_DEFAULT - * - * Default enabled log options. */ - - -#ifndef X86_64_ACCTON_AS7716_24XC_CONFIG_LOG_OPTIONS_DEFAULT -#define X86_64_ACCTON_AS7716_24XC_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT -#endif - -/** - * X86_64_ACCTON_AS7716_24XC_CONFIG_LOG_BITS_DEFAULT - * - * Default enabled log bits. */ - - -#ifndef X86_64_ACCTON_AS7716_24XC_CONFIG_LOG_BITS_DEFAULT -#define X86_64_ACCTON_AS7716_24XC_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT -#endif - -/** - * X86_64_ACCTON_AS7716_24XC_CONFIG_LOG_CUSTOM_BITS_DEFAULT - * - * Default enabled custom log bits. */ - - -#ifndef X86_64_ACCTON_AS7716_24XC_CONFIG_LOG_CUSTOM_BITS_DEFAULT -#define X86_64_ACCTON_AS7716_24XC_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 -#endif - -/** - * X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_STDLIB - * - * Default all porting macros to use the C standard libraries. */ - - -#ifndef X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_STDLIB -#define X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_STDLIB 1 -#endif - -/** - * X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS - * - * Include standard library headers for stdlib porting macros. */ - - -#ifndef X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS -#define X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_STDLIB -#endif - -/** - * X86_64_ACCTON_AS7716_24XC_CONFIG_INCLUDE_UCLI - * - * Include generic uCli support. */ - - -#ifndef X86_64_ACCTON_AS7716_24XC_CONFIG_INCLUDE_UCLI -#define X86_64_ACCTON_AS7716_24XC_CONFIG_INCLUDE_UCLI 0 -#endif - - - -/** - * All compile time options can be queried or displayed - */ - -/** Configuration settings structure. */ -typedef struct x86_64_accton_as7716_24xc_config_settings_s { - /** name */ - const char* name; - /** value */ - const char* value; -} x86_64_accton_as7716_24xc_config_settings_t; - -/** Configuration settings table. */ -/** x86_64_accton_as7716_24xc_config_settings table. */ -extern x86_64_accton_as7716_24xc_config_settings_t x86_64_accton_as7716_24xc_config_settings[]; - -/** - * @brief Lookup a configuration setting. - * @param setting The name of the configuration option to lookup. - */ -const char* x86_64_accton_as7716_24xc_config_lookup(const char* setting); - -/** - * @brief Show the compile-time configuration. - * @param pvs The output stream. - */ -int x86_64_accton_as7716_24xc_config_show(struct aim_pvs_s* pvs); - +#include +/** + * X86_64_ACCTON_AS7716_24XC_CONFIG_INCLUDE_LOGGING + * + * Include or exclude logging. */ + + +#ifndef X86_64_ACCTON_AS7716_24XC_CONFIG_INCLUDE_LOGGING +#define X86_64_ACCTON_AS7716_24XC_CONFIG_INCLUDE_LOGGING 1 +#endif + +/** + * X86_64_ACCTON_AS7716_24XC_CONFIG_LOG_OPTIONS_DEFAULT + * + * Default enabled log options. */ + + +#ifndef X86_64_ACCTON_AS7716_24XC_CONFIG_LOG_OPTIONS_DEFAULT +#define X86_64_ACCTON_AS7716_24XC_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT +#endif + +/** + * X86_64_ACCTON_AS7716_24XC_CONFIG_LOG_BITS_DEFAULT + * + * Default enabled log bits. */ + + +#ifndef X86_64_ACCTON_AS7716_24XC_CONFIG_LOG_BITS_DEFAULT +#define X86_64_ACCTON_AS7716_24XC_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT +#endif + +/** + * X86_64_ACCTON_AS7716_24XC_CONFIG_LOG_CUSTOM_BITS_DEFAULT + * + * Default enabled custom log bits. */ + + +#ifndef X86_64_ACCTON_AS7716_24XC_CONFIG_LOG_CUSTOM_BITS_DEFAULT +#define X86_64_ACCTON_AS7716_24XC_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 +#endif + +/** + * X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_STDLIB + * + * Default all porting macros to use the C standard libraries. */ + + +#ifndef X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_STDLIB +#define X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_STDLIB 1 +#endif + +/** + * X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + * + * Include standard library headers for stdlib porting macros. */ + + +#ifndef X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS +#define X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_STDLIB +#endif + +/** + * X86_64_ACCTON_AS7716_24XC_CONFIG_INCLUDE_UCLI + * + * Include generic uCli support. */ + + +#ifndef X86_64_ACCTON_AS7716_24XC_CONFIG_INCLUDE_UCLI +#define X86_64_ACCTON_AS7716_24XC_CONFIG_INCLUDE_UCLI 0 +#endif + + + +/** + * All compile time options can be queried or displayed + */ + +/** Configuration settings structure. */ +typedef struct x86_64_accton_as7716_24xc_config_settings_s { + /** name */ + const char* name; + /** value */ + const char* value; +} x86_64_accton_as7716_24xc_config_settings_t; + +/** Configuration settings table. */ +/** x86_64_accton_as7716_24xc_config_settings table. */ +extern x86_64_accton_as7716_24xc_config_settings_t x86_64_accton_as7716_24xc_config_settings[]; + +/** + * @brief Lookup a configuration setting. + * @param setting The name of the configuration option to lookup. + */ +const char* x86_64_accton_as7716_24xc_config_lookup(const char* setting); + +/** + * @brief Show the compile-time configuration. + * @param pvs The output stream. + */ +int x86_64_accton_as7716_24xc_config_show(struct aim_pvs_s* pvs); + /* */ #include "x86_64_accton_as7716_24xc_porting.h" diff --git a/packages/platforms/accton/x86-64/as7716-24xc/onlp/builds/x86_64_accton_as7716_24xc/module/inc/x86_64_accton_as7716_24xc/x86_64_accton_as7716_24xc_porting.h b/packages/platforms/accton/x86-64/as7716-24xc/onlp/builds/x86_64_accton_as7716_24xc/module/inc/x86_64_accton_as7716_24xc/x86_64_accton_as7716_24xc_porting.h index c3735816..ce1da04a 100644 --- a/packages/platforms/accton/x86-64/as7716-24xc/onlp/builds/x86_64_accton_as7716_24xc/module/inc/x86_64_accton_as7716_24xc/x86_64_accton_as7716_24xc_porting.h +++ b/packages/platforms/accton/x86-64/as7716-24xc/onlp/builds/x86_64_accton_as7716_24xc/module/inc/x86_64_accton_as7716_24xc/x86_64_accton_as7716_24xc_porting.h @@ -12,94 +12,94 @@ /* */ -#if X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 -#include -#include -#include -#include -#include -#endif - -#ifndef X86_64_ACCTON_AS7716_24XC_MALLOC - #if defined(GLOBAL_MALLOC) - #define X86_64_ACCTON_AS7716_24XC_MALLOC GLOBAL_MALLOC - #elif X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_STDLIB == 1 - #define X86_64_ACCTON_AS7716_24XC_MALLOC malloc - #else - #error The macro X86_64_ACCTON_AS7716_24XC_MALLOC is required but cannot be defined. - #endif -#endif - -#ifndef X86_64_ACCTON_AS7716_24XC_FREE - #if defined(GLOBAL_FREE) - #define X86_64_ACCTON_AS7716_24XC_FREE GLOBAL_FREE - #elif X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_STDLIB == 1 - #define X86_64_ACCTON_AS7716_24XC_FREE free - #else - #error The macro X86_64_ACCTON_AS7716_24XC_FREE is required but cannot be defined. - #endif -#endif - -#ifndef X86_64_ACCTON_AS7716_24XC_MEMSET - #if defined(GLOBAL_MEMSET) - #define X86_64_ACCTON_AS7716_24XC_MEMSET GLOBAL_MEMSET - #elif X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_STDLIB == 1 - #define X86_64_ACCTON_AS7716_24XC_MEMSET memset - #else - #error The macro X86_64_ACCTON_AS7716_24XC_MEMSET is required but cannot be defined. - #endif -#endif - -#ifndef X86_64_ACCTON_AS7716_24XC_MEMCPY - #if defined(GLOBAL_MEMCPY) - #define X86_64_ACCTON_AS7716_24XC_MEMCPY GLOBAL_MEMCPY - #elif X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_STDLIB == 1 - #define X86_64_ACCTON_AS7716_24XC_MEMCPY memcpy - #else - #error The macro X86_64_ACCTON_AS7716_24XC_MEMCPY is required but cannot be defined. - #endif -#endif - -#ifndef X86_64_ACCTON_AS7716_24XC_STRNCPY - #if defined(GLOBAL_STRNCPY) - #define X86_64_ACCTON_AS7716_24XC_STRNCPY GLOBAL_STRNCPY - #elif X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_STDLIB == 1 - #define X86_64_ACCTON_AS7716_24XC_STRNCPY strncpy - #else - #error The macro X86_64_ACCTON_AS7716_24XC_STRNCPY is required but cannot be defined. - #endif -#endif - -#ifndef X86_64_ACCTON_AS7716_24XC_VSNPRINTF - #if defined(GLOBAL_VSNPRINTF) - #define X86_64_ACCTON_AS7716_24XC_VSNPRINTF GLOBAL_VSNPRINTF - #elif X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_STDLIB == 1 - #define X86_64_ACCTON_AS7716_24XC_VSNPRINTF vsnprintf - #else - #error The macro X86_64_ACCTON_AS7716_24XC_VSNPRINTF is required but cannot be defined. - #endif -#endif - -#ifndef X86_64_ACCTON_AS7716_24XC_SNPRINTF - #if defined(GLOBAL_SNPRINTF) - #define X86_64_ACCTON_AS7716_24XC_SNPRINTF GLOBAL_SNPRINTF - #elif X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_STDLIB == 1 - #define X86_64_ACCTON_AS7716_24XC_SNPRINTF snprintf - #else - #error The macro X86_64_ACCTON_AS7716_24XC_SNPRINTF is required but cannot be defined. - #endif -#endif - -#ifndef X86_64_ACCTON_AS7716_24XC_STRLEN - #if defined(GLOBAL_STRLEN) - #define X86_64_ACCTON_AS7716_24XC_STRLEN GLOBAL_STRLEN - #elif X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_STDLIB == 1 - #define X86_64_ACCTON_AS7716_24XC_STRLEN strlen - #else - #error The macro X86_64_ACCTON_AS7716_24XC_STRLEN is required but cannot be defined. - #endif -#endif - +#if X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 +#include +#include +#include +#include +#include +#endif + +#ifndef X86_64_ACCTON_AS7716_24XC_MALLOC + #if defined(GLOBAL_MALLOC) + #define X86_64_ACCTON_AS7716_24XC_MALLOC GLOBAL_MALLOC + #elif X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_AS7716_24XC_MALLOC malloc + #else + #error The macro X86_64_ACCTON_AS7716_24XC_MALLOC is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_AS7716_24XC_FREE + #if defined(GLOBAL_FREE) + #define X86_64_ACCTON_AS7716_24XC_FREE GLOBAL_FREE + #elif X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_AS7716_24XC_FREE free + #else + #error The macro X86_64_ACCTON_AS7716_24XC_FREE is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_AS7716_24XC_MEMSET + #if defined(GLOBAL_MEMSET) + #define X86_64_ACCTON_AS7716_24XC_MEMSET GLOBAL_MEMSET + #elif X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_AS7716_24XC_MEMSET memset + #else + #error The macro X86_64_ACCTON_AS7716_24XC_MEMSET is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_AS7716_24XC_MEMCPY + #if defined(GLOBAL_MEMCPY) + #define X86_64_ACCTON_AS7716_24XC_MEMCPY GLOBAL_MEMCPY + #elif X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_AS7716_24XC_MEMCPY memcpy + #else + #error The macro X86_64_ACCTON_AS7716_24XC_MEMCPY is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_AS7716_24XC_STRNCPY + #if defined(GLOBAL_STRNCPY) + #define X86_64_ACCTON_AS7716_24XC_STRNCPY GLOBAL_STRNCPY + #elif X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_AS7716_24XC_STRNCPY strncpy + #else + #error The macro X86_64_ACCTON_AS7716_24XC_STRNCPY is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_AS7716_24XC_VSNPRINTF + #if defined(GLOBAL_VSNPRINTF) + #define X86_64_ACCTON_AS7716_24XC_VSNPRINTF GLOBAL_VSNPRINTF + #elif X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_AS7716_24XC_VSNPRINTF vsnprintf + #else + #error The macro X86_64_ACCTON_AS7716_24XC_VSNPRINTF is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_AS7716_24XC_SNPRINTF + #if defined(GLOBAL_SNPRINTF) + #define X86_64_ACCTON_AS7716_24XC_SNPRINTF GLOBAL_SNPRINTF + #elif X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_AS7716_24XC_SNPRINTF snprintf + #else + #error The macro X86_64_ACCTON_AS7716_24XC_SNPRINTF is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_AS7716_24XC_STRLEN + #if defined(GLOBAL_STRLEN) + #define X86_64_ACCTON_AS7716_24XC_STRLEN GLOBAL_STRLEN + #elif X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_AS7716_24XC_STRLEN strlen + #else + #error The macro X86_64_ACCTON_AS7716_24XC_STRLEN is required but cannot be defined. + #endif +#endif + /* */ diff --git a/packages/platforms/accton/x86-64/as7716-24xc/onlp/builds/x86_64_accton_as7716_24xc/module/src/x86_64_accton_as7716_24xc_config.c b/packages/platforms/accton/x86-64/as7716-24xc/onlp/builds/x86_64_accton_as7716_24xc/module/src/x86_64_accton_as7716_24xc_config.c index 5aeb8f69..75c74375 100644 --- a/packages/platforms/accton/x86-64/as7716-24xc/onlp/builds/x86_64_accton_as7716_24xc/module/src/x86_64_accton_as7716_24xc_config.c +++ b/packages/platforms/accton/x86-64/as7716-24xc/onlp/builds/x86_64_accton_as7716_24xc/module/src/x86_64_accton_as7716_24xc_config.c @@ -6,71 +6,71 @@ #include /* */ -#define __x86_64_accton_as7716_24xc_config_STRINGIFY_NAME(_x) #_x -#define __x86_64_accton_as7716_24xc_config_STRINGIFY_VALUE(_x) __x86_64_accton_as7716_24xc_config_STRINGIFY_NAME(_x) -x86_64_accton_as7716_24xc_config_settings_t x86_64_accton_as7716_24xc_config_settings[] = -{ -#ifdef X86_64_ACCTON_AS7716_24XC_CONFIG_INCLUDE_LOGGING - { __x86_64_accton_as7716_24xc_config_STRINGIFY_NAME(X86_64_ACCTON_AS7716_24XC_CONFIG_INCLUDE_LOGGING), __x86_64_accton_as7716_24xc_config_STRINGIFY_VALUE(X86_64_ACCTON_AS7716_24XC_CONFIG_INCLUDE_LOGGING) }, -#else -{ X86_64_ACCTON_AS7716_24XC_CONFIG_INCLUDE_LOGGING(__x86_64_accton_as7716_24xc_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef X86_64_ACCTON_AS7716_24XC_CONFIG_LOG_OPTIONS_DEFAULT - { __x86_64_accton_as7716_24xc_config_STRINGIFY_NAME(X86_64_ACCTON_AS7716_24XC_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_accton_as7716_24xc_config_STRINGIFY_VALUE(X86_64_ACCTON_AS7716_24XC_CONFIG_LOG_OPTIONS_DEFAULT) }, -#else -{ X86_64_ACCTON_AS7716_24XC_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_accton_as7716_24xc_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef X86_64_ACCTON_AS7716_24XC_CONFIG_LOG_BITS_DEFAULT - { __x86_64_accton_as7716_24xc_config_STRINGIFY_NAME(X86_64_ACCTON_AS7716_24XC_CONFIG_LOG_BITS_DEFAULT), __x86_64_accton_as7716_24xc_config_STRINGIFY_VALUE(X86_64_ACCTON_AS7716_24XC_CONFIG_LOG_BITS_DEFAULT) }, -#else -{ X86_64_ACCTON_AS7716_24XC_CONFIG_LOG_BITS_DEFAULT(__x86_64_accton_as7716_24xc_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef X86_64_ACCTON_AS7716_24XC_CONFIG_LOG_CUSTOM_BITS_DEFAULT - { __x86_64_accton_as7716_24xc_config_STRINGIFY_NAME(X86_64_ACCTON_AS7716_24XC_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_accton_as7716_24xc_config_STRINGIFY_VALUE(X86_64_ACCTON_AS7716_24XC_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, -#else -{ X86_64_ACCTON_AS7716_24XC_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_accton_as7716_24xc_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_STDLIB - { __x86_64_accton_as7716_24xc_config_STRINGIFY_NAME(X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_STDLIB), __x86_64_accton_as7716_24xc_config_STRINGIFY_VALUE(X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_STDLIB) }, -#else -{ X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_STDLIB(__x86_64_accton_as7716_24xc_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS - { __x86_64_accton_as7716_24xc_config_STRINGIFY_NAME(X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_accton_as7716_24xc_config_STRINGIFY_VALUE(X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, -#else -{ X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_accton_as7716_24xc_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef X86_64_ACCTON_AS7716_24XC_CONFIG_INCLUDE_UCLI - { __x86_64_accton_as7716_24xc_config_STRINGIFY_NAME(X86_64_ACCTON_AS7716_24XC_CONFIG_INCLUDE_UCLI), __x86_64_accton_as7716_24xc_config_STRINGIFY_VALUE(X86_64_ACCTON_AS7716_24XC_CONFIG_INCLUDE_UCLI) }, -#else -{ X86_64_ACCTON_AS7716_24XC_CONFIG_INCLUDE_UCLI(__x86_64_accton_as7716_24xc_config_STRINGIFY_NAME), "__undefined__" }, -#endif - { NULL, NULL } -}; -#undef __x86_64_accton_as7716_24xc_config_STRINGIFY_VALUE -#undef __x86_64_accton_as7716_24xc_config_STRINGIFY_NAME - -const char* -x86_64_accton_as7716_24xc_config_lookup(const char* setting) -{ - int i; - for(i = 0; x86_64_accton_as7716_24xc_config_settings[i].name; i++) { - if(strcmp(x86_64_accton_as7716_24xc_config_settings[i].name, setting)) { - return x86_64_accton_as7716_24xc_config_settings[i].value; - } - } - return NULL; -} - -int -x86_64_accton_as7716_24xc_config_show(struct aim_pvs_s* pvs) -{ - int i; - for(i = 0; x86_64_accton_as7716_24xc_config_settings[i].name; i++) { - aim_printf(pvs, "%s = %s\n", x86_64_accton_as7716_24xc_config_settings[i].name, x86_64_accton_as7716_24xc_config_settings[i].value); - } - return i; -} - +#define __x86_64_accton_as7716_24xc_config_STRINGIFY_NAME(_x) #_x +#define __x86_64_accton_as7716_24xc_config_STRINGIFY_VALUE(_x) __x86_64_accton_as7716_24xc_config_STRINGIFY_NAME(_x) +x86_64_accton_as7716_24xc_config_settings_t x86_64_accton_as7716_24xc_config_settings[] = +{ +#ifdef X86_64_ACCTON_AS7716_24XC_CONFIG_INCLUDE_LOGGING + { __x86_64_accton_as7716_24xc_config_STRINGIFY_NAME(X86_64_ACCTON_AS7716_24XC_CONFIG_INCLUDE_LOGGING), __x86_64_accton_as7716_24xc_config_STRINGIFY_VALUE(X86_64_ACCTON_AS7716_24XC_CONFIG_INCLUDE_LOGGING) }, +#else +{ X86_64_ACCTON_AS7716_24XC_CONFIG_INCLUDE_LOGGING(__x86_64_accton_as7716_24xc_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_AS7716_24XC_CONFIG_LOG_OPTIONS_DEFAULT + { __x86_64_accton_as7716_24xc_config_STRINGIFY_NAME(X86_64_ACCTON_AS7716_24XC_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_accton_as7716_24xc_config_STRINGIFY_VALUE(X86_64_ACCTON_AS7716_24XC_CONFIG_LOG_OPTIONS_DEFAULT) }, +#else +{ X86_64_ACCTON_AS7716_24XC_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_accton_as7716_24xc_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_AS7716_24XC_CONFIG_LOG_BITS_DEFAULT + { __x86_64_accton_as7716_24xc_config_STRINGIFY_NAME(X86_64_ACCTON_AS7716_24XC_CONFIG_LOG_BITS_DEFAULT), __x86_64_accton_as7716_24xc_config_STRINGIFY_VALUE(X86_64_ACCTON_AS7716_24XC_CONFIG_LOG_BITS_DEFAULT) }, +#else +{ X86_64_ACCTON_AS7716_24XC_CONFIG_LOG_BITS_DEFAULT(__x86_64_accton_as7716_24xc_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_AS7716_24XC_CONFIG_LOG_CUSTOM_BITS_DEFAULT + { __x86_64_accton_as7716_24xc_config_STRINGIFY_NAME(X86_64_ACCTON_AS7716_24XC_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_accton_as7716_24xc_config_STRINGIFY_VALUE(X86_64_ACCTON_AS7716_24XC_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, +#else +{ X86_64_ACCTON_AS7716_24XC_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_accton_as7716_24xc_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_STDLIB + { __x86_64_accton_as7716_24xc_config_STRINGIFY_NAME(X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_STDLIB), __x86_64_accton_as7716_24xc_config_STRINGIFY_VALUE(X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_STDLIB) }, +#else +{ X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_STDLIB(__x86_64_accton_as7716_24xc_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + { __x86_64_accton_as7716_24xc_config_STRINGIFY_NAME(X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_accton_as7716_24xc_config_STRINGIFY_VALUE(X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, +#else +{ X86_64_ACCTON_AS7716_24XC_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_accton_as7716_24xc_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_AS7716_24XC_CONFIG_INCLUDE_UCLI + { __x86_64_accton_as7716_24xc_config_STRINGIFY_NAME(X86_64_ACCTON_AS7716_24XC_CONFIG_INCLUDE_UCLI), __x86_64_accton_as7716_24xc_config_STRINGIFY_VALUE(X86_64_ACCTON_AS7716_24XC_CONFIG_INCLUDE_UCLI) }, +#else +{ X86_64_ACCTON_AS7716_24XC_CONFIG_INCLUDE_UCLI(__x86_64_accton_as7716_24xc_config_STRINGIFY_NAME), "__undefined__" }, +#endif + { NULL, NULL } +}; +#undef __x86_64_accton_as7716_24xc_config_STRINGIFY_VALUE +#undef __x86_64_accton_as7716_24xc_config_STRINGIFY_NAME + +const char* +x86_64_accton_as7716_24xc_config_lookup(const char* setting) +{ + int i; + for(i = 0; x86_64_accton_as7716_24xc_config_settings[i].name; i++) { + if(!strcmp(x86_64_accton_as7716_24xc_config_settings[i].name, setting)) { + return x86_64_accton_as7716_24xc_config_settings[i].value; + } + } + return NULL; +} + +int +x86_64_accton_as7716_24xc_config_show(struct aim_pvs_s* pvs) +{ + int i; + for(i = 0; x86_64_accton_as7716_24xc_config_settings[i].name; i++) { + aim_printf(pvs, "%s = %s\n", x86_64_accton_as7716_24xc_config_settings[i].name, x86_64_accton_as7716_24xc_config_settings[i].value); + } + return i; +} + /* */ diff --git a/packages/platforms/accton/x86-64/as9716_32d/onlp/builds/x86_64_accton_as9716_32d/module/auto/make.mk b/packages/platforms/accton/x86-64/as9716_32d/onlp/builds/x86_64_accton_as9716_32d/module/auto/make.mk new file mode 100644 index 00000000..a00ac13d --- /dev/null +++ b/packages/platforms/accton/x86-64/as9716_32d/onlp/builds/x86_64_accton_as9716_32d/module/auto/make.mk @@ -0,0 +1,8 @@ +############################################################################### +# +# x86_64_accton_as9716_32d Autogeneration +# +############################################################################### +x86_64_accton_as9716_32d_AUTO_DEFS := module/auto/x86_64_accton_as9716_32d.yml +x86_64_accton_as9716_32d_AUTO_DIRS := module/inc/x86_64_accton_as9716_32d module/src +include $(BUILDER)/auto.mk diff --git a/packages/platforms/accton/x86-64/asgvolt64/onlp/builds/x86_64_accton_asgvolt64/module/auto/make.mk b/packages/platforms/accton/x86-64/asgvolt64/onlp/builds/x86_64_accton_asgvolt64/module/auto/make.mk new file mode 100644 index 00000000..39523b1a --- /dev/null +++ b/packages/platforms/accton/x86-64/asgvolt64/onlp/builds/x86_64_accton_asgvolt64/module/auto/make.mk @@ -0,0 +1,8 @@ +############################################################################### +# +# x86_64_accton_asgvolt64 Autogeneration +# +############################################################################### +x86_64_accton_asgvolt64_AUTO_DEFS := module/auto/x86_64_accton_asgvolt64.yml +x86_64_accton_asgvolt64_AUTO_DIRS := module/inc/x86_64_accton_asgvolt64 module/src +include $(BUILDER)/auto.mk diff --git a/packages/platforms/accton/x86-64/asgvolt64/onlp/builds/x86_64_accton_asgvolt64/module/auto/x86_64_accton_asgvolt64.yml b/packages/platforms/accton/x86-64/asgvolt64/onlp/builds/x86_64_accton_asgvolt64/module/auto/x86_64_accton_asgvolt64.yml index fd43e0c7..e42c318b 100755 --- a/packages/platforms/accton/x86-64/asgvolt64/onlp/builds/x86_64_accton_asgvolt64/module/auto/x86_64_accton_asgvolt64.yml +++ b/packages/platforms/accton/x86-64/asgvolt64/onlp/builds/x86_64_accton_asgvolt64/module/auto/x86_64_accton_asgvolt64.yml @@ -22,7 +22,7 @@ cdefs: &cdefs default: 1 - X86_64_ACCTON_ASGVOLT64_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS: doc: "Include standard library headers for stdlib porting macros." - default: x86_64_accton_asgvolt64_CONFIG_PORTING_STDLIB + default: X86_64_ACCTON_ASGVOLT64_CONFIG_PORTING_STDLIB - X86_64_ACCTON_ASGVOLT64_CONFIG_INCLUDE_UCLI: doc: "Include generic uCli support." default: 0 diff --git a/packages/platforms/accton/x86-64/asgvolt64/onlp/builds/x86_64_accton_asgvolt64/module/inc/x86_64_accton_asgvolt64/x86_64_accton_asgvolt64_config.h b/packages/platforms/accton/x86-64/asgvolt64/onlp/builds/x86_64_accton_asgvolt64/module/inc/x86_64_accton_asgvolt64/x86_64_accton_asgvolt64_config.h index dbc24520..a5bee6a9 100755 --- a/packages/platforms/accton/x86-64/asgvolt64/onlp/builds/x86_64_accton_asgvolt64/module/inc/x86_64_accton_asgvolt64/x86_64_accton_asgvolt64_config.h +++ b/packages/platforms/accton/x86-64/asgvolt64/onlp/builds/x86_64_accton_asgvolt64/module/inc/x86_64_accton_asgvolt64/x86_64_accton_asgvolt64_config.h @@ -7,8 +7,8 @@ * @{ * *****************************************************************************/ -#ifndef __x86_64_accton_asgvolt64_CONFIG_H__ -#define __x86_64_accton_asgvolt64_CONFIG_H__ +#ifndef __X86_64_ACCTON_ASGVOLT64_CONFIG_H__ +#define __X86_64_ACCTON_ASGVOLT64_CONFIG_H__ #ifdef GLOBAL_INCLUDE_CUSTOM_CONFIG #include @@ -17,121 +17,121 @@ #include #endif -/* */ -#include -/** - * x86_64_accton_asgvolt64_CONFIG_INCLUDE_LOGGING - * - * Include or exclude logging. */ - - -#ifndef x86_64_accton_asgvolt64_CONFIG_INCLUDE_LOGGING -#define x86_64_accton_asgvolt64_CONFIG_INCLUDE_LOGGING 1 -#endif - -/** - * x86_64_accton_asgvolt64_CONFIG_LOG_OPTIONS_DEFAULT - * - * Default enabled log options. */ - - -#ifndef x86_64_accton_asgvolt64_CONFIG_LOG_OPTIONS_DEFAULT -#define x86_64_accton_asgvolt64_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT -#endif - -/** - * x86_64_accton_asgvolt64_CONFIG_LOG_BITS_DEFAULT - * - * Default enabled log bits. */ - - -#ifndef x86_64_accton_asgvolt64_CONFIG_LOG_BITS_DEFAULT -#define x86_64_accton_asgvolt64_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT -#endif - -/** - * x86_64_accton_asgvolt64_CONFIG_LOG_CUSTOM_BITS_DEFAULT - * - * Default enabled custom log bits. */ - - -#ifndef x86_64_accton_asgvolt64_CONFIG_LOG_CUSTOM_BITS_DEFAULT -#define x86_64_accton_asgvolt64_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 -#endif - -/** - * x86_64_accton_asgvolt64_CONFIG_PORTING_STDLIB - * - * Default all porting macros to use the C standard libraries. */ - - -#ifndef x86_64_accton_asgvolt64_CONFIG_PORTING_STDLIB -#define x86_64_accton_asgvolt64_CONFIG_PORTING_STDLIB 1 -#endif - -/** - * x86_64_accton_asgvolt64_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS - * - * Include standard library headers for stdlib porting macros. */ - - -#ifndef x86_64_accton_asgvolt64_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS -#define x86_64_accton_asgvolt64_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS x86_64_accton_asgvolt64_CONFIG_PORTING_STDLIB -#endif - -/** - * x86_64_accton_asgvolt64_CONFIG_INCLUDE_UCLI - * - * Include generic uCli support. */ - - -#ifndef x86_64_accton_asgvolt64_CONFIG_INCLUDE_UCLI -#define x86_64_accton_asgvolt64_CONFIG_INCLUDE_UCLI 0 -#endif - -/** - * x86_64_accton_asgvolt64_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION - * - * Assume chassis fan direction is the same as the PSU fan direction. */ - - -#ifndef x86_64_accton_asgvolt64_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION -#define x86_64_accton_asgvolt64_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION 0 -#endif - - - -/** - * All compile time options can be queried or displayed - */ - -/** Configuration settings structure. */ -typedef struct x86_64_accton_asgvolt64_config_settings_s { - /** name */ - const char* name; - /** value */ - const char* value; -} x86_64_accton_asgvolt64_config_settings_t; - -/** Configuration settings table. */ -/** x86_64_accton_asgvolt64_config_settings table. */ -extern x86_64_accton_asgvolt64_config_settings_t x86_64_accton_asgvolt64_config_settings[]; - -/** - * @brief Lookup a configuration setting. - * @param setting The name of the configuration option to lookup. - */ -const char* x86_64_accton_asgvolt64_config_lookup(const char* setting); - -/** - * @brief Show the compile-time configuration. - * @param pvs The output stream. - */ -int x86_64_accton_asgvolt64_config_show(struct aim_pvs_s* pvs); - -/* */ +/* */ +#include +/** + * X86_64_ACCTON_ASGVOLT64_CONFIG_INCLUDE_LOGGING + * + * Include or exclude logging. */ + + +#ifndef X86_64_ACCTON_ASGVOLT64_CONFIG_INCLUDE_LOGGING +#define X86_64_ACCTON_ASGVOLT64_CONFIG_INCLUDE_LOGGING 1 +#endif + +/** + * X86_64_ACCTON_ASGVOLT64_CONFIG_LOG_OPTIONS_DEFAULT + * + * Default enabled log options. */ + + +#ifndef X86_64_ACCTON_ASGVOLT64_CONFIG_LOG_OPTIONS_DEFAULT +#define X86_64_ACCTON_ASGVOLT64_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT +#endif + +/** + * X86_64_ACCTON_ASGVOLT64_CONFIG_LOG_BITS_DEFAULT + * + * Default enabled log bits. */ + + +#ifndef X86_64_ACCTON_ASGVOLT64_CONFIG_LOG_BITS_DEFAULT +#define X86_64_ACCTON_ASGVOLT64_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT +#endif + +/** + * X86_64_ACCTON_ASGVOLT64_CONFIG_LOG_CUSTOM_BITS_DEFAULT + * + * Default enabled custom log bits. */ + + +#ifndef X86_64_ACCTON_ASGVOLT64_CONFIG_LOG_CUSTOM_BITS_DEFAULT +#define X86_64_ACCTON_ASGVOLT64_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 +#endif + +/** + * X86_64_ACCTON_ASGVOLT64_CONFIG_PORTING_STDLIB + * + * Default all porting macros to use the C standard libraries. */ + + +#ifndef X86_64_ACCTON_ASGVOLT64_CONFIG_PORTING_STDLIB +#define X86_64_ACCTON_ASGVOLT64_CONFIG_PORTING_STDLIB 1 +#endif + +/** + * X86_64_ACCTON_ASGVOLT64_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + * + * Include standard library headers for stdlib porting macros. */ + + +#ifndef X86_64_ACCTON_ASGVOLT64_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS +#define X86_64_ACCTON_ASGVOLT64_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS X86_64_ACCTON_ASGVOLT64_CONFIG_PORTING_STDLIB +#endif + +/** + * X86_64_ACCTON_ASGVOLT64_CONFIG_INCLUDE_UCLI + * + * Include generic uCli support. */ + + +#ifndef X86_64_ACCTON_ASGVOLT64_CONFIG_INCLUDE_UCLI +#define X86_64_ACCTON_ASGVOLT64_CONFIG_INCLUDE_UCLI 0 +#endif + +/** + * X86_64_ACCTON_ASGVOLT64_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION + * + * Assume chassis fan direction is the same as the PSU fan direction. */ + + +#ifndef X86_64_ACCTON_ASGVOLT64_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION +#define X86_64_ACCTON_ASGVOLT64_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION 0 +#endif + + + +/** + * All compile time options can be queried or displayed + */ + +/** Configuration settings structure. */ +typedef struct x86_64_accton_asgvolt64_config_settings_s { + /** name */ + const char* name; + /** value */ + const char* value; +} x86_64_accton_asgvolt64_config_settings_t; + +/** Configuration settings table. */ +/** x86_64_accton_asgvolt64_config_settings table. */ +extern x86_64_accton_asgvolt64_config_settings_t x86_64_accton_asgvolt64_config_settings[]; + +/** + * @brief Lookup a configuration setting. + * @param setting The name of the configuration option to lookup. + */ +const char* x86_64_accton_asgvolt64_config_lookup(const char* setting); + +/** + * @brief Show the compile-time configuration. + * @param pvs The output stream. + */ +int x86_64_accton_asgvolt64_config_show(struct aim_pvs_s* pvs); + +/* */ #include "x86_64_accton_asgvolt64_porting.h" -#endif /* __x86_64_accton_asgvolt64_CONFIG_H__ */ +#endif /* __X86_64_ACCTON_ASGVOLT64_CONFIG_H__ */ /* @} */ diff --git a/packages/platforms/accton/x86-64/asgvolt64/onlp/builds/x86_64_accton_asgvolt64/module/inc/x86_64_accton_asgvolt64/x86_64_accton_asgvolt64_porting.h b/packages/platforms/accton/x86-64/asgvolt64/onlp/builds/x86_64_accton_asgvolt64/module/inc/x86_64_accton_asgvolt64/x86_64_accton_asgvolt64_porting.h index 546faead..ce43fc7c 100755 --- a/packages/platforms/accton/x86-64/asgvolt64/onlp/builds/x86_64_accton_asgvolt64/module/inc/x86_64_accton_asgvolt64/x86_64_accton_asgvolt64_porting.h +++ b/packages/platforms/accton/x86-64/asgvolt64/onlp/builds/x86_64_accton_asgvolt64/module/inc/x86_64_accton_asgvolt64/x86_64_accton_asgvolt64_porting.h @@ -12,94 +12,94 @@ /* */ -#if x86_64_accton_asgvolt64_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 -#include -#include -#include -#include -#include -#endif - -#ifndef x86_64_accton_asgvolt64_MALLOC - #if defined(GLOBAL_MALLOC) - #define x86_64_accton_asgvolt64_MALLOC GLOBAL_MALLOC - #elif x86_64_accton_asgvolt64_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_asgvolt64_MALLOC malloc - #else - #error The macro x86_64_accton_asgvolt64_MALLOC is required but cannot be defined. - #endif -#endif - -#ifndef x86_64_accton_asgvolt64_FREE - #if defined(GLOBAL_FREE) - #define x86_64_accton_asgvolt64_FREE GLOBAL_FREE - #elif x86_64_accton_asgvolt64_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_asgvolt64_FREE free - #else - #error The macro x86_64_accton_asgvolt64_FREE is required but cannot be defined. - #endif -#endif - -#ifndef x86_64_accton_asgvolt64_MEMSET - #if defined(GLOBAL_MEMSET) - #define x86_64_accton_asgvolt64_MEMSET GLOBAL_MEMSET - #elif x86_64_accton_asgvolt64_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_asgvolt64_MEMSET memset - #else - #error The macro x86_64_accton_asgvolt64_MEMSET is required but cannot be defined. - #endif -#endif - -#ifndef x86_64_accton_asgvolt64_MEMCPY - #if defined(GLOBAL_MEMCPY) - #define x86_64_accton_asgvolt64_MEMCPY GLOBAL_MEMCPY - #elif x86_64_accton_asgvolt64_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_asgvolt64_MEMCPY memcpy - #else - #error The macro x86_64_accton_asgvolt64_MEMCPY is required but cannot be defined. - #endif -#endif - -#ifndef x86_64_accton_asgvolt64_STRNCPY - #if defined(GLOBAL_STRNCPY) - #define x86_64_accton_asgvolt64_STRNCPY GLOBAL_STRNCPY - #elif x86_64_accton_asgvolt64_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_asgvolt64_STRNCPY strncpy - #else - #error The macro x86_64_accton_asgvolt64_STRNCPY is required but cannot be defined. - #endif -#endif - -#ifndef x86_64_accton_asgvolt64_VSNPRINTF - #if defined(GLOBAL_VSNPRINTF) - #define x86_64_accton_asgvolt64_VSNPRINTF GLOBAL_VSNPRINTF - #elif x86_64_accton_asgvolt64_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_asgvolt64_VSNPRINTF vsnprintf - #else - #error The macro x86_64_accton_asgvolt64_VSNPRINTF is required but cannot be defined. - #endif -#endif - -#ifndef x86_64_accton_asgvolt64_SNPRINTF - #if defined(GLOBAL_SNPRINTF) - #define x86_64_accton_asgvolt64_SNPRINTF GLOBAL_SNPRINTF - #elif x86_64_accton_asgvolt64_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_asgvolt64_SNPRINTF snprintf - #else - #error The macro x86_64_accton_asgvolt64_SNPRINTF is required but cannot be defined. - #endif -#endif - -#ifndef x86_64_accton_asgvolt64_STRLEN - #if defined(GLOBAL_STRLEN) - #define x86_64_accton_asgvolt64_STRLEN GLOBAL_STRLEN - #elif x86_64_accton_asgvolt64_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_asgvolt64_STRLEN strlen - #else - #error The macro x86_64_accton_asgvolt64_STRLEN is required but cannot be defined. - #endif -#endif - +#if X86_64_ACCTON_ASGVOLT64_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 +#include +#include +#include +#include +#include +#endif + +#ifndef X86_64_ACCTON_ASGVOLT64_MALLOC + #if defined(GLOBAL_MALLOC) + #define X86_64_ACCTON_ASGVOLT64_MALLOC GLOBAL_MALLOC + #elif X86_64_ACCTON_ASGVOLT64_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_ASGVOLT64_MALLOC malloc + #else + #error The macro X86_64_ACCTON_ASGVOLT64_MALLOC is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_ASGVOLT64_FREE + #if defined(GLOBAL_FREE) + #define X86_64_ACCTON_ASGVOLT64_FREE GLOBAL_FREE + #elif X86_64_ACCTON_ASGVOLT64_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_ASGVOLT64_FREE free + #else + #error The macro X86_64_ACCTON_ASGVOLT64_FREE is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_ASGVOLT64_MEMSET + #if defined(GLOBAL_MEMSET) + #define X86_64_ACCTON_ASGVOLT64_MEMSET GLOBAL_MEMSET + #elif X86_64_ACCTON_ASGVOLT64_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_ASGVOLT64_MEMSET memset + #else + #error The macro X86_64_ACCTON_ASGVOLT64_MEMSET is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_ASGVOLT64_MEMCPY + #if defined(GLOBAL_MEMCPY) + #define X86_64_ACCTON_ASGVOLT64_MEMCPY GLOBAL_MEMCPY + #elif X86_64_ACCTON_ASGVOLT64_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_ASGVOLT64_MEMCPY memcpy + #else + #error The macro X86_64_ACCTON_ASGVOLT64_MEMCPY is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_ASGVOLT64_STRNCPY + #if defined(GLOBAL_STRNCPY) + #define X86_64_ACCTON_ASGVOLT64_STRNCPY GLOBAL_STRNCPY + #elif X86_64_ACCTON_ASGVOLT64_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_ASGVOLT64_STRNCPY strncpy + #else + #error The macro X86_64_ACCTON_ASGVOLT64_STRNCPY is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_ASGVOLT64_VSNPRINTF + #if defined(GLOBAL_VSNPRINTF) + #define X86_64_ACCTON_ASGVOLT64_VSNPRINTF GLOBAL_VSNPRINTF + #elif X86_64_ACCTON_ASGVOLT64_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_ASGVOLT64_VSNPRINTF vsnprintf + #else + #error The macro X86_64_ACCTON_ASGVOLT64_VSNPRINTF is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_ASGVOLT64_SNPRINTF + #if defined(GLOBAL_SNPRINTF) + #define X86_64_ACCTON_ASGVOLT64_SNPRINTF GLOBAL_SNPRINTF + #elif X86_64_ACCTON_ASGVOLT64_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_ASGVOLT64_SNPRINTF snprintf + #else + #error The macro X86_64_ACCTON_ASGVOLT64_SNPRINTF is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_ASGVOLT64_STRLEN + #if defined(GLOBAL_STRLEN) + #define X86_64_ACCTON_ASGVOLT64_STRLEN GLOBAL_STRLEN + #elif X86_64_ACCTON_ASGVOLT64_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_ASGVOLT64_STRLEN strlen + #else + #error The macro X86_64_ACCTON_ASGVOLT64_STRLEN is required but cannot be defined. + #endif +#endif + /* */ diff --git a/packages/platforms/accton/x86-64/asgvolt64/onlp/builds/x86_64_accton_asgvolt64/module/src/debug.c b/packages/platforms/accton/x86-64/asgvolt64/onlp/builds/x86_64_accton_asgvolt64/module/src/debug.c index 07564b2e..6c88f8d3 100755 --- a/packages/platforms/accton/x86-64/asgvolt64/onlp/builds/x86_64_accton_asgvolt64/module/src/debug.c +++ b/packages/platforms/accton/x86-64/asgvolt64/onlp/builds/x86_64_accton_asgvolt64/module/src/debug.c @@ -1,6 +1,6 @@ #include "x86_64_accton_asgvolt64_int.h" -#if x86_64_accton_asgvolt64_CONFIG_INCLUDE_DEBUG == 1 +#if X86_64_ACCTON_ASGVOLT64_CONFIG_INCLUDE_DEBUG == 1 #include diff --git a/packages/platforms/accton/x86-64/asgvolt64/onlp/builds/x86_64_accton_asgvolt64/module/src/x86_64_accton_asgvolt64_config.c b/packages/platforms/accton/x86-64/asgvolt64/onlp/builds/x86_64_accton_asgvolt64/module/src/x86_64_accton_asgvolt64_config.c index 1aaf0dec..1c24df0e 100755 --- a/packages/platforms/accton/x86-64/asgvolt64/onlp/builds/x86_64_accton_asgvolt64/module/src/x86_64_accton_asgvolt64_config.c +++ b/packages/platforms/accton/x86-64/asgvolt64/onlp/builds/x86_64_accton_asgvolt64/module/src/x86_64_accton_asgvolt64_config.c @@ -5,77 +5,76 @@ *****************************************************************************/ #include -/* */ -#define __x86_64_accton_asgvolt64_config_STRINGIFY_NAME(_x) #_x -#define __x86_64_accton_asgvolt64_config_STRINGIFY_VALUE(_x) __x86_64_accton_asgvolt64_config_STRINGIFY_NAME(_x) -x86_64_accton_asgvolt64_config_settings_t x86_64_accton_asgvolt64_config_settings[] = -{ -#ifdef x86_64_accton_asgvolt64_CONFIG_INCLUDE_LOGGING - { __x86_64_accton_asgvolt64_config_STRINGIFY_NAME(x86_64_accton_asgvolt64_CONFIG_INCLUDE_LOGGING), __x86_64_accton_asgvolt64_config_STRINGIFY_VALUE(x86_64_accton_asgvolt64_CONFIG_INCLUDE_LOGGING) }, -#else -{ x86_64_accton_asgvolt64_CONFIG_INCLUDE_LOGGING(__x86_64_accton_asgvolt64_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef x86_64_accton_asgvolt64_CONFIG_LOG_OPTIONS_DEFAULT - { __x86_64_accton_asgvolt64_config_STRINGIFY_NAME(x86_64_accton_asgvolt64_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_accton_asgvolt64_config_STRINGIFY_VALUE(x86_64_accton_asgvolt64_CONFIG_LOG_OPTIONS_DEFAULT) }, -#else -{ x86_64_accton_asgvolt64_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_accton_asgvolt64_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef x86_64_accton_asgvolt64_CONFIG_LOG_BITS_DEFAULT - { __x86_64_accton_asgvolt64_config_STRINGIFY_NAME(x86_64_accton_asgvolt64_CONFIG_LOG_BITS_DEFAULT), __x86_64_accton_asgvolt64_config_STRINGIFY_VALUE(x86_64_accton_asgvolt64_CONFIG_LOG_BITS_DEFAULT) }, -#else -{ x86_64_accton_asgvolt64_CONFIG_LOG_BITS_DEFAULT(__x86_64_accton_asgvolt64_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef x86_64_accton_asgvolt64_CONFIG_LOG_CUSTOM_BITS_DEFAULT - { __x86_64_accton_asgvolt64_config_STRINGIFY_NAME(x86_64_accton_asgvolt64_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_accton_asgvolt64_config_STRINGIFY_VALUE(x86_64_accton_asgvolt64_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, -#else -{ x86_64_accton_asgvolt64_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_accton_asgvolt64_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef x86_64_accton_asgvolt64_CONFIG_PORTING_STDLIB - { __x86_64_accton_asgvolt64_config_STRINGIFY_NAME(x86_64_accton_asgvolt64_CONFIG_PORTING_STDLIB), __x86_64_accton_asgvolt64_config_STRINGIFY_VALUE(x86_64_accton_asgvolt64_CONFIG_PORTING_STDLIB) }, -#else -{ x86_64_accton_asgvolt64_CONFIG_PORTING_STDLIB(__x86_64_accton_asgvolt64_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef x86_64_accton_asgvolt64_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS - { __x86_64_accton_asgvolt64_config_STRINGIFY_NAME(x86_64_accton_asgvolt64_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_accton_asgvolt64_config_STRINGIFY_VALUE(x86_64_accton_asgvolt64_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, -#else -{ x86_64_accton_asgvolt64_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_accton_asgvolt64_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef x86_64_accton_asgvolt64_CONFIG_INCLUDE_UCLI - { __x86_64_accton_asgvolt64_config_STRINGIFY_NAME(x86_64_accton_asgvolt64_CONFIG_INCLUDE_UCLI), __x86_64_accton_asgvolt64_config_STRINGIFY_VALUE(x86_64_accton_asgvolt64_CONFIG_INCLUDE_UCLI) }, -#else -{ x86_64_accton_asgvolt64_CONFIG_INCLUDE_UCLI(__x86_64_accton_asgvolt64_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef x86_64_accton_asgvolt64_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION - { __x86_64_accton_asgvolt64_config_STRINGIFY_NAME(x86_64_accton_asgvolt64_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __x86_64_accton_asgvolt64_config_STRINGIFY_VALUE(x86_64_accton_asgvolt64_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, -#else -{ x86_64_accton_asgvolt64_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__x86_64_accton_asgvolt64_config_STRINGIFY_NAME), "__undefined__" }, -#endif - { NULL, NULL } -}; -#undef __x86_64_accton_asgvolt64_config_STRINGIFY_VALUE -#undef __x86_64_accton_asgvolt64_config_STRINGIFY_NAME - -const char* -x86_64_accton_asgvolt64_config_lookup(const char* setting) -{ - int i; - for(i = 0; x86_64_accton_asgvolt64_config_settings[i].name; i++) { - if(strcmp(x86_64_accton_asgvolt64_config_settings[i].name, setting)) { - return x86_64_accton_asgvolt64_config_settings[i].value; - } - } - return NULL; -} - -int -x86_64_accton_asgvolt64_config_show(struct aim_pvs_s* pvs) -{ - int i; - for(i = 0; x86_64_accton_asgvolt64_config_settings[i].name; i++) { - aim_printf(pvs, "%s = %s\n", x86_64_accton_asgvolt64_config_settings[i].name, x86_64_accton_asgvolt64_config_settings[i].value); - } - return i; -} - -/* */ - +/* */ +#define __x86_64_accton_asgvolt64_config_STRINGIFY_NAME(_x) #_x +#define __x86_64_accton_asgvolt64_config_STRINGIFY_VALUE(_x) __x86_64_accton_asgvolt64_config_STRINGIFY_NAME(_x) +x86_64_accton_asgvolt64_config_settings_t x86_64_accton_asgvolt64_config_settings[] = +{ +#ifdef X86_64_ACCTON_ASGVOLT64_CONFIG_INCLUDE_LOGGING + { __x86_64_accton_asgvolt64_config_STRINGIFY_NAME(X86_64_ACCTON_ASGVOLT64_CONFIG_INCLUDE_LOGGING), __x86_64_accton_asgvolt64_config_STRINGIFY_VALUE(X86_64_ACCTON_ASGVOLT64_CONFIG_INCLUDE_LOGGING) }, +#else +{ X86_64_ACCTON_ASGVOLT64_CONFIG_INCLUDE_LOGGING(__x86_64_accton_asgvolt64_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_ASGVOLT64_CONFIG_LOG_OPTIONS_DEFAULT + { __x86_64_accton_asgvolt64_config_STRINGIFY_NAME(X86_64_ACCTON_ASGVOLT64_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_accton_asgvolt64_config_STRINGIFY_VALUE(X86_64_ACCTON_ASGVOLT64_CONFIG_LOG_OPTIONS_DEFAULT) }, +#else +{ X86_64_ACCTON_ASGVOLT64_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_accton_asgvolt64_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_ASGVOLT64_CONFIG_LOG_BITS_DEFAULT + { __x86_64_accton_asgvolt64_config_STRINGIFY_NAME(X86_64_ACCTON_ASGVOLT64_CONFIG_LOG_BITS_DEFAULT), __x86_64_accton_asgvolt64_config_STRINGIFY_VALUE(X86_64_ACCTON_ASGVOLT64_CONFIG_LOG_BITS_DEFAULT) }, +#else +{ X86_64_ACCTON_ASGVOLT64_CONFIG_LOG_BITS_DEFAULT(__x86_64_accton_asgvolt64_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_ASGVOLT64_CONFIG_LOG_CUSTOM_BITS_DEFAULT + { __x86_64_accton_asgvolt64_config_STRINGIFY_NAME(X86_64_ACCTON_ASGVOLT64_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_accton_asgvolt64_config_STRINGIFY_VALUE(X86_64_ACCTON_ASGVOLT64_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, +#else +{ X86_64_ACCTON_ASGVOLT64_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_accton_asgvolt64_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_ASGVOLT64_CONFIG_PORTING_STDLIB + { __x86_64_accton_asgvolt64_config_STRINGIFY_NAME(X86_64_ACCTON_ASGVOLT64_CONFIG_PORTING_STDLIB), __x86_64_accton_asgvolt64_config_STRINGIFY_VALUE(X86_64_ACCTON_ASGVOLT64_CONFIG_PORTING_STDLIB) }, +#else +{ X86_64_ACCTON_ASGVOLT64_CONFIG_PORTING_STDLIB(__x86_64_accton_asgvolt64_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_ASGVOLT64_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + { __x86_64_accton_asgvolt64_config_STRINGIFY_NAME(X86_64_ACCTON_ASGVOLT64_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_accton_asgvolt64_config_STRINGIFY_VALUE(X86_64_ACCTON_ASGVOLT64_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, +#else +{ X86_64_ACCTON_ASGVOLT64_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_accton_asgvolt64_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_ASGVOLT64_CONFIG_INCLUDE_UCLI + { __x86_64_accton_asgvolt64_config_STRINGIFY_NAME(X86_64_ACCTON_ASGVOLT64_CONFIG_INCLUDE_UCLI), __x86_64_accton_asgvolt64_config_STRINGIFY_VALUE(X86_64_ACCTON_ASGVOLT64_CONFIG_INCLUDE_UCLI) }, +#else +{ X86_64_ACCTON_ASGVOLT64_CONFIG_INCLUDE_UCLI(__x86_64_accton_asgvolt64_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_ASGVOLT64_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION + { __x86_64_accton_asgvolt64_config_STRINGIFY_NAME(X86_64_ACCTON_ASGVOLT64_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __x86_64_accton_asgvolt64_config_STRINGIFY_VALUE(X86_64_ACCTON_ASGVOLT64_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, +#else +{ X86_64_ACCTON_ASGVOLT64_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__x86_64_accton_asgvolt64_config_STRINGIFY_NAME), "__undefined__" }, +#endif + { NULL, NULL } +}; +#undef __x86_64_accton_asgvolt64_config_STRINGIFY_VALUE +#undef __x86_64_accton_asgvolt64_config_STRINGIFY_NAME + +const char* +x86_64_accton_asgvolt64_config_lookup(const char* setting) +{ + int i; + for(i = 0; x86_64_accton_asgvolt64_config_settings[i].name; i++) { + if(!strcmp(x86_64_accton_asgvolt64_config_settings[i].name, setting)) { + return x86_64_accton_asgvolt64_config_settings[i].value; + } + } + return NULL; +} + +int +x86_64_accton_asgvolt64_config_show(struct aim_pvs_s* pvs) +{ + int i; + for(i = 0; x86_64_accton_asgvolt64_config_settings[i].name; i++) { + aim_printf(pvs, "%s = %s\n", x86_64_accton_asgvolt64_config_settings[i].name, x86_64_accton_asgvolt64_config_settings[i].value); + } + return i; +} + +/* */ diff --git a/packages/platforms/accton/x86-64/asgvolt64/onlp/builds/x86_64_accton_asgvolt64/module/src/x86_64_accton_asgvolt64_log.c b/packages/platforms/accton/x86-64/asgvolt64/onlp/builds/x86_64_accton_asgvolt64/module/src/x86_64_accton_asgvolt64_log.c index bd326fa7..44d477b1 100755 --- a/packages/platforms/accton/x86-64/asgvolt64/onlp/builds/x86_64_accton_asgvolt64/module/src/x86_64_accton_asgvolt64_log.c +++ b/packages/platforms/accton/x86-64/asgvolt64/onlp/builds/x86_64_accton_asgvolt64/module/src/x86_64_accton_asgvolt64_log.c @@ -10,9 +10,9 @@ * x86_64_accton_asgvolt64 log struct. */ AIM_LOG_STRUCT_DEFINE( - x86_64_accton_asgvolt64_CONFIG_LOG_OPTIONS_DEFAULT, - x86_64_accton_asgvolt64_CONFIG_LOG_BITS_DEFAULT, + X86_64_ACCTON_ASGVOLT64_CONFIG_LOG_OPTIONS_DEFAULT, + X86_64_ACCTON_ASGVOLT64_CONFIG_LOG_BITS_DEFAULT, NULL, /* Custom log map */ - x86_64_accton_asgvolt64_CONFIG_LOG_CUSTOM_BITS_DEFAULT + X86_64_ACCTON_ASGVOLT64_CONFIG_LOG_CUSTOM_BITS_DEFAULT ); diff --git a/packages/platforms/accton/x86-64/asgvolt64/onlp/builds/x86_64_accton_asgvolt64/module/src/x86_64_accton_asgvolt64_ucli.c b/packages/platforms/accton/x86-64/asgvolt64/onlp/builds/x86_64_accton_asgvolt64/module/src/x86_64_accton_asgvolt64_ucli.c index b0d28f6b..f7efb6ab 100755 --- a/packages/platforms/accton/x86-64/asgvolt64/onlp/builds/x86_64_accton_asgvolt64/module/src/x86_64_accton_asgvolt64_ucli.c +++ b/packages/platforms/accton/x86-64/asgvolt64/onlp/builds/x86_64_accton_asgvolt64/module/src/x86_64_accton_asgvolt64_ucli.c @@ -5,7 +5,7 @@ *****************************************************************************/ #include -#if x86_64_accton_asgvolt64_CONFIG_INCLUDE_UCLI == 1 +#if X86_64_ACCTON_ASGVOLT64_CONFIG_INCLUDE_UCLI == 1 #include #include diff --git a/packages/platforms/accton/x86-64/asxvolt16/onlp/builds/x86_64_accton_asxvolt16/module/auto/x86_64_accton_asxvolt16.yml b/packages/platforms/accton/x86-64/asxvolt16/onlp/builds/x86_64_accton_asxvolt16/module/auto/x86_64_accton_asxvolt16.yml index 36b059a4..3feac7ad 100755 --- a/packages/platforms/accton/x86-64/asxvolt16/onlp/builds/x86_64_accton_asxvolt16/module/auto/x86_64_accton_asxvolt16.yml +++ b/packages/platforms/accton/x86-64/asxvolt16/onlp/builds/x86_64_accton_asxvolt16/module/auto/x86_64_accton_asxvolt16.yml @@ -5,35 +5,35 @@ ############################################################################### cdefs: &cdefs -- x86_64_accton_asxvolt16_CONFIG_INCLUDE_LOGGING: +- X86_64_ACCTON_ASXVOLT16_CONFIG_INCLUDE_LOGGING: doc: "Include or exclude logging." default: 1 -- x86_64_accton_asxvolt16_CONFIG_LOG_OPTIONS_DEFAULT: +- X86_64_ACCTON_ASXVOLT16_CONFIG_LOG_OPTIONS_DEFAULT: doc: "Default enabled log options." default: AIM_LOG_OPTIONS_DEFAULT -- x86_64_accton_asxvolt16_CONFIG_LOG_BITS_DEFAULT: +- X86_64_ACCTON_ASXVOLT16_CONFIG_LOG_BITS_DEFAULT: doc: "Default enabled log bits." default: AIM_LOG_BITS_DEFAULT -- x86_64_accton_asxvolt16_CONFIG_LOG_CUSTOM_BITS_DEFAULT: +- X86_64_ACCTON_ASXVOLT16_CONFIG_LOG_CUSTOM_BITS_DEFAULT: doc: "Default enabled custom log bits." default: 0 -- x86_64_accton_asxvolt16_CONFIG_PORTING_STDLIB: +- X86_64_ACCTON_ASXVOLT16_CONFIG_PORTING_STDLIB: doc: "Default all porting macros to use the C standard libraries." default: 1 -- x86_64_accton_asxvolt16_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS: +- X86_64_ACCTON_ASXVOLT16_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS: doc: "Include standard library headers for stdlib porting macros." - default: x86_64_accton_asxvolt16_CONFIG_PORTING_STDLIB -- x86_64_accton_asxvolt16_CONFIG_INCLUDE_UCLI: + default: X86_64_ACCTON_ASXVOLT16_CONFIG_PORTING_STDLIB +- X86_64_ACCTON_ASXVOLT16_CONFIG_INCLUDE_UCLI: doc: "Include generic uCli support." default: 0 -- x86_64_accton_asxvolt16_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION: +- X86_64_ACCTON_ASXVOLT16_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION: doc: "Assume chassis fan direction is the same as the PSU fan direction." default: 0 definitions: cdefs: - x86_64_accton_asxvolt16_CONFIG_HEADER: + X86_64_ACCTON_ASXVOLT16_CONFIG_HEADER: defs: *cdefs basename: x86_64_accton_asxvolt16_config diff --git a/packages/platforms/accton/x86-64/asxvolt16/onlp/builds/x86_64_accton_asxvolt16/module/inc/x86_64_accton_asxvolt16/x86_64_accton_asxvolt16_config.h b/packages/platforms/accton/x86-64/asxvolt16/onlp/builds/x86_64_accton_asxvolt16/module/inc/x86_64_accton_asxvolt16/x86_64_accton_asxvolt16_config.h index 2b7a4627..9206a1bc 100755 --- a/packages/platforms/accton/x86-64/asxvolt16/onlp/builds/x86_64_accton_asxvolt16/module/inc/x86_64_accton_asxvolt16/x86_64_accton_asxvolt16_config.h +++ b/packages/platforms/accton/x86-64/asxvolt16/onlp/builds/x86_64_accton_asxvolt16/module/inc/x86_64_accton_asxvolt16/x86_64_accton_asxvolt16_config.h @@ -7,8 +7,8 @@ * @{ * *****************************************************************************/ -#ifndef __x86_64_accton_asxvolt16_CONFIG_H__ -#define __x86_64_accton_asxvolt16_CONFIG_H__ +#ifndef __X86_64_ACCTON_ASXVOLT16_CONFIG_H__ +#define __X86_64_ACCTON_ASXVOLT16_CONFIG_H__ #ifdef GLOBAL_INCLUDE_CUSTOM_CONFIG #include @@ -17,121 +17,121 @@ #include #endif -/* */ -#include -/** - * x86_64_accton_asxvolt16_CONFIG_INCLUDE_LOGGING - * - * Include or exclude logging. */ - - -#ifndef x86_64_accton_asxvolt16_CONFIG_INCLUDE_LOGGING -#define x86_64_accton_asxvolt16_CONFIG_INCLUDE_LOGGING 1 -#endif - -/** - * x86_64_accton_asxvolt16_CONFIG_LOG_OPTIONS_DEFAULT - * - * Default enabled log options. */ - - -#ifndef x86_64_accton_asxvolt16_CONFIG_LOG_OPTIONS_DEFAULT -#define x86_64_accton_asxvolt16_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT -#endif - -/** - * x86_64_accton_asxvolt16_CONFIG_LOG_BITS_DEFAULT - * - * Default enabled log bits. */ - - -#ifndef x86_64_accton_asxvolt16_CONFIG_LOG_BITS_DEFAULT -#define x86_64_accton_asxvolt16_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT -#endif - -/** - * x86_64_accton_asxvolt16_CONFIG_LOG_CUSTOM_BITS_DEFAULT - * - * Default enabled custom log bits. */ - - -#ifndef x86_64_accton_asxvolt16_CONFIG_LOG_CUSTOM_BITS_DEFAULT -#define x86_64_accton_asxvolt16_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 -#endif - -/** - * x86_64_accton_asxvolt16_CONFIG_PORTING_STDLIB - * - * Default all porting macros to use the C standard libraries. */ - - -#ifndef x86_64_accton_asxvolt16_CONFIG_PORTING_STDLIB -#define x86_64_accton_asxvolt16_CONFIG_PORTING_STDLIB 1 -#endif - -/** - * x86_64_accton_asxvolt16_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS - * - * Include standard library headers for stdlib porting macros. */ - - -#ifndef x86_64_accton_asxvolt16_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS -#define x86_64_accton_asxvolt16_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS x86_64_accton_asxvolt16_CONFIG_PORTING_STDLIB -#endif - -/** - * x86_64_accton_asxvolt16_CONFIG_INCLUDE_UCLI - * - * Include generic uCli support. */ - - -#ifndef x86_64_accton_asxvolt16_CONFIG_INCLUDE_UCLI -#define x86_64_accton_asxvolt16_CONFIG_INCLUDE_UCLI 0 -#endif - -/** - * x86_64_accton_asxvolt16_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION - * - * Assume chassis fan direction is the same as the PSU fan direction. */ - - -#ifndef x86_64_accton_asxvolt16_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION -#define x86_64_accton_asxvolt16_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION 0 -#endif - - - -/** - * All compile time options can be queried or displayed - */ - -/** Configuration settings structure. */ -typedef struct x86_64_accton_asxvolt16_config_settings_s { - /** name */ - const char* name; - /** value */ - const char* value; -} x86_64_accton_asxvolt16_config_settings_t; - -/** Configuration settings table. */ -/** x86_64_accton_asxvolt16_config_settings table. */ -extern x86_64_accton_asxvolt16_config_settings_t x86_64_accton_asxvolt16_config_settings[]; - -/** - * @brief Lookup a configuration setting. - * @param setting The name of the configuration option to lookup. - */ -const char* x86_64_accton_asxvolt16_config_lookup(const char* setting); - -/** - * @brief Show the compile-time configuration. - * @param pvs The output stream. - */ -int x86_64_accton_asxvolt16_config_show(struct aim_pvs_s* pvs); - -/* */ +/* */ +#include +/** + * X86_64_ACCTON_ASXVOLT16_CONFIG_INCLUDE_LOGGING + * + * Include or exclude logging. */ + + +#ifndef X86_64_ACCTON_ASXVOLT16_CONFIG_INCLUDE_LOGGING +#define X86_64_ACCTON_ASXVOLT16_CONFIG_INCLUDE_LOGGING 1 +#endif + +/** + * X86_64_ACCTON_ASXVOLT16_CONFIG_LOG_OPTIONS_DEFAULT + * + * Default enabled log options. */ + + +#ifndef X86_64_ACCTON_ASXVOLT16_CONFIG_LOG_OPTIONS_DEFAULT +#define X86_64_ACCTON_ASXVOLT16_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT +#endif + +/** + * X86_64_ACCTON_ASXVOLT16_CONFIG_LOG_BITS_DEFAULT + * + * Default enabled log bits. */ + + +#ifndef X86_64_ACCTON_ASXVOLT16_CONFIG_LOG_BITS_DEFAULT +#define X86_64_ACCTON_ASXVOLT16_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT +#endif + +/** + * X86_64_ACCTON_ASXVOLT16_CONFIG_LOG_CUSTOM_BITS_DEFAULT + * + * Default enabled custom log bits. */ + + +#ifndef X86_64_ACCTON_ASXVOLT16_CONFIG_LOG_CUSTOM_BITS_DEFAULT +#define X86_64_ACCTON_ASXVOLT16_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 +#endif + +/** + * X86_64_ACCTON_ASXVOLT16_CONFIG_PORTING_STDLIB + * + * Default all porting macros to use the C standard libraries. */ + + +#ifndef X86_64_ACCTON_ASXVOLT16_CONFIG_PORTING_STDLIB +#define X86_64_ACCTON_ASXVOLT16_CONFIG_PORTING_STDLIB 1 +#endif + +/** + * X86_64_ACCTON_ASXVOLT16_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + * + * Include standard library headers for stdlib porting macros. */ + + +#ifndef X86_64_ACCTON_ASXVOLT16_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS +#define X86_64_ACCTON_ASXVOLT16_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS X86_64_ACCTON_ASXVOLT16_CONFIG_PORTING_STDLIB +#endif + +/** + * X86_64_ACCTON_ASXVOLT16_CONFIG_INCLUDE_UCLI + * + * Include generic uCli support. */ + + +#ifndef X86_64_ACCTON_ASXVOLT16_CONFIG_INCLUDE_UCLI +#define X86_64_ACCTON_ASXVOLT16_CONFIG_INCLUDE_UCLI 0 +#endif + +/** + * X86_64_ACCTON_ASXVOLT16_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION + * + * Assume chassis fan direction is the same as the PSU fan direction. */ + + +#ifndef X86_64_ACCTON_ASXVOLT16_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION +#define X86_64_ACCTON_ASXVOLT16_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION 0 +#endif + + + +/** + * All compile time options can be queried or displayed + */ + +/** Configuration settings structure. */ +typedef struct x86_64_accton_asxvolt16_config_settings_s { + /** name */ + const char* name; + /** value */ + const char* value; +} x86_64_accton_asxvolt16_config_settings_t; + +/** Configuration settings table. */ +/** x86_64_accton_asxvolt16_config_settings table. */ +extern x86_64_accton_asxvolt16_config_settings_t x86_64_accton_asxvolt16_config_settings[]; + +/** + * @brief Lookup a configuration setting. + * @param setting The name of the configuration option to lookup. + */ +const char* x86_64_accton_asxvolt16_config_lookup(const char* setting); + +/** + * @brief Show the compile-time configuration. + * @param pvs The output stream. + */ +int x86_64_accton_asxvolt16_config_show(struct aim_pvs_s* pvs); + +/* */ #include "x86_64_accton_asxvolt16_porting.h" -#endif /* __x86_64_accton_asxvolt16_CONFIG_H__ */ +#endif /* __X86_64_ACCTON_ASXVOLT16_CONFIG_H__ */ /* @} */ diff --git a/packages/platforms/accton/x86-64/asxvolt16/onlp/builds/x86_64_accton_asxvolt16/module/inc/x86_64_accton_asxvolt16/x86_64_accton_asxvolt16_porting.h b/packages/platforms/accton/x86-64/asxvolt16/onlp/builds/x86_64_accton_asxvolt16/module/inc/x86_64_accton_asxvolt16/x86_64_accton_asxvolt16_porting.h index 5f4d6f85..1f117b71 100755 --- a/packages/platforms/accton/x86-64/asxvolt16/onlp/builds/x86_64_accton_asxvolt16/module/inc/x86_64_accton_asxvolt16/x86_64_accton_asxvolt16_porting.h +++ b/packages/platforms/accton/x86-64/asxvolt16/onlp/builds/x86_64_accton_asxvolt16/module/inc/x86_64_accton_asxvolt16/x86_64_accton_asxvolt16_porting.h @@ -12,94 +12,94 @@ /* */ -#if x86_64_accton_asxvolt16_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 -#include -#include -#include -#include -#include -#endif - -#ifndef x86_64_accton_asxvolt16_MALLOC - #if defined(GLOBAL_MALLOC) - #define x86_64_accton_asxvolt16_MALLOC GLOBAL_MALLOC - #elif x86_64_accton_asxvolt16_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_asxvolt16_MALLOC malloc - #else - #error The macro x86_64_accton_asxvolt16_MALLOC is required but cannot be defined. - #endif -#endif - -#ifndef x86_64_accton_asxvolt16_FREE - #if defined(GLOBAL_FREE) - #define x86_64_accton_asxvolt16_FREE GLOBAL_FREE - #elif x86_64_accton_asxvolt16_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_asxvolt16_FREE free - #else - #error The macro x86_64_accton_asxvolt16_FREE is required but cannot be defined. - #endif -#endif - -#ifndef x86_64_accton_asxvolt16_MEMSET - #if defined(GLOBAL_MEMSET) - #define x86_64_accton_asxvolt16_MEMSET GLOBAL_MEMSET - #elif x86_64_accton_asxvolt16_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_asxvolt16_MEMSET memset - #else - #error The macro x86_64_accton_asxvolt16_MEMSET is required but cannot be defined. - #endif -#endif - -#ifndef x86_64_accton_asxvolt16_MEMCPY - #if defined(GLOBAL_MEMCPY) - #define x86_64_accton_asxvolt16_MEMCPY GLOBAL_MEMCPY - #elif x86_64_accton_asxvolt16_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_asxvolt16_MEMCPY memcpy - #else - #error The macro x86_64_accton_asxvolt16_MEMCPY is required but cannot be defined. - #endif -#endif - -#ifndef x86_64_accton_asxvolt16_STRNCPY - #if defined(GLOBAL_STRNCPY) - #define x86_64_accton_asxvolt16_STRNCPY GLOBAL_STRNCPY - #elif x86_64_accton_asxvolt16_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_asxvolt16_STRNCPY strncpy - #else - #error The macro x86_64_accton_asxvolt16_STRNCPY is required but cannot be defined. - #endif -#endif - -#ifndef x86_64_accton_asxvolt16_VSNPRINTF - #if defined(GLOBAL_VSNPRINTF) - #define x86_64_accton_asxvolt16_VSNPRINTF GLOBAL_VSNPRINTF - #elif x86_64_accton_asxvolt16_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_asxvolt16_VSNPRINTF vsnprintf - #else - #error The macro x86_64_accton_asxvolt16_VSNPRINTF is required but cannot be defined. - #endif -#endif - -#ifndef x86_64_accton_asxvolt16_SNPRINTF - #if defined(GLOBAL_SNPRINTF) - #define x86_64_accton_asxvolt16_SNPRINTF GLOBAL_SNPRINTF - #elif x86_64_accton_asxvolt16_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_asxvolt16_SNPRINTF snprintf - #else - #error The macro x86_64_accton_asxvolt16_SNPRINTF is required but cannot be defined. - #endif -#endif - -#ifndef x86_64_accton_asxvolt16_STRLEN - #if defined(GLOBAL_STRLEN) - #define x86_64_accton_asxvolt16_STRLEN GLOBAL_STRLEN - #elif x86_64_accton_asxvolt16_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_asxvolt16_STRLEN strlen - #else - #error The macro x86_64_accton_asxvolt16_STRLEN is required but cannot be defined. - #endif -#endif - +#if X86_64_ACCTON_ASXVOLT16_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 +#include +#include +#include +#include +#include +#endif + +#ifndef X86_64_ACCTON_ASXVOLT16_MALLOC + #if defined(GLOBAL_MALLOC) + #define X86_64_ACCTON_ASXVOLT16_MALLOC GLOBAL_MALLOC + #elif X86_64_ACCTON_ASXVOLT16_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_ASXVOLT16_MALLOC malloc + #else + #error The macro X86_64_ACCTON_ASXVOLT16_MALLOC is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_ASXVOLT16_FREE + #if defined(GLOBAL_FREE) + #define X86_64_ACCTON_ASXVOLT16_FREE GLOBAL_FREE + #elif X86_64_ACCTON_ASXVOLT16_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_ASXVOLT16_FREE free + #else + #error The macro X86_64_ACCTON_ASXVOLT16_FREE is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_ASXVOLT16_MEMSET + #if defined(GLOBAL_MEMSET) + #define X86_64_ACCTON_ASXVOLT16_MEMSET GLOBAL_MEMSET + #elif X86_64_ACCTON_ASXVOLT16_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_ASXVOLT16_MEMSET memset + #else + #error The macro X86_64_ACCTON_ASXVOLT16_MEMSET is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_ASXVOLT16_MEMCPY + #if defined(GLOBAL_MEMCPY) + #define X86_64_ACCTON_ASXVOLT16_MEMCPY GLOBAL_MEMCPY + #elif X86_64_ACCTON_ASXVOLT16_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_ASXVOLT16_MEMCPY memcpy + #else + #error The macro X86_64_ACCTON_ASXVOLT16_MEMCPY is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_ASXVOLT16_STRNCPY + #if defined(GLOBAL_STRNCPY) + #define X86_64_ACCTON_ASXVOLT16_STRNCPY GLOBAL_STRNCPY + #elif X86_64_ACCTON_ASXVOLT16_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_ASXVOLT16_STRNCPY strncpy + #else + #error The macro X86_64_ACCTON_ASXVOLT16_STRNCPY is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_ASXVOLT16_VSNPRINTF + #if defined(GLOBAL_VSNPRINTF) + #define X86_64_ACCTON_ASXVOLT16_VSNPRINTF GLOBAL_VSNPRINTF + #elif X86_64_ACCTON_ASXVOLT16_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_ASXVOLT16_VSNPRINTF vsnprintf + #else + #error The macro X86_64_ACCTON_ASXVOLT16_VSNPRINTF is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_ASXVOLT16_SNPRINTF + #if defined(GLOBAL_SNPRINTF) + #define X86_64_ACCTON_ASXVOLT16_SNPRINTF GLOBAL_SNPRINTF + #elif X86_64_ACCTON_ASXVOLT16_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_ASXVOLT16_SNPRINTF snprintf + #else + #error The macro X86_64_ACCTON_ASXVOLT16_SNPRINTF is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_ASXVOLT16_STRLEN + #if defined(GLOBAL_STRLEN) + #define X86_64_ACCTON_ASXVOLT16_STRLEN GLOBAL_STRLEN + #elif X86_64_ACCTON_ASXVOLT16_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_ASXVOLT16_STRLEN strlen + #else + #error The macro X86_64_ACCTON_ASXVOLT16_STRLEN is required but cannot be defined. + #endif +#endif + /* */ diff --git a/packages/platforms/accton/x86-64/asxvolt16/onlp/builds/x86_64_accton_asxvolt16/module/src/debug.c b/packages/platforms/accton/x86-64/asxvolt16/onlp/builds/x86_64_accton_asxvolt16/module/src/debug.c index 16485e36..b3c013a0 100755 --- a/packages/platforms/accton/x86-64/asxvolt16/onlp/builds/x86_64_accton_asxvolt16/module/src/debug.c +++ b/packages/platforms/accton/x86-64/asxvolt16/onlp/builds/x86_64_accton_asxvolt16/module/src/debug.c @@ -1,6 +1,6 @@ #include "x86_64_accton_asxvolt16_int.h" -#if x86_64_accton_asxvolt16_CONFIG_INCLUDE_DEBUG == 1 +#if X86_64_ACCTON_ASXVOLT16_CONFIG_INCLUDE_DEBUG == 1 #include diff --git a/packages/platforms/accton/x86-64/asxvolt16/onlp/builds/x86_64_accton_asxvolt16/module/src/x86_64_accton_asxvolt16_config.c b/packages/platforms/accton/x86-64/asxvolt16/onlp/builds/x86_64_accton_asxvolt16/module/src/x86_64_accton_asxvolt16_config.c index feebfba5..a6e62f07 100755 --- a/packages/platforms/accton/x86-64/asxvolt16/onlp/builds/x86_64_accton_asxvolt16/module/src/x86_64_accton_asxvolt16_config.c +++ b/packages/platforms/accton/x86-64/asxvolt16/onlp/builds/x86_64_accton_asxvolt16/module/src/x86_64_accton_asxvolt16_config.c @@ -5,77 +5,77 @@ *****************************************************************************/ #include -/* */ -#define __x86_64_accton_asxvolt16_config_STRINGIFY_NAME(_x) #_x -#define __x86_64_accton_asxvolt16_config_STRINGIFY_VALUE(_x) __x86_64_accton_asxvolt16_config_STRINGIFY_NAME(_x) -x86_64_accton_asxvolt16_config_settings_t x86_64_accton_asxvolt16_config_settings[] = -{ -#ifdef x86_64_accton_asxvolt16_CONFIG_INCLUDE_LOGGING - { __x86_64_accton_asxvolt16_config_STRINGIFY_NAME(x86_64_accton_asxvolt16_CONFIG_INCLUDE_LOGGING), __x86_64_accton_asxvolt16_config_STRINGIFY_VALUE(x86_64_accton_asxvolt16_CONFIG_INCLUDE_LOGGING) }, -#else -{ x86_64_accton_asxvolt16_CONFIG_INCLUDE_LOGGING(__x86_64_accton_asxvolt16_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef x86_64_accton_asxvolt16_CONFIG_LOG_OPTIONS_DEFAULT - { __x86_64_accton_asxvolt16_config_STRINGIFY_NAME(x86_64_accton_asxvolt16_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_accton_asxvolt16_config_STRINGIFY_VALUE(x86_64_accton_asxvolt16_CONFIG_LOG_OPTIONS_DEFAULT) }, -#else -{ x86_64_accton_asxvolt16_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_accton_asxvolt16_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef x86_64_accton_asxvolt16_CONFIG_LOG_BITS_DEFAULT - { __x86_64_accton_asxvolt16_config_STRINGIFY_NAME(x86_64_accton_asxvolt16_CONFIG_LOG_BITS_DEFAULT), __x86_64_accton_asxvolt16_config_STRINGIFY_VALUE(x86_64_accton_asxvolt16_CONFIG_LOG_BITS_DEFAULT) }, -#else -{ x86_64_accton_asxvolt16_CONFIG_LOG_BITS_DEFAULT(__x86_64_accton_asxvolt16_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef x86_64_accton_asxvolt16_CONFIG_LOG_CUSTOM_BITS_DEFAULT - { __x86_64_accton_asxvolt16_config_STRINGIFY_NAME(x86_64_accton_asxvolt16_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_accton_asxvolt16_config_STRINGIFY_VALUE(x86_64_accton_asxvolt16_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, -#else -{ x86_64_accton_asxvolt16_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_accton_asxvolt16_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef x86_64_accton_asxvolt16_CONFIG_PORTING_STDLIB - { __x86_64_accton_asxvolt16_config_STRINGIFY_NAME(x86_64_accton_asxvolt16_CONFIG_PORTING_STDLIB), __x86_64_accton_asxvolt16_config_STRINGIFY_VALUE(x86_64_accton_asxvolt16_CONFIG_PORTING_STDLIB) }, -#else -{ x86_64_accton_asxvolt16_CONFIG_PORTING_STDLIB(__x86_64_accton_asxvolt16_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef x86_64_accton_asxvolt16_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS - { __x86_64_accton_asxvolt16_config_STRINGIFY_NAME(x86_64_accton_asxvolt16_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_accton_asxvolt16_config_STRINGIFY_VALUE(x86_64_accton_asxvolt16_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, -#else -{ x86_64_accton_asxvolt16_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_accton_asxvolt16_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef x86_64_accton_asxvolt16_CONFIG_INCLUDE_UCLI - { __x86_64_accton_asxvolt16_config_STRINGIFY_NAME(x86_64_accton_asxvolt16_CONFIG_INCLUDE_UCLI), __x86_64_accton_asxvolt16_config_STRINGIFY_VALUE(x86_64_accton_asxvolt16_CONFIG_INCLUDE_UCLI) }, -#else -{ x86_64_accton_asxvolt16_CONFIG_INCLUDE_UCLI(__x86_64_accton_asxvolt16_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef x86_64_accton_asxvolt16_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION - { __x86_64_accton_asxvolt16_config_STRINGIFY_NAME(x86_64_accton_asxvolt16_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __x86_64_accton_asxvolt16_config_STRINGIFY_VALUE(x86_64_accton_asxvolt16_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, -#else -{ x86_64_accton_asxvolt16_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__x86_64_accton_asxvolt16_config_STRINGIFY_NAME), "__undefined__" }, -#endif - { NULL, NULL } -}; -#undef __x86_64_accton_asxvolt16_config_STRINGIFY_VALUE -#undef __x86_64_accton_asxvolt16_config_STRINGIFY_NAME - -const char* -x86_64_accton_asxvolt16_config_lookup(const char* setting) -{ - int i; - for(i = 0; x86_64_accton_asxvolt16_config_settings[i].name; i++) { - if(strcmp(x86_64_accton_asxvolt16_config_settings[i].name, setting)) { - return x86_64_accton_asxvolt16_config_settings[i].value; - } - } - return NULL; -} - -int -x86_64_accton_asxvolt16_config_show(struct aim_pvs_s* pvs) -{ - int i; - for(i = 0; x86_64_accton_asxvolt16_config_settings[i].name; i++) { - aim_printf(pvs, "%s = %s\n", x86_64_accton_asxvolt16_config_settings[i].name, x86_64_accton_asxvolt16_config_settings[i].value); - } - return i; -} - -/* */ +/* */ +#define __x86_64_accton_asxvolt16_config_STRINGIFY_NAME(_x) #_x +#define __x86_64_accton_asxvolt16_config_STRINGIFY_VALUE(_x) __x86_64_accton_asxvolt16_config_STRINGIFY_NAME(_x) +x86_64_accton_asxvolt16_config_settings_t x86_64_accton_asxvolt16_config_settings[] = +{ +#ifdef X86_64_ACCTON_ASXVOLT16_CONFIG_INCLUDE_LOGGING + { __x86_64_accton_asxvolt16_config_STRINGIFY_NAME(X86_64_ACCTON_ASXVOLT16_CONFIG_INCLUDE_LOGGING), __x86_64_accton_asxvolt16_config_STRINGIFY_VALUE(X86_64_ACCTON_ASXVOLT16_CONFIG_INCLUDE_LOGGING) }, +#else +{ X86_64_ACCTON_ASXVOLT16_CONFIG_INCLUDE_LOGGING(__x86_64_accton_asxvolt16_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_ASXVOLT16_CONFIG_LOG_OPTIONS_DEFAULT + { __x86_64_accton_asxvolt16_config_STRINGIFY_NAME(X86_64_ACCTON_ASXVOLT16_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_accton_asxvolt16_config_STRINGIFY_VALUE(X86_64_ACCTON_ASXVOLT16_CONFIG_LOG_OPTIONS_DEFAULT) }, +#else +{ X86_64_ACCTON_ASXVOLT16_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_accton_asxvolt16_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_ASXVOLT16_CONFIG_LOG_BITS_DEFAULT + { __x86_64_accton_asxvolt16_config_STRINGIFY_NAME(X86_64_ACCTON_ASXVOLT16_CONFIG_LOG_BITS_DEFAULT), __x86_64_accton_asxvolt16_config_STRINGIFY_VALUE(X86_64_ACCTON_ASXVOLT16_CONFIG_LOG_BITS_DEFAULT) }, +#else +{ X86_64_ACCTON_ASXVOLT16_CONFIG_LOG_BITS_DEFAULT(__x86_64_accton_asxvolt16_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_ASXVOLT16_CONFIG_LOG_CUSTOM_BITS_DEFAULT + { __x86_64_accton_asxvolt16_config_STRINGIFY_NAME(X86_64_ACCTON_ASXVOLT16_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_accton_asxvolt16_config_STRINGIFY_VALUE(X86_64_ACCTON_ASXVOLT16_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, +#else +{ X86_64_ACCTON_ASXVOLT16_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_accton_asxvolt16_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_ASXVOLT16_CONFIG_PORTING_STDLIB + { __x86_64_accton_asxvolt16_config_STRINGIFY_NAME(X86_64_ACCTON_ASXVOLT16_CONFIG_PORTING_STDLIB), __x86_64_accton_asxvolt16_config_STRINGIFY_VALUE(X86_64_ACCTON_ASXVOLT16_CONFIG_PORTING_STDLIB) }, +#else +{ X86_64_ACCTON_ASXVOLT16_CONFIG_PORTING_STDLIB(__x86_64_accton_asxvolt16_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_ASXVOLT16_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + { __x86_64_accton_asxvolt16_config_STRINGIFY_NAME(X86_64_ACCTON_ASXVOLT16_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_accton_asxvolt16_config_STRINGIFY_VALUE(X86_64_ACCTON_ASXVOLT16_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, +#else +{ X86_64_ACCTON_ASXVOLT16_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_accton_asxvolt16_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_ASXVOLT16_CONFIG_INCLUDE_UCLI + { __x86_64_accton_asxvolt16_config_STRINGIFY_NAME(X86_64_ACCTON_ASXVOLT16_CONFIG_INCLUDE_UCLI), __x86_64_accton_asxvolt16_config_STRINGIFY_VALUE(X86_64_ACCTON_ASXVOLT16_CONFIG_INCLUDE_UCLI) }, +#else +{ X86_64_ACCTON_ASXVOLT16_CONFIG_INCLUDE_UCLI(__x86_64_accton_asxvolt16_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_ASXVOLT16_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION + { __x86_64_accton_asxvolt16_config_STRINGIFY_NAME(X86_64_ACCTON_ASXVOLT16_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __x86_64_accton_asxvolt16_config_STRINGIFY_VALUE(X86_64_ACCTON_ASXVOLT16_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, +#else +{ X86_64_ACCTON_ASXVOLT16_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__x86_64_accton_asxvolt16_config_STRINGIFY_NAME), "__undefined__" }, +#endif + { NULL, NULL } +}; +#undef __x86_64_accton_asxvolt16_config_STRINGIFY_VALUE +#undef __x86_64_accton_asxvolt16_config_STRINGIFY_NAME + +const char* +x86_64_accton_asxvolt16_config_lookup(const char* setting) +{ + int i; + for(i = 0; x86_64_accton_asxvolt16_config_settings[i].name; i++) { + if(!strcmp(x86_64_accton_asxvolt16_config_settings[i].name, setting)) { + return x86_64_accton_asxvolt16_config_settings[i].value; + } + } + return NULL; +} + +int +x86_64_accton_asxvolt16_config_show(struct aim_pvs_s* pvs) +{ + int i; + for(i = 0; x86_64_accton_asxvolt16_config_settings[i].name; i++) { + aim_printf(pvs, "%s = %s\n", x86_64_accton_asxvolt16_config_settings[i].name, x86_64_accton_asxvolt16_config_settings[i].value); + } + return i; +} + +/* */ diff --git a/packages/platforms/accton/x86-64/asxvolt16/onlp/builds/x86_64_accton_asxvolt16/module/src/x86_64_accton_asxvolt16_log.c b/packages/platforms/accton/x86-64/asxvolt16/onlp/builds/x86_64_accton_asxvolt16/module/src/x86_64_accton_asxvolt16_log.c index b903d52c..2d899f3d 100755 --- a/packages/platforms/accton/x86-64/asxvolt16/onlp/builds/x86_64_accton_asxvolt16/module/src/x86_64_accton_asxvolt16_log.c +++ b/packages/platforms/accton/x86-64/asxvolt16/onlp/builds/x86_64_accton_asxvolt16/module/src/x86_64_accton_asxvolt16_log.c @@ -10,9 +10,9 @@ * x86_64_accton_asxvolt16 log struct. */ AIM_LOG_STRUCT_DEFINE( - x86_64_accton_asxvolt16_CONFIG_LOG_OPTIONS_DEFAULT, - x86_64_accton_asxvolt16_CONFIG_LOG_BITS_DEFAULT, + X86_64_ACCTON_ASXVOLT16_CONFIG_LOG_OPTIONS_DEFAULT, + X86_64_ACCTON_ASXVOLT16_CONFIG_LOG_BITS_DEFAULT, NULL, /* Custom log map */ - x86_64_accton_asxvolt16_CONFIG_LOG_CUSTOM_BITS_DEFAULT + X86_64_ACCTON_ASXVOLT16_CONFIG_LOG_CUSTOM_BITS_DEFAULT ); diff --git a/packages/platforms/accton/x86-64/asxvolt16/onlp/builds/x86_64_accton_asxvolt16/module/src/x86_64_accton_asxvolt16_ucli.c b/packages/platforms/accton/x86-64/asxvolt16/onlp/builds/x86_64_accton_asxvolt16/module/src/x86_64_accton_asxvolt16_ucli.c index b28a55d7..29aa476e 100755 --- a/packages/platforms/accton/x86-64/asxvolt16/onlp/builds/x86_64_accton_asxvolt16/module/src/x86_64_accton_asxvolt16_ucli.c +++ b/packages/platforms/accton/x86-64/asxvolt16/onlp/builds/x86_64_accton_asxvolt16/module/src/x86_64_accton_asxvolt16_ucli.c @@ -5,7 +5,7 @@ *****************************************************************************/ #include -#if x86_64_accton_asxvolt16_CONFIG_INCLUDE_UCLI == 1 +#if X86_64_ACCTON_ASXVOLT16_CONFIG_INCLUDE_UCLI == 1 #include #include diff --git a/packages/platforms/accton/x86-64/csp9250/onlp/builds/x86_64_accton_csp9250/Makefile b/packages/platforms/accton/x86-64/csp9250/onlp/builds/x86_64_accton_csp9250/Makefile index 5d0c54b2..14a06e19 100755 --- a/packages/platforms/accton/x86-64/csp9250/onlp/builds/x86_64_accton_csp9250/Makefile +++ b/packages/platforms/accton/x86-64/csp9250/onlp/builds/x86_64_accton_csp9250/Makefile @@ -1,9 +1,9 @@ ############################################################################### # -# +# # ############################################################################### -include ../../init.mk +include $(ONL)/make/config.mk MODULE := x86_64_accton_csp9250 AUTOMODULE := x86_64_accton_csp9250 include $(BUILDER)/definemodule.mk diff --git a/packages/platforms/accton/x86-64/csp9250/onlp/builds/x86_64_accton_csp9250/module/auto/x86_64_accton_csp9250.yml b/packages/platforms/accton/x86-64/csp9250/onlp/builds/x86_64_accton_csp9250/module/auto/x86_64_accton_csp9250.yml index 227f3670..179347cd 100755 --- a/packages/platforms/accton/x86-64/csp9250/onlp/builds/x86_64_accton_csp9250/module/auto/x86_64_accton_csp9250.yml +++ b/packages/platforms/accton/x86-64/csp9250/onlp/builds/x86_64_accton_csp9250/module/auto/x86_64_accton_csp9250.yml @@ -5,35 +5,35 @@ ############################################################################### cdefs: &cdefs -- x86_64_accton_csp9250_CONFIG_INCLUDE_LOGGING: +- X86_64_ACCTON_CSP9250_CONFIG_INCLUDE_LOGGING: doc: "Include or exclude logging." default: 1 -- x86_64_accton_csp9250_CONFIG_LOG_OPTIONS_DEFAULT: +- X86_64_ACCTON_CSP9250_CONFIG_LOG_OPTIONS_DEFAULT: doc: "Default enabled log options." default: AIM_LOG_OPTIONS_DEFAULT -- x86_64_accton_csp9250_CONFIG_LOG_BITS_DEFAULT: +- X86_64_ACCTON_CSP9250_CONFIG_LOG_BITS_DEFAULT: doc: "Default enabled log bits." default: AIM_LOG_BITS_DEFAULT -- x86_64_accton_csp9250_CONFIG_LOG_CUSTOM_BITS_DEFAULT: +- X86_64_ACCTON_CSP9250_CONFIG_LOG_CUSTOM_BITS_DEFAULT: doc: "Default enabled custom log bits." default: 0 -- x86_64_accton_csp9250_CONFIG_PORTING_STDLIB: +- X86_64_ACCTON_CSP9250_CONFIG_PORTING_STDLIB: doc: "Default all porting macros to use the C standard libraries." default: 1 -- x86_64_accton_csp9250_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS: +- X86_64_ACCTON_CSP9250_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS: doc: "Include standard library headers for stdlib porting macros." - default: x86_64_accton_csp9250_CONFIG_PORTING_STDLIB -- x86_64_accton_csp9250_CONFIG_INCLUDE_UCLI: + default: X86_64_ACCTON_CSP9250_CONFIG_PORTING_STDLIB +- X86_64_ACCTON_CSP9250_CONFIG_INCLUDE_UCLI: doc: "Include generic uCli support." default: 0 -- x86_64_accton_csp9250_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION: +- X86_64_ACCTON_CSP9250_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION: doc: "Assume chassis fan direction is the same as the PSU fan direction." default: 0 definitions: cdefs: - x86_64_accton_csp9250_CONFIG_HEADER: + X86_64_ACCTON_CSP9250_CONFIG_HEADER: defs: *cdefs basename: x86_64_accton_csp9250_config diff --git a/packages/platforms/accton/x86-64/csp9250/onlp/builds/x86_64_accton_csp9250/module/inc/x86_64_accton_csp9250/x86_64_accton_csp9250_config.h b/packages/platforms/accton/x86-64/csp9250/onlp/builds/x86_64_accton_csp9250/module/inc/x86_64_accton_csp9250/x86_64_accton_csp9250_config.h index 142f9e22..adecc654 100755 --- a/packages/platforms/accton/x86-64/csp9250/onlp/builds/x86_64_accton_csp9250/module/inc/x86_64_accton_csp9250/x86_64_accton_csp9250_config.h +++ b/packages/platforms/accton/x86-64/csp9250/onlp/builds/x86_64_accton_csp9250/module/inc/x86_64_accton_csp9250/x86_64_accton_csp9250_config.h @@ -7,8 +7,8 @@ * @{ * *****************************************************************************/ -#ifndef __x86_64_accton_csp9250_CONFIG_H__ -#define __x86_64_accton_csp9250_CONFIG_H__ +#ifndef __X86_64_ACCTON_CSP9250_CONFIG_H__ +#define __X86_64_ACCTON_CSP9250_CONFIG_H__ #ifdef GLOBAL_INCLUDE_CUSTOM_CONFIG #include @@ -17,86 +17,86 @@ #include #endif -/* */ +/* */ #include /** - * x86_64_accton_csp9250_CONFIG_INCLUDE_LOGGING + * X86_64_ACCTON_CSP9250_CONFIG_INCLUDE_LOGGING * * Include or exclude logging. */ -#ifndef x86_64_accton_csp9250_CONFIG_INCLUDE_LOGGING -#define x86_64_accton_csp9250_CONFIG_INCLUDE_LOGGING 1 +#ifndef X86_64_ACCTON_CSP9250_CONFIG_INCLUDE_LOGGING +#define X86_64_ACCTON_CSP9250_CONFIG_INCLUDE_LOGGING 1 #endif /** - * x86_64_accton_csp9250_CONFIG_LOG_OPTIONS_DEFAULT + * X86_64_ACCTON_CSP9250_CONFIG_LOG_OPTIONS_DEFAULT * * Default enabled log options. */ -#ifndef x86_64_accton_csp9250_CONFIG_LOG_OPTIONS_DEFAULT -#define x86_64_accton_csp9250_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT +#ifndef X86_64_ACCTON_CSP9250_CONFIG_LOG_OPTIONS_DEFAULT +#define X86_64_ACCTON_CSP9250_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT #endif /** - * x86_64_accton_csp9250_CONFIG_LOG_BITS_DEFAULT + * X86_64_ACCTON_CSP9250_CONFIG_LOG_BITS_DEFAULT * * Default enabled log bits. */ -#ifndef x86_64_accton_csp9250_CONFIG_LOG_BITS_DEFAULT -#define x86_64_accton_csp9250_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT +#ifndef X86_64_ACCTON_CSP9250_CONFIG_LOG_BITS_DEFAULT +#define X86_64_ACCTON_CSP9250_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT #endif /** - * x86_64_accton_csp9250_CONFIG_LOG_CUSTOM_BITS_DEFAULT + * X86_64_ACCTON_CSP9250_CONFIG_LOG_CUSTOM_BITS_DEFAULT * * Default enabled custom log bits. */ -#ifndef x86_64_accton_csp9250_CONFIG_LOG_CUSTOM_BITS_DEFAULT -#define x86_64_accton_csp9250_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 +#ifndef X86_64_ACCTON_CSP9250_CONFIG_LOG_CUSTOM_BITS_DEFAULT +#define X86_64_ACCTON_CSP9250_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 #endif /** - * x86_64_accton_csp9250_CONFIG_PORTING_STDLIB + * X86_64_ACCTON_CSP9250_CONFIG_PORTING_STDLIB * * Default all porting macros to use the C standard libraries. */ -#ifndef x86_64_accton_csp9250_CONFIG_PORTING_STDLIB -#define x86_64_accton_csp9250_CONFIG_PORTING_STDLIB 1 +#ifndef X86_64_ACCTON_CSP9250_CONFIG_PORTING_STDLIB +#define X86_64_ACCTON_CSP9250_CONFIG_PORTING_STDLIB 1 #endif /** - * x86_64_accton_csp9250_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + * X86_64_ACCTON_CSP9250_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS * * Include standard library headers for stdlib porting macros. */ -#ifndef x86_64_accton_csp9250_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS -#define x86_64_accton_csp9250_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS x86_64_accton_as5512_54x_CONFIG_PORTING_STDLIB +#ifndef X86_64_ACCTON_CSP9250_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS +#define X86_64_ACCTON_CSP9250_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS X86_64_ACCTON_CSP9250_CONFIG_PORTING_STDLIB #endif /** - * x86_64_accton_csp9250_CONFIG_INCLUDE_UCLI + * X86_64_ACCTON_CSP9250_CONFIG_INCLUDE_UCLI * * Include generic uCli support. */ -#ifndef x86_64_accton_csp9250_CONFIG_INCLUDE_UCLI -#define x86_64_accton_csp9250_CONFIG_INCLUDE_UCLI 0 +#ifndef X86_64_ACCTON_CSP9250_CONFIG_INCLUDE_UCLI +#define X86_64_ACCTON_CSP9250_CONFIG_INCLUDE_UCLI 0 #endif /** - * x86_64_accton_csp9250_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION + * X86_64_ACCTON_CSP9250_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION * * Assume chassis fan direction is the same as the PSU fan direction. */ -#ifndef x86_64_accton_csp9250_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION -#define x86_64_accton_csp9250_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION 0 +#ifndef X86_64_ACCTON_CSP9250_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION +#define X86_64_ACCTON_CSP9250_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION 0 #endif @@ -129,9 +129,9 @@ const char* x86_64_accton_csp9250_config_lookup(const char* setting); */ int x86_64_accton_csp9250_config_show(struct aim_pvs_s* pvs); -/* */ +/* */ #include "x86_64_accton_csp9250_porting.h" -#endif /* __x86_64_accton_csp9250_CONFIG_H__ */ +#endif /* __X86_64_ACCTON_CSP9250_CONFIG_H__ */ /* @} */ diff --git a/packages/platforms/accton/x86-64/csp9250/onlp/builds/x86_64_accton_csp9250/module/inc/x86_64_accton_csp9250/x86_64_accton_csp9250_porting.h b/packages/platforms/accton/x86-64/csp9250/onlp/builds/x86_64_accton_csp9250/module/inc/x86_64_accton_csp9250/x86_64_accton_csp9250_porting.h index c5ecbb13..6b56b58b 100755 --- a/packages/platforms/accton/x86-64/csp9250/onlp/builds/x86_64_accton_csp9250/module/inc/x86_64_accton_csp9250/x86_64_accton_csp9250_porting.h +++ b/packages/platforms/accton/x86-64/csp9250/onlp/builds/x86_64_accton_csp9250/module/inc/x86_64_accton_csp9250/x86_64_accton_csp9250_porting.h @@ -12,7 +12,7 @@ /* */ -#if x86_64_accton_csp9250_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 +#if X86_64_ACCTON_CSP9250_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 #include #include #include @@ -20,83 +20,83 @@ #include #endif -#ifndef x86_64_accton_csp9250_MALLOC +#ifndef X86_64_ACCTON_CSP9250_MALLOC #if defined(GLOBAL_MALLOC) - #define x86_64_accton_csp9250_MALLOC GLOBAL_MALLOC - #elif x86_64_accton_csp9250_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_csp9250_MALLOC malloc + #define X86_64_ACCTON_CSP9250_MALLOC GLOBAL_MALLOC + #elif X86_64_ACCTON_CSP9250_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_CSP9250_MALLOC malloc #else - #error The macro x86_64_accton_csp9250_MALLOC is required but cannot be defined. + #error The macro X86_64_ACCTON_CSP9250_MALLOC is required but cannot be defined. #endif #endif -#ifndef x86_64_accton_csp9250_FREE +#ifndef X86_64_ACCTON_CSP9250_FREE #if defined(GLOBAL_FREE) - #define x86_64_accton_csp9250_FREE GLOBAL_FREE - #elif x86_64_accton_csp9250_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_csp9250_FREE free + #define X86_64_ACCTON_CSP9250_FREE GLOBAL_FREE + #elif X86_64_ACCTON_CSP9250_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_CSP9250_FREE free #else - #error The macro x86_64_accton_csp9250_FREE is required but cannot be defined. + #error The macro X86_64_ACCTON_CSP9250_FREE is required but cannot be defined. #endif #endif -#ifndef x86_64_accton_csp9250_MEMSET +#ifndef X86_64_ACCTON_CSP9250_MEMSET #if defined(GLOBAL_MEMSET) - #define x86_64_accton_csp9250_MEMSET GLOBAL_MEMSET - #elif x86_64_accton_csp9250_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_csp9250_MEMSET memset + #define X86_64_ACCTON_CSP9250_MEMSET GLOBAL_MEMSET + #elif X86_64_ACCTON_CSP9250_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_CSP9250_MEMSET memset #else - #error The macro x86_64_accton_csp9250_MEMSET is required but cannot be defined. + #error The macro X86_64_ACCTON_CSP9250_MEMSET is required but cannot be defined. #endif #endif -#ifndef x86_64_accton_csp9250_MEMCPY +#ifndef X86_64_ACCTON_CSP9250_MEMCPY #if defined(GLOBAL_MEMCPY) - #define x86_64_accton_csp9250_MEMCPY GLOBAL_MEMCPY - #elif x86_64_accton_csp9250_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_csp9250_MEMCPY memcpy + #define X86_64_ACCTON_CSP9250_MEMCPY GLOBAL_MEMCPY + #elif X86_64_ACCTON_CSP9250_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_CSP9250_MEMCPY memcpy #else - #error The macro x86_64_accton_csp9250_MEMCPY is required but cannot be defined. + #error The macro X86_64_ACCTON_CSP9250_MEMCPY is required but cannot be defined. #endif #endif -#ifndef x86_64_accton_csp9250_STRNCPY +#ifndef X86_64_ACCTON_CSP9250_STRNCPY #if defined(GLOBAL_STRNCPY) - #define x86_64_accton_csp9250_STRNCPY GLOBAL_STRNCPY - #elif x86_64_accton_csp9250_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_csp9250_STRNCPY strncpy + #define X86_64_ACCTON_CSP9250_STRNCPY GLOBAL_STRNCPY + #elif X86_64_ACCTON_CSP9250_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_CSP9250_STRNCPY strncpy #else - #error The macro x86_64_accton_csp9250_STRNCPY is required but cannot be defined. + #error The macro X86_64_ACCTON_CSP9250_STRNCPY is required but cannot be defined. #endif #endif -#ifndef x86_64_accton_csp9250_VSNPRINTF +#ifndef X86_64_ACCTON_CSP9250_VSNPRINTF #if defined(GLOBAL_VSNPRINTF) - #define x86_64_accton_csp9250_VSNPRINTF GLOBAL_VSNPRINTF - #elif x86_64_accton_csp9250_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_csp9250_VSNPRINTF vsnprintf + #define X86_64_ACCTON_CSP9250_VSNPRINTF GLOBAL_VSNPRINTF + #elif X86_64_ACCTON_CSP9250_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_CSP9250_VSNPRINTF vsnprintf #else - #error The macro x86_64_accton_csp9250_VSNPRINTF is required but cannot be defined. + #error The macro X86_64_ACCTON_CSP9250_VSNPRINTF is required but cannot be defined. #endif #endif -#ifndef x86_64_accton_csp9250_SNPRINTF +#ifndef X86_64_ACCTON_CSP9250_SNPRINTF #if defined(GLOBAL_SNPRINTF) - #define x86_64_accton_csp9250_SNPRINTF GLOBAL_SNPRINTF - #elif x86_64_accton_csp9250_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_csp9250_SNPRINTF snprintf + #define X86_64_ACCTON_CSP9250_SNPRINTF GLOBAL_SNPRINTF + #elif X86_64_ACCTON_CSP9250_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_CSP9250_SNPRINTF snprintf #else - #error The macro x86_64_accton_csp9250_SNPRINTF is required but cannot be defined. + #error The macro X86_64_ACCTON_CSP9250_SNPRINTF is required but cannot be defined. #endif #endif -#ifndef x86_64_accton_csp9250_STRLEN +#ifndef X86_64_ACCTON_CSP9250_STRLEN #if defined(GLOBAL_STRLEN) - #define x86_64_accton_csp9250_STRLEN GLOBAL_STRLEN - #elif x86_64_accton_csp9250_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_csp9250_STRLEN strlen + #define X86_64_ACCTON_CSP9250_STRLEN GLOBAL_STRLEN + #elif X86_64_ACCTON_CSP9250_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_CSP9250_STRLEN strlen #else - #error The macro x86_64_accton_csp9250_STRLEN is required but cannot be defined. + #error The macro X86_64_ACCTON_CSP9250_STRLEN is required but cannot be defined. #endif #endif diff --git a/packages/platforms/accton/x86-64/csp9250/onlp/builds/x86_64_accton_csp9250/module/src/debug.c b/packages/platforms/accton/x86-64/csp9250/onlp/builds/x86_64_accton_csp9250/module/src/debug.c index 2c01a6b3..37489844 100755 --- a/packages/platforms/accton/x86-64/csp9250/onlp/builds/x86_64_accton_csp9250/module/src/debug.c +++ b/packages/platforms/accton/x86-64/csp9250/onlp/builds/x86_64_accton_csp9250/module/src/debug.c @@ -1,6 +1,6 @@ #include "x86_64_accton_csp9250_int.h" -#if x86_64_accton_csp9250_CONFIG_INCLUDE_DEBUG == 1 +#if X86_64_ACCTON_CSP9250_CONFIG_INCLUDE_DEBUG == 1 #include diff --git a/packages/platforms/accton/x86-64/csp9250/onlp/builds/x86_64_accton_csp9250/module/src/x86_64_accton_csp9250_config.c b/packages/platforms/accton/x86-64/csp9250/onlp/builds/x86_64_accton_csp9250/module/src/x86_64_accton_csp9250_config.c index 9caedcad..c7ae13f9 100755 --- a/packages/platforms/accton/x86-64/csp9250/onlp/builds/x86_64_accton_csp9250/module/src/x86_64_accton_csp9250_config.c +++ b/packages/platforms/accton/x86-64/csp9250/onlp/builds/x86_64_accton_csp9250/module/src/x86_64_accton_csp9250_config.c @@ -5,50 +5,50 @@ *****************************************************************************/ #include -/* */ +/* */ #define __x86_64_accton_csp9250_config_STRINGIFY_NAME(_x) #_x #define __x86_64_accton_csp9250_config_STRINGIFY_VALUE(_x) __x86_64_accton_csp9250_config_STRINGIFY_NAME(_x) x86_64_accton_csp9250_config_settings_t x86_64_accton_csp9250_config_settings[] = { -#ifdef x86_64_accton_csp9250_CONFIG_INCLUDE_LOGGING - { __x86_64_accton_csp9250_config_STRINGIFY_NAME(x86_64_accton_csp9250_CONFIG_INCLUDE_LOGGING), __x86_64_accton_csp9250_config_STRINGIFY_VALUE(x86_64_accton_csp9250_CONFIG_INCLUDE_LOGGING) }, +#ifdef X86_64_ACCTON_CSP9250_CONFIG_INCLUDE_LOGGING + { __x86_64_accton_csp9250_config_STRINGIFY_NAME(X86_64_ACCTON_CSP9250_CONFIG_INCLUDE_LOGGING), __x86_64_accton_csp9250_config_STRINGIFY_VALUE(X86_64_ACCTON_CSP9250_CONFIG_INCLUDE_LOGGING) }, #else -{ x86_64_accton_csp9250_CONFIG_INCLUDE_LOGGING(__x86_64_accton_csp9250_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_ACCTON_CSP9250_CONFIG_INCLUDE_LOGGING(__x86_64_accton_csp9250_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_accton_csp9250_CONFIG_LOG_OPTIONS_DEFAULT - { __x86_64_accton_csp9250_config_STRINGIFY_NAME(x86_64_accton_csp9250_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_accton_csp9250_config_STRINGIFY_VALUE(x86_64_accton_csp9250_CONFIG_LOG_OPTIONS_DEFAULT) }, +#ifdef X86_64_ACCTON_CSP9250_CONFIG_LOG_OPTIONS_DEFAULT + { __x86_64_accton_csp9250_config_STRINGIFY_NAME(X86_64_ACCTON_CSP9250_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_accton_csp9250_config_STRINGIFY_VALUE(X86_64_ACCTON_CSP9250_CONFIG_LOG_OPTIONS_DEFAULT) }, #else -{ x86_64_accton_csp9250_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_accton_csp9250_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_ACCTON_CSP9250_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_accton_csp9250_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_accton_csp9250_CONFIG_LOG_BITS_DEFAULT - { __x86_64_accton_csp9250_config_STRINGIFY_NAME(x86_64_accton_csp9250_CONFIG_LOG_BITS_DEFAULT), __x86_64_accton_csp9250_config_STRINGIFY_VALUE(x86_64_accton_csp9250_CONFIG_LOG_BITS_DEFAULT) }, +#ifdef X86_64_ACCTON_CSP9250_CONFIG_LOG_BITS_DEFAULT + { __x86_64_accton_csp9250_config_STRINGIFY_NAME(X86_64_ACCTON_CSP9250_CONFIG_LOG_BITS_DEFAULT), __x86_64_accton_csp9250_config_STRINGIFY_VALUE(X86_64_ACCTON_CSP9250_CONFIG_LOG_BITS_DEFAULT) }, #else -{ x86_64_accton_csp9250_CONFIG_LOG_BITS_DEFAULT(__x86_64_accton_csp9250_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_ACCTON_CSP9250_CONFIG_LOG_BITS_DEFAULT(__x86_64_accton_csp9250_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_accton_csp9250_CONFIG_LOG_CUSTOM_BITS_DEFAULT - { __x86_64_accton_csp9250_config_STRINGIFY_NAME(x86_64_accton_csp9250_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_accton_csp9250_config_STRINGIFY_VALUE(x86_64_accton_csp9250_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, +#ifdef X86_64_ACCTON_CSP9250_CONFIG_LOG_CUSTOM_BITS_DEFAULT + { __x86_64_accton_csp9250_config_STRINGIFY_NAME(X86_64_ACCTON_CSP9250_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_accton_csp9250_config_STRINGIFY_VALUE(X86_64_ACCTON_CSP9250_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, #else -{ x86_64_accton_csp9250_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_accton_csp9250_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_ACCTON_CSP9250_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_accton_csp9250_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_accton_csp9250_CONFIG_PORTING_STDLIB - { __x86_64_accton_csp9250_config_STRINGIFY_NAME(x86_64_accton_csp9250_CONFIG_PORTING_STDLIB), __x86_64_accton_csp9250_config_STRINGIFY_VALUE(x86_64_accton_csp9250_CONFIG_PORTING_STDLIB) }, +#ifdef X86_64_ACCTON_CSP9250_CONFIG_PORTING_STDLIB + { __x86_64_accton_csp9250_config_STRINGIFY_NAME(X86_64_ACCTON_CSP9250_CONFIG_PORTING_STDLIB), __x86_64_accton_csp9250_config_STRINGIFY_VALUE(X86_64_ACCTON_CSP9250_CONFIG_PORTING_STDLIB) }, #else -{ x86_64_accton_csp9250_CONFIG_PORTING_STDLIB(__x86_64_accton_csp9250_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_ACCTON_CSP9250_CONFIG_PORTING_STDLIB(__x86_64_accton_csp9250_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_accton_csp9250_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS - { __x86_64_accton_csp9250_config_STRINGIFY_NAME(x86_64_accton_csp9250_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_accton_csp9250_config_STRINGIFY_VALUE(x86_64_accton_csp9250_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, +#ifdef X86_64_ACCTON_CSP9250_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + { __x86_64_accton_csp9250_config_STRINGIFY_NAME(X86_64_ACCTON_CSP9250_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_accton_csp9250_config_STRINGIFY_VALUE(X86_64_ACCTON_CSP9250_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, #else -{ x86_64_accton_csp9250_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_accton_csp9250_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_ACCTON_CSP9250_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_accton_csp9250_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_accton_csp9250_CONFIG_INCLUDE_UCLI - { __x86_64_accton_csp9250_config_STRINGIFY_NAME(x86_64_accton_csp9250_CONFIG_INCLUDE_UCLI), __x86_64_accton_csp9250_config_STRINGIFY_VALUE(x86_64_accton_csp9250_CONFIG_INCLUDE_UCLI) }, +#ifdef X86_64_ACCTON_CSP9250_CONFIG_INCLUDE_UCLI + { __x86_64_accton_csp9250_config_STRINGIFY_NAME(X86_64_ACCTON_CSP9250_CONFIG_INCLUDE_UCLI), __x86_64_accton_csp9250_config_STRINGIFY_VALUE(X86_64_ACCTON_CSP9250_CONFIG_INCLUDE_UCLI) }, #else -{ x86_64_accton_csp9250_CONFIG_INCLUDE_UCLI(__x86_64_accton_csp9250_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_ACCTON_CSP9250_CONFIG_INCLUDE_UCLI(__x86_64_accton_csp9250_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_accton_csp9250_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION - { __x86_64_accton_csp9250_config_STRINGIFY_NAME(x86_64_accton_csp9250_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __x86_64_accton_csp9250_config_STRINGIFY_VALUE(x86_64_accton_csp9250_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, +#ifdef X86_64_ACCTON_CSP9250_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION + { __x86_64_accton_csp9250_config_STRINGIFY_NAME(X86_64_ACCTON_CSP9250_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __x86_64_accton_csp9250_config_STRINGIFY_VALUE(X86_64_ACCTON_CSP9250_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, #else -{ x86_64_accton_csp9250_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__x86_64_accton_csp9250_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_ACCTON_CSP9250_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__x86_64_accton_csp9250_config_STRINGIFY_NAME), "__undefined__" }, #endif { NULL, NULL } }; @@ -60,7 +60,7 @@ x86_64_accton_csp9250_config_lookup(const char* setting) { int i; for(i = 0; x86_64_accton_csp9250_config_settings[i].name; i++) { - if(strcmp(x86_64_accton_csp9250_config_settings[i].name, setting)) { + if(!strcmp(x86_64_accton_csp9250_config_settings[i].name, setting)) { return x86_64_accton_csp9250_config_settings[i].value; } } @@ -77,5 +77,5 @@ x86_64_accton_csp9250_config_show(struct aim_pvs_s* pvs) return i; } -/* */ +/* */ diff --git a/packages/platforms/accton/x86-64/csp9250/onlp/builds/x86_64_accton_csp9250/module/src/x86_64_accton_csp9250_log.c b/packages/platforms/accton/x86-64/csp9250/onlp/builds/x86_64_accton_csp9250/module/src/x86_64_accton_csp9250_log.c index 58133bcf..ffde0067 100755 --- a/packages/platforms/accton/x86-64/csp9250/onlp/builds/x86_64_accton_csp9250/module/src/x86_64_accton_csp9250_log.c +++ b/packages/platforms/accton/x86-64/csp9250/onlp/builds/x86_64_accton_csp9250/module/src/x86_64_accton_csp9250_log.c @@ -10,9 +10,9 @@ * x86_64_accton_csp9250 log struct. */ AIM_LOG_STRUCT_DEFINE( - x86_64_accton_csp9250_CONFIG_LOG_OPTIONS_DEFAULT, - x86_64_accton_csp9250_CONFIG_LOG_BITS_DEFAULT, + X86_64_ACCTON_CSP9250_CONFIG_LOG_OPTIONS_DEFAULT, + X86_64_ACCTON_CSP9250_CONFIG_LOG_BITS_DEFAULT, NULL, /* Custom log map */ - x86_64_accton_csp9250_CONFIG_LOG_CUSTOM_BITS_DEFAULT + X86_64_ACCTON_CSP9250_CONFIG_LOG_CUSTOM_BITS_DEFAULT ); diff --git a/packages/platforms/accton/x86-64/csp9250/onlp/builds/x86_64_accton_csp9250/module/src/x86_64_accton_csp9250_ucli.c b/packages/platforms/accton/x86-64/csp9250/onlp/builds/x86_64_accton_csp9250/module/src/x86_64_accton_csp9250_ucli.c index 4159759e..cba8f135 100755 --- a/packages/platforms/accton/x86-64/csp9250/onlp/builds/x86_64_accton_csp9250/module/src/x86_64_accton_csp9250_ucli.c +++ b/packages/platforms/accton/x86-64/csp9250/onlp/builds/x86_64_accton_csp9250/module/src/x86_64_accton_csp9250_ucli.c @@ -5,7 +5,7 @@ *****************************************************************************/ #include -#if x86_64_accton_csp9250_CONFIG_INCLUDE_UCLI == 1 +#if X86_64_ACCTON_CSP9250_CONFIG_INCLUDE_UCLI == 1 #include #include diff --git a/packages/platforms/accton/x86-64/csp9250/onlp/builds/x86_64_accton_csp9250/x86_64_accton_csp9250.mk b/packages/platforms/accton/x86-64/csp9250/onlp/builds/x86_64_accton_csp9250/x86_64_accton_csp9250.mk index c0a81e05..32086ca0 100755 --- a/packages/platforms/accton/x86-64/csp9250/onlp/builds/x86_64_accton_csp9250/x86_64_accton_csp9250.mk +++ b/packages/platforms/accton/x86-64/csp9250/onlp/builds/x86_64_accton_csp9250/x86_64_accton_csp9250.mk @@ -3,11 +3,11 @@ # # Inclusive Makefile for the x86_64_accton_csp9250 module. # -# Autogenerated 2017-08-10 09:44:26.279780 +# Autogenerated 2019-07-13 17:26:28.784151 # ############################################################################### x86_64_accton_csp9250_BASEDIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST)))) include $(x86_64_accton_csp9250_BASEDIR)module/make.mk -include $(x86_64_accton_csp9250_BASEDIR)module/src/make.mk include $(x86_64_accton_csp9250_BASEDIR)module/auto/make.mk +include $(x86_64_accton_csp9250_BASEDIR)module/src/make.mk diff --git a/packages/platforms/accton/x86-64/minipack/onlp/builds/x86_64_accton_minipack/Makefile b/packages/platforms/accton/x86-64/minipack/onlp/builds/x86_64_accton_minipack/Makefile index 7a42f8d0..b7bf16a8 100644 --- a/packages/platforms/accton/x86-64/minipack/onlp/builds/x86_64_accton_minipack/Makefile +++ b/packages/platforms/accton/x86-64/minipack/onlp/builds/x86_64_accton_minipack/Makefile @@ -1,9 +1,9 @@ ############################################################################### # -# +# # ############################################################################### -include ../../init.mk +include $(ONL)/make/config.mk MODULE := x86_64_accton_minipack AUTOMODULE := x86_64_accton_minipack include $(BUILDER)/definemodule.mk diff --git a/packages/platforms/accton/x86-64/minipack/onlp/builds/x86_64_accton_minipack/module/inc/x86_64_accton_minipack/x86_64_accton_minipack_config.h b/packages/platforms/accton/x86-64/minipack/onlp/builds/x86_64_accton_minipack/module/inc/x86_64_accton_minipack/x86_64_accton_minipack_config.h index 43c78a91..5dfe353c 100644 --- a/packages/platforms/accton/x86-64/minipack/onlp/builds/x86_64_accton_minipack/module/inc/x86_64_accton_minipack/x86_64_accton_minipack_config.h +++ b/packages/platforms/accton/x86-64/minipack/onlp/builds/x86_64_accton_minipack/module/inc/x86_64_accton_minipack/x86_64_accton_minipack_config.h @@ -18,117 +18,117 @@ #endif /* */ -#include -/** - * X86_64_ACCTON_MINIPACK_CONFIG_INCLUDE_LOGGING - * - * Include or exclude logging. */ - - -#ifndef X86_64_ACCTON_MINIPACK_CONFIG_INCLUDE_LOGGING -#define X86_64_ACCTON_MINIPACK_CONFIG_INCLUDE_LOGGING 1 -#endif - -/** - * X86_64_ACCTON_MINIPACK_CONFIG_LOG_OPTIONS_DEFAULT - * - * Default enabled log options. */ - - -#ifndef X86_64_ACCTON_MINIPACK_CONFIG_LOG_OPTIONS_DEFAULT -#define X86_64_ACCTON_MINIPACK_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT -#endif - -/** - * X86_64_ACCTON_MINIPACK_CONFIG_LOG_BITS_DEFAULT - * - * Default enabled log bits. */ - - -#ifndef X86_64_ACCTON_MINIPACK_CONFIG_LOG_BITS_DEFAULT -#define X86_64_ACCTON_MINIPACK_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT -#endif - -/** - * X86_64_ACCTON_MINIPACK_CONFIG_LOG_CUSTOM_BITS_DEFAULT - * - * Default enabled custom log bits. */ - - -#ifndef X86_64_ACCTON_MINIPACK_CONFIG_LOG_CUSTOM_BITS_DEFAULT -#define X86_64_ACCTON_MINIPACK_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 -#endif - -/** - * X86_64_ACCTON_MINIPACK_CONFIG_PORTING_STDLIB - * - * Default all porting macros to use the C standard libraries. */ - - -#ifndef X86_64_ACCTON_MINIPACK_CONFIG_PORTING_STDLIB -#define X86_64_ACCTON_MINIPACK_CONFIG_PORTING_STDLIB 1 -#endif - -/** - * X86_64_ACCTON_MINIPACK_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS - * - * Include standard library headers for stdlib porting macros. */ - - -#ifndef X86_64_ACCTON_MINIPACK_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS -#define X86_64_ACCTON_MINIPACK_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS X86_64_ACCTON_MINIPACK_CONFIG_PORTING_STDLIB -#endif - -/** - * X86_64_ACCTON_MINIPACK_CONFIG_INCLUDE_UCLI - * - * Include generic uCli support. */ - - -#ifndef X86_64_ACCTON_MINIPACK_CONFIG_INCLUDE_UCLI -#define X86_64_ACCTON_MINIPACK_CONFIG_INCLUDE_UCLI 0 -#endif - -/** - * X86_64_ACCTON_MINIPACK_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION - * - * Assume chassis fan direction is the same as the PSU fan direction. */ - - -#ifndef X86_64_ACCTON_MINIPACK_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION -#define X86_64_ACCTON_MINIPACK_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION 0 -#endif - - - -/** - * All compile time options can be queried or displayed - */ - -/** Configuration settings structure. */ -typedef struct x86_64_accton_minipack_config_settings_s { - /** name */ - const char* name; - /** value */ - const char* value; -} x86_64_accton_minipack_config_settings_t; - -/** Configuration settings table. */ -/** x86_64_accton_minipack_config_settings table. */ -extern x86_64_accton_minipack_config_settings_t x86_64_accton_minipack_config_settings[]; - -/** - * @brief Lookup a configuration setting. - * @param setting The name of the configuration option to lookup. - */ -const char* x86_64_accton_minipack_config_lookup(const char* setting); - -/** - * @brief Show the compile-time configuration. - * @param pvs The output stream. - */ -int x86_64_accton_minipack_config_show(struct aim_pvs_s* pvs); - +#include +/** + * X86_64_ACCTON_MINIPACK_CONFIG_INCLUDE_LOGGING + * + * Include or exclude logging. */ + + +#ifndef X86_64_ACCTON_MINIPACK_CONFIG_INCLUDE_LOGGING +#define X86_64_ACCTON_MINIPACK_CONFIG_INCLUDE_LOGGING 1 +#endif + +/** + * X86_64_ACCTON_MINIPACK_CONFIG_LOG_OPTIONS_DEFAULT + * + * Default enabled log options. */ + + +#ifndef X86_64_ACCTON_MINIPACK_CONFIG_LOG_OPTIONS_DEFAULT +#define X86_64_ACCTON_MINIPACK_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT +#endif + +/** + * X86_64_ACCTON_MINIPACK_CONFIG_LOG_BITS_DEFAULT + * + * Default enabled log bits. */ + + +#ifndef X86_64_ACCTON_MINIPACK_CONFIG_LOG_BITS_DEFAULT +#define X86_64_ACCTON_MINIPACK_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT +#endif + +/** + * X86_64_ACCTON_MINIPACK_CONFIG_LOG_CUSTOM_BITS_DEFAULT + * + * Default enabled custom log bits. */ + + +#ifndef X86_64_ACCTON_MINIPACK_CONFIG_LOG_CUSTOM_BITS_DEFAULT +#define X86_64_ACCTON_MINIPACK_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 +#endif + +/** + * X86_64_ACCTON_MINIPACK_CONFIG_PORTING_STDLIB + * + * Default all porting macros to use the C standard libraries. */ + + +#ifndef X86_64_ACCTON_MINIPACK_CONFIG_PORTING_STDLIB +#define X86_64_ACCTON_MINIPACK_CONFIG_PORTING_STDLIB 1 +#endif + +/** + * X86_64_ACCTON_MINIPACK_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + * + * Include standard library headers for stdlib porting macros. */ + + +#ifndef X86_64_ACCTON_MINIPACK_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS +#define X86_64_ACCTON_MINIPACK_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS X86_64_ACCTON_MINIPACK_CONFIG_PORTING_STDLIB +#endif + +/** + * X86_64_ACCTON_MINIPACK_CONFIG_INCLUDE_UCLI + * + * Include generic uCli support. */ + + +#ifndef X86_64_ACCTON_MINIPACK_CONFIG_INCLUDE_UCLI +#define X86_64_ACCTON_MINIPACK_CONFIG_INCLUDE_UCLI 0 +#endif + +/** + * X86_64_ACCTON_MINIPACK_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION + * + * Assume chassis fan direction is the same as the PSU fan direction. */ + + +#ifndef X86_64_ACCTON_MINIPACK_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION +#define X86_64_ACCTON_MINIPACK_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION 0 +#endif + + + +/** + * All compile time options can be queried or displayed + */ + +/** Configuration settings structure. */ +typedef struct x86_64_accton_minipack_config_settings_s { + /** name */ + const char* name; + /** value */ + const char* value; +} x86_64_accton_minipack_config_settings_t; + +/** Configuration settings table. */ +/** x86_64_accton_minipack_config_settings table. */ +extern x86_64_accton_minipack_config_settings_t x86_64_accton_minipack_config_settings[]; + +/** + * @brief Lookup a configuration setting. + * @param setting The name of the configuration option to lookup. + */ +const char* x86_64_accton_minipack_config_lookup(const char* setting); + +/** + * @brief Show the compile-time configuration. + * @param pvs The output stream. + */ +int x86_64_accton_minipack_config_show(struct aim_pvs_s* pvs); + /* */ #include "x86_64_accton_minipack_porting.h" diff --git a/packages/platforms/accton/x86-64/minipack/onlp/builds/x86_64_accton_minipack/module/inc/x86_64_accton_minipack/x86_64_accton_minipack_porting.h b/packages/platforms/accton/x86-64/minipack/onlp/builds/x86_64_accton_minipack/module/inc/x86_64_accton_minipack/x86_64_accton_minipack_porting.h index 00917938..ebe9cb64 100644 --- a/packages/platforms/accton/x86-64/minipack/onlp/builds/x86_64_accton_minipack/module/inc/x86_64_accton_minipack/x86_64_accton_minipack_porting.h +++ b/packages/platforms/accton/x86-64/minipack/onlp/builds/x86_64_accton_minipack/module/inc/x86_64_accton_minipack/x86_64_accton_minipack_porting.h @@ -12,94 +12,94 @@ /* */ -#if X86_64_ACCTON_MINIPACK_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 -#include -#include -#include -#include -#include -#endif - -#ifndef x86_64_accton_minipack_MALLOC - #if defined(GLOBAL_MALLOC) - #define x86_64_accton_minipack_MALLOC GLOBAL_MALLOC - #elif X86_64_ACCTON_MINIPACK_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_minipack_MALLOC malloc - #else - #error The macro x86_64_accton_minipack_MALLOC is required but cannot be defined. - #endif -#endif - -#ifndef x86_64_accton_minipack_FREE - #if defined(GLOBAL_FREE) - #define x86_64_accton_minipack_FREE GLOBAL_FREE - #elif X86_64_ACCTON_MINIPACK_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_minipack_FREE free - #else - #error The macro x86_64_accton_minipack_FREE is required but cannot be defined. - #endif -#endif - -#ifndef x86_64_accton_minipack_MEMSET - #if defined(GLOBAL_MEMSET) - #define x86_64_accton_minipack_MEMSET GLOBAL_MEMSET - #elif X86_64_ACCTON_MINIPACK_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_minipack_MEMSET memset - #else - #error The macro x86_64_accton_minipack_MEMSET is required but cannot be defined. - #endif -#endif - -#ifndef x86_64_accton_minipack_MEMCPY - #if defined(GLOBAL_MEMCPY) - #define x86_64_accton_minipack_MEMCPY GLOBAL_MEMCPY - #elif X86_64_ACCTON_MINIPACK_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_minipack_MEMCPY memcpy - #else - #error The macro x86_64_accton_minipack_MEMCPY is required but cannot be defined. - #endif -#endif - -#ifndef x86_64_accton_minipack_STRNCPY - #if defined(GLOBAL_STRNCPY) - #define x86_64_accton_minipack_STRNCPY GLOBAL_STRNCPY - #elif X86_64_ACCTON_MINIPACK_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_minipack_STRNCPY strncpy - #else - #error The macro x86_64_accton_minipack_STRNCPY is required but cannot be defined. - #endif -#endif - -#ifndef x86_64_accton_minipack_VSNPRINTF - #if defined(GLOBAL_VSNPRINTF) - #define x86_64_accton_minipack_VSNPRINTF GLOBAL_VSNPRINTF - #elif X86_64_ACCTON_MINIPACK_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_minipack_VSNPRINTF vsnprintf - #else - #error The macro x86_64_accton_minipack_VSNPRINTF is required but cannot be defined. - #endif -#endif - -#ifndef x86_64_accton_minipack_SNPRINTF - #if defined(GLOBAL_SNPRINTF) - #define x86_64_accton_minipack_SNPRINTF GLOBAL_SNPRINTF - #elif X86_64_ACCTON_MINIPACK_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_minipack_SNPRINTF snprintf - #else - #error The macro x86_64_accton_minipack_SNPRINTF is required but cannot be defined. - #endif -#endif - -#ifndef x86_64_accton_minipack_STRLEN - #if defined(GLOBAL_STRLEN) - #define x86_64_accton_minipack_STRLEN GLOBAL_STRLEN - #elif X86_64_ACCTON_MINIPACK_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_minipack_STRLEN strlen - #else - #error The macro x86_64_accton_minipack_STRLEN is required but cannot be defined. - #endif -#endif - +#if X86_64_ACCTON_MINIPACK_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 +#include +#include +#include +#include +#include +#endif + +#ifndef X86_64_ACCTON_MINIPACK_MALLOC + #if defined(GLOBAL_MALLOC) + #define X86_64_ACCTON_MINIPACK_MALLOC GLOBAL_MALLOC + #elif X86_64_ACCTON_MINIPACK_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_MINIPACK_MALLOC malloc + #else + #error The macro X86_64_ACCTON_MINIPACK_MALLOC is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_MINIPACK_FREE + #if defined(GLOBAL_FREE) + #define X86_64_ACCTON_MINIPACK_FREE GLOBAL_FREE + #elif X86_64_ACCTON_MINIPACK_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_MINIPACK_FREE free + #else + #error The macro X86_64_ACCTON_MINIPACK_FREE is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_MINIPACK_MEMSET + #if defined(GLOBAL_MEMSET) + #define X86_64_ACCTON_MINIPACK_MEMSET GLOBAL_MEMSET + #elif X86_64_ACCTON_MINIPACK_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_MINIPACK_MEMSET memset + #else + #error The macro X86_64_ACCTON_MINIPACK_MEMSET is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_MINIPACK_MEMCPY + #if defined(GLOBAL_MEMCPY) + #define X86_64_ACCTON_MINIPACK_MEMCPY GLOBAL_MEMCPY + #elif X86_64_ACCTON_MINIPACK_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_MINIPACK_MEMCPY memcpy + #else + #error The macro X86_64_ACCTON_MINIPACK_MEMCPY is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_MINIPACK_STRNCPY + #if defined(GLOBAL_STRNCPY) + #define X86_64_ACCTON_MINIPACK_STRNCPY GLOBAL_STRNCPY + #elif X86_64_ACCTON_MINIPACK_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_MINIPACK_STRNCPY strncpy + #else + #error The macro X86_64_ACCTON_MINIPACK_STRNCPY is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_MINIPACK_VSNPRINTF + #if defined(GLOBAL_VSNPRINTF) + #define X86_64_ACCTON_MINIPACK_VSNPRINTF GLOBAL_VSNPRINTF + #elif X86_64_ACCTON_MINIPACK_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_MINIPACK_VSNPRINTF vsnprintf + #else + #error The macro X86_64_ACCTON_MINIPACK_VSNPRINTF is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_MINIPACK_SNPRINTF + #if defined(GLOBAL_SNPRINTF) + #define X86_64_ACCTON_MINIPACK_SNPRINTF GLOBAL_SNPRINTF + #elif X86_64_ACCTON_MINIPACK_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_MINIPACK_SNPRINTF snprintf + #else + #error The macro X86_64_ACCTON_MINIPACK_SNPRINTF is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_MINIPACK_STRLEN + #if defined(GLOBAL_STRLEN) + #define X86_64_ACCTON_MINIPACK_STRLEN GLOBAL_STRLEN + #elif X86_64_ACCTON_MINIPACK_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_MINIPACK_STRLEN strlen + #else + #error The macro X86_64_ACCTON_MINIPACK_STRLEN is required but cannot be defined. + #endif +#endif + /* */ diff --git a/packages/platforms/accton/x86-64/minipack/onlp/builds/x86_64_accton_minipack/module/src/x86_64_accton_minipack_config.c b/packages/platforms/accton/x86-64/minipack/onlp/builds/x86_64_accton_minipack/module/src/x86_64_accton_minipack_config.c index 09bcc109..8c057918 100644 --- a/packages/platforms/accton/x86-64/minipack/onlp/builds/x86_64_accton_minipack/module/src/x86_64_accton_minipack_config.c +++ b/packages/platforms/accton/x86-64/minipack/onlp/builds/x86_64_accton_minipack/module/src/x86_64_accton_minipack_config.c @@ -5,76 +5,76 @@ *****************************************************************************/ #include -/* */ -#define __x86_64_accton_minipack_config_STRINGIFY_NAME(_x) #_x -#define __x86_64_accton_minipack_config_STRINGIFY_VALUE(_x) __x86_64_accton_minipack_config_STRINGIFY_NAME(_x) -x86_64_accton_minipack_config_settings_t x86_64_accton_minipack_config_settings[] = -{ -#ifdef X86_64_ACCTON_MINIPACK_CONFIG_INCLUDE_LOGGING - { __x86_64_accton_minipack_config_STRINGIFY_NAME(X86_64_ACCTON_MINIPACK_CONFIG_INCLUDE_LOGGING), __x86_64_accton_minipack_config_STRINGIFY_VALUE(X86_64_ACCTON_MINIPACK_CONFIG_INCLUDE_LOGGING) }, -#else -{ X86_64_ACCTON_MINIPACK_CONFIG_INCLUDE_LOGGING(__x86_64_accton_minipack_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef X86_64_ACCTON_MINIPACK_CONFIG_LOG_OPTIONS_DEFAULT - { __x86_64_accton_minipack_config_STRINGIFY_NAME(X86_64_ACCTON_MINIPACK_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_accton_minipack_config_STRINGIFY_VALUE(X86_64_ACCTON_MINIPACK_CONFIG_LOG_OPTIONS_DEFAULT) }, -#else -{ X86_64_ACCTON_MINIPACK_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_accton_minipack_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef X86_64_ACCTON_MINIPACK_CONFIG_LOG_BITS_DEFAULT - { __x86_64_accton_minipack_config_STRINGIFY_NAME(X86_64_ACCTON_MINIPACK_CONFIG_LOG_BITS_DEFAULT), __x86_64_accton_minipack_config_STRINGIFY_VALUE(X86_64_ACCTON_MINIPACK_CONFIG_LOG_BITS_DEFAULT) }, -#else -{ X86_64_ACCTON_MINIPACK_CONFIG_LOG_BITS_DEFAULT(__x86_64_accton_minipack_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef X86_64_ACCTON_MINIPACK_CONFIG_LOG_CUSTOM_BITS_DEFAULT - { __x86_64_accton_minipack_config_STRINGIFY_NAME(X86_64_ACCTON_MINIPACK_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_accton_minipack_config_STRINGIFY_VALUE(X86_64_ACCTON_MINIPACK_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, -#else -{ X86_64_ACCTON_MINIPACK_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_accton_minipack_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef X86_64_ACCTON_MINIPACK_CONFIG_PORTING_STDLIB - { __x86_64_accton_minipack_config_STRINGIFY_NAME(X86_64_ACCTON_MINIPACK_CONFIG_PORTING_STDLIB), __x86_64_accton_minipack_config_STRINGIFY_VALUE(X86_64_ACCTON_MINIPACK_CONFIG_PORTING_STDLIB) }, -#else -{ X86_64_ACCTON_MINIPACK_CONFIG_PORTING_STDLIB(__x86_64_accton_minipack_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef X86_64_ACCTON_MINIPACK_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS - { __x86_64_accton_minipack_config_STRINGIFY_NAME(X86_64_ACCTON_MINIPACK_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_accton_minipack_config_STRINGIFY_VALUE(X86_64_ACCTON_MINIPACK_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, -#else -{ X86_64_ACCTON_MINIPACK_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_accton_minipack_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef X86_64_ACCTON_MINIPACK_CONFIG_INCLUDE_UCLI - { __x86_64_accton_minipack_config_STRINGIFY_NAME(X86_64_ACCTON_MINIPACK_CONFIG_INCLUDE_UCLI), __x86_64_accton_minipack_config_STRINGIFY_VALUE(X86_64_ACCTON_MINIPACK_CONFIG_INCLUDE_UCLI) }, -#else -{ X86_64_ACCTON_MINIPACK_CONFIG_INCLUDE_UCLI(__x86_64_accton_minipack_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef X86_64_ACCTON_MINIPACK_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION - { __x86_64_accton_minipack_config_STRINGIFY_NAME(X86_64_ACCTON_MINIPACK_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __x86_64_accton_minipack_config_STRINGIFY_VALUE(X86_64_ACCTON_MINIPACK_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, -#else -{ X86_64_ACCTON_MINIPACK_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__x86_64_accton_minipack_config_STRINGIFY_NAME), "__undefined__" }, -#endif - { NULL, NULL } -}; -#undef __x86_64_accton_minipack_config_STRINGIFY_VALUE -#undef __x86_64_accton_minipack_config_STRINGIFY_NAME - -const char* -x86_64_accton_minipack_config_lookup(const char* setting) -{ - int i; - for(i = 0; x86_64_accton_minipack_config_settings[i].name; i++) { - if(strcmp(x86_64_accton_minipack_config_settings[i].name, setting)) { - return x86_64_accton_minipack_config_settings[i].value; - } - } - return NULL; -} - -int -x86_64_accton_minipack_config_show(struct aim_pvs_s* pvs) -{ - int i; - for(i = 0; x86_64_accton_minipack_config_settings[i].name; i++) { - aim_printf(pvs, "%s = %s\n", x86_64_accton_minipack_config_settings[i].name, x86_64_accton_minipack_config_settings[i].value); - } - return i; -} - -/* */ \ No newline at end of file +/* */ +#define __x86_64_accton_minipack_config_STRINGIFY_NAME(_x) #_x +#define __x86_64_accton_minipack_config_STRINGIFY_VALUE(_x) __x86_64_accton_minipack_config_STRINGIFY_NAME(_x) +x86_64_accton_minipack_config_settings_t x86_64_accton_minipack_config_settings[] = +{ +#ifdef X86_64_ACCTON_MINIPACK_CONFIG_INCLUDE_LOGGING + { __x86_64_accton_minipack_config_STRINGIFY_NAME(X86_64_ACCTON_MINIPACK_CONFIG_INCLUDE_LOGGING), __x86_64_accton_minipack_config_STRINGIFY_VALUE(X86_64_ACCTON_MINIPACK_CONFIG_INCLUDE_LOGGING) }, +#else +{ X86_64_ACCTON_MINIPACK_CONFIG_INCLUDE_LOGGING(__x86_64_accton_minipack_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_MINIPACK_CONFIG_LOG_OPTIONS_DEFAULT + { __x86_64_accton_minipack_config_STRINGIFY_NAME(X86_64_ACCTON_MINIPACK_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_accton_minipack_config_STRINGIFY_VALUE(X86_64_ACCTON_MINIPACK_CONFIG_LOG_OPTIONS_DEFAULT) }, +#else +{ X86_64_ACCTON_MINIPACK_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_accton_minipack_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_MINIPACK_CONFIG_LOG_BITS_DEFAULT + { __x86_64_accton_minipack_config_STRINGIFY_NAME(X86_64_ACCTON_MINIPACK_CONFIG_LOG_BITS_DEFAULT), __x86_64_accton_minipack_config_STRINGIFY_VALUE(X86_64_ACCTON_MINIPACK_CONFIG_LOG_BITS_DEFAULT) }, +#else +{ X86_64_ACCTON_MINIPACK_CONFIG_LOG_BITS_DEFAULT(__x86_64_accton_minipack_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_MINIPACK_CONFIG_LOG_CUSTOM_BITS_DEFAULT + { __x86_64_accton_minipack_config_STRINGIFY_NAME(X86_64_ACCTON_MINIPACK_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_accton_minipack_config_STRINGIFY_VALUE(X86_64_ACCTON_MINIPACK_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, +#else +{ X86_64_ACCTON_MINIPACK_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_accton_minipack_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_MINIPACK_CONFIG_PORTING_STDLIB + { __x86_64_accton_minipack_config_STRINGIFY_NAME(X86_64_ACCTON_MINIPACK_CONFIG_PORTING_STDLIB), __x86_64_accton_minipack_config_STRINGIFY_VALUE(X86_64_ACCTON_MINIPACK_CONFIG_PORTING_STDLIB) }, +#else +{ X86_64_ACCTON_MINIPACK_CONFIG_PORTING_STDLIB(__x86_64_accton_minipack_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_MINIPACK_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + { __x86_64_accton_minipack_config_STRINGIFY_NAME(X86_64_ACCTON_MINIPACK_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_accton_minipack_config_STRINGIFY_VALUE(X86_64_ACCTON_MINIPACK_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, +#else +{ X86_64_ACCTON_MINIPACK_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_accton_minipack_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_MINIPACK_CONFIG_INCLUDE_UCLI + { __x86_64_accton_minipack_config_STRINGIFY_NAME(X86_64_ACCTON_MINIPACK_CONFIG_INCLUDE_UCLI), __x86_64_accton_minipack_config_STRINGIFY_VALUE(X86_64_ACCTON_MINIPACK_CONFIG_INCLUDE_UCLI) }, +#else +{ X86_64_ACCTON_MINIPACK_CONFIG_INCLUDE_UCLI(__x86_64_accton_minipack_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_MINIPACK_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION + { __x86_64_accton_minipack_config_STRINGIFY_NAME(X86_64_ACCTON_MINIPACK_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __x86_64_accton_minipack_config_STRINGIFY_VALUE(X86_64_ACCTON_MINIPACK_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, +#else +{ X86_64_ACCTON_MINIPACK_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__x86_64_accton_minipack_config_STRINGIFY_NAME), "__undefined__" }, +#endif + { NULL, NULL } +}; +#undef __x86_64_accton_minipack_config_STRINGIFY_VALUE +#undef __x86_64_accton_minipack_config_STRINGIFY_NAME + +const char* +x86_64_accton_minipack_config_lookup(const char* setting) +{ + int i; + for(i = 0; x86_64_accton_minipack_config_settings[i].name; i++) { + if(!strcmp(x86_64_accton_minipack_config_settings[i].name, setting)) { + return x86_64_accton_minipack_config_settings[i].value; + } + } + return NULL; +} + +int +x86_64_accton_minipack_config_show(struct aim_pvs_s* pvs) +{ + int i; + for(i = 0; x86_64_accton_minipack_config_settings[i].name; i++) { + aim_printf(pvs, "%s = %s\n", x86_64_accton_minipack_config_settings[i].name, x86_64_accton_minipack_config_settings[i].value); + } + return i; +} + +/* */ diff --git a/packages/platforms/accton/x86-64/wedge100bf-32x/onlp/builds/x86_64_accton_wedge100bf_32x/Makefile b/packages/platforms/accton/x86-64/wedge100bf-32x/onlp/builds/x86_64_accton_wedge100bf_32x/Makefile index 3c409f10..feb1cc81 100644 --- a/packages/platforms/accton/x86-64/wedge100bf-32x/onlp/builds/x86_64_accton_wedge100bf_32x/Makefile +++ b/packages/platforms/accton/x86-64/wedge100bf-32x/onlp/builds/x86_64_accton_wedge100bf_32x/Makefile @@ -1,9 +1,9 @@ ############################################################################### # -# +# # ############################################################################### -include ../../init.mk +include $(ONL)/make/config.mk MODULE := x86_64_accton_wedge100bf_32x AUTOMODULE := x86_64_accton_wedge100bf_32x include $(BUILDER)/definemodule.mk diff --git a/packages/platforms/accton/x86-64/wedge100bf-32x/onlp/builds/x86_64_accton_wedge100bf_32x/module/inc/x86_64_accton_wedge100bf_32x/x86_64_accton_wedge100bf_32x_config.h b/packages/platforms/accton/x86-64/wedge100bf-32x/onlp/builds/x86_64_accton_wedge100bf_32x/module/inc/x86_64_accton_wedge100bf_32x/x86_64_accton_wedge100bf_32x_config.h index 0ec546a7..a88c51da 100644 --- a/packages/platforms/accton/x86-64/wedge100bf-32x/onlp/builds/x86_64_accton_wedge100bf_32x/module/inc/x86_64_accton_wedge100bf_32x/x86_64_accton_wedge100bf_32x_config.h +++ b/packages/platforms/accton/x86-64/wedge100bf-32x/onlp/builds/x86_64_accton_wedge100bf_32x/module/inc/x86_64_accton_wedge100bf_32x/x86_64_accton_wedge100bf_32x_config.h @@ -18,117 +18,117 @@ #endif /* */ -#include -/** - * X86_64_ACCTON_WEDGE100BF_32X_CONFIG_INCLUDE_LOGGING - * - * Include or exclude logging. */ - - -#ifndef X86_64_ACCTON_WEDGE100BF_32X_CONFIG_INCLUDE_LOGGING -#define X86_64_ACCTON_WEDGE100BF_32X_CONFIG_INCLUDE_LOGGING 1 -#endif - -/** - * X86_64_ACCTON_WEDGE100BF_32X_CONFIG_LOG_OPTIONS_DEFAULT - * - * Default enabled log options. */ - - -#ifndef X86_64_ACCTON_WEDGE100BF_32X_CONFIG_LOG_OPTIONS_DEFAULT -#define X86_64_ACCTON_WEDGE100BF_32X_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT -#endif - -/** - * X86_64_ACCTON_WEDGE100BF_32X_CONFIG_LOG_BITS_DEFAULT - * - * Default enabled log bits. */ - - -#ifndef X86_64_ACCTON_WEDGE100BF_32X_CONFIG_LOG_BITS_DEFAULT -#define X86_64_ACCTON_WEDGE100BF_32X_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT -#endif - -/** - * X86_64_ACCTON_WEDGE100BF_32X_CONFIG_LOG_CUSTOM_BITS_DEFAULT - * - * Default enabled custom log bits. */ - - -#ifndef X86_64_ACCTON_WEDGE100BF_32X_CONFIG_LOG_CUSTOM_BITS_DEFAULT -#define X86_64_ACCTON_WEDGE100BF_32X_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 -#endif - -/** - * X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_STDLIB - * - * Default all porting macros to use the C standard libraries. */ - - -#ifndef X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_STDLIB -#define X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_STDLIB 1 -#endif - -/** - * X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS - * - * Include standard library headers for stdlib porting macros. */ - - -#ifndef X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS -#define X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_STDLIB -#endif - -/** - * X86_64_ACCTON_WEDGE100BF_32X_CONFIG_INCLUDE_UCLI - * - * Include generic uCli support. */ - - -#ifndef X86_64_ACCTON_WEDGE100BF_32X_CONFIG_INCLUDE_UCLI -#define X86_64_ACCTON_WEDGE100BF_32X_CONFIG_INCLUDE_UCLI 0 -#endif - -/** - * X86_64_ACCTON_WEDGE100BF_32X_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION - * - * Assume chassis fan direction is the same as the PSU fan direction. */ - - -#ifndef X86_64_ACCTON_WEDGE100BF_32X_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION -#define X86_64_ACCTON_WEDGE100BF_32X_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION 0 -#endif - - - -/** - * All compile time options can be queried or displayed - */ - -/** Configuration settings structure. */ -typedef struct x86_64_accton_wedge100bf_32x_config_settings_s { - /** name */ - const char* name; - /** value */ - const char* value; -} x86_64_accton_wedge100bf_32x_config_settings_t; - -/** Configuration settings table. */ -/** x86_64_accton_wedge100bf_32x_config_settings table. */ -extern x86_64_accton_wedge100bf_32x_config_settings_t x86_64_accton_wedge100bf_32x_config_settings[]; - -/** - * @brief Lookup a configuration setting. - * @param setting The name of the configuration option to lookup. - */ -const char* x86_64_accton_wedge100bf_32x_config_lookup(const char* setting); - -/** - * @brief Show the compile-time configuration. - * @param pvs The output stream. - */ -int x86_64_accton_wedge100bf_32x_config_show(struct aim_pvs_s* pvs); - +#include +/** + * X86_64_ACCTON_WEDGE100BF_32X_CONFIG_INCLUDE_LOGGING + * + * Include or exclude logging. */ + + +#ifndef X86_64_ACCTON_WEDGE100BF_32X_CONFIG_INCLUDE_LOGGING +#define X86_64_ACCTON_WEDGE100BF_32X_CONFIG_INCLUDE_LOGGING 1 +#endif + +/** + * X86_64_ACCTON_WEDGE100BF_32X_CONFIG_LOG_OPTIONS_DEFAULT + * + * Default enabled log options. */ + + +#ifndef X86_64_ACCTON_WEDGE100BF_32X_CONFIG_LOG_OPTIONS_DEFAULT +#define X86_64_ACCTON_WEDGE100BF_32X_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT +#endif + +/** + * X86_64_ACCTON_WEDGE100BF_32X_CONFIG_LOG_BITS_DEFAULT + * + * Default enabled log bits. */ + + +#ifndef X86_64_ACCTON_WEDGE100BF_32X_CONFIG_LOG_BITS_DEFAULT +#define X86_64_ACCTON_WEDGE100BF_32X_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT +#endif + +/** + * X86_64_ACCTON_WEDGE100BF_32X_CONFIG_LOG_CUSTOM_BITS_DEFAULT + * + * Default enabled custom log bits. */ + + +#ifndef X86_64_ACCTON_WEDGE100BF_32X_CONFIG_LOG_CUSTOM_BITS_DEFAULT +#define X86_64_ACCTON_WEDGE100BF_32X_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 +#endif + +/** + * X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_STDLIB + * + * Default all porting macros to use the C standard libraries. */ + + +#ifndef X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_STDLIB +#define X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_STDLIB 1 +#endif + +/** + * X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + * + * Include standard library headers for stdlib porting macros. */ + + +#ifndef X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS +#define X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_STDLIB +#endif + +/** + * X86_64_ACCTON_WEDGE100BF_32X_CONFIG_INCLUDE_UCLI + * + * Include generic uCli support. */ + + +#ifndef X86_64_ACCTON_WEDGE100BF_32X_CONFIG_INCLUDE_UCLI +#define X86_64_ACCTON_WEDGE100BF_32X_CONFIG_INCLUDE_UCLI 0 +#endif + +/** + * X86_64_ACCTON_WEDGE100BF_32X_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION + * + * Assume chassis fan direction is the same as the PSU fan direction. */ + + +#ifndef X86_64_ACCTON_WEDGE100BF_32X_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION +#define X86_64_ACCTON_WEDGE100BF_32X_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION 0 +#endif + + + +/** + * All compile time options can be queried or displayed + */ + +/** Configuration settings structure. */ +typedef struct x86_64_accton_wedge100bf_32x_config_settings_s { + /** name */ + const char* name; + /** value */ + const char* value; +} x86_64_accton_wedge100bf_32x_config_settings_t; + +/** Configuration settings table. */ +/** x86_64_accton_wedge100bf_32x_config_settings table. */ +extern x86_64_accton_wedge100bf_32x_config_settings_t x86_64_accton_wedge100bf_32x_config_settings[]; + +/** + * @brief Lookup a configuration setting. + * @param setting The name of the configuration option to lookup. + */ +const char* x86_64_accton_wedge100bf_32x_config_lookup(const char* setting); + +/** + * @brief Show the compile-time configuration. + * @param pvs The output stream. + */ +int x86_64_accton_wedge100bf_32x_config_show(struct aim_pvs_s* pvs); + /* */ #include "x86_64_accton_wedge100bf_32x_porting.h" diff --git a/packages/platforms/accton/x86-64/wedge100bf-32x/onlp/builds/x86_64_accton_wedge100bf_32x/module/inc/x86_64_accton_wedge100bf_32x/x86_64_accton_wedge100bf_32x_porting.h b/packages/platforms/accton/x86-64/wedge100bf-32x/onlp/builds/x86_64_accton_wedge100bf_32x/module/inc/x86_64_accton_wedge100bf_32x/x86_64_accton_wedge100bf_32x_porting.h index d322dd38..20715bdc 100644 --- a/packages/platforms/accton/x86-64/wedge100bf-32x/onlp/builds/x86_64_accton_wedge100bf_32x/module/inc/x86_64_accton_wedge100bf_32x/x86_64_accton_wedge100bf_32x_porting.h +++ b/packages/platforms/accton/x86-64/wedge100bf-32x/onlp/builds/x86_64_accton_wedge100bf_32x/module/inc/x86_64_accton_wedge100bf_32x/x86_64_accton_wedge100bf_32x_porting.h @@ -12,94 +12,94 @@ /* */ -#if X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 -#include -#include -#include -#include -#include -#endif - -#ifndef x86_64_accton_wedge100bf_32x_MALLOC - #if defined(GLOBAL_MALLOC) - #define x86_64_accton_wedge100bf_32x_MALLOC GLOBAL_MALLOC - #elif X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_wedge100bf_32x_MALLOC malloc - #else - #error The macro x86_64_accton_wedge100bf_32x_MALLOC is required but cannot be defined. - #endif -#endif - -#ifndef x86_64_accton_wedge100bf_32x_FREE - #if defined(GLOBAL_FREE) - #define x86_64_accton_wedge100bf_32x_FREE GLOBAL_FREE - #elif X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_wedge100bf_32x_FREE free - #else - #error The macro x86_64_accton_wedge100bf_32x_FREE is required but cannot be defined. - #endif -#endif - -#ifndef x86_64_accton_wedge100bf_32x_MEMSET - #if defined(GLOBAL_MEMSET) - #define x86_64_accton_wedge100bf_32x_MEMSET GLOBAL_MEMSET - #elif X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_wedge100bf_32x_MEMSET memset - #else - #error The macro x86_64_accton_wedge100bf_32x_MEMSET is required but cannot be defined. - #endif -#endif - -#ifndef x86_64_accton_wedge100bf_32x_MEMCPY - #if defined(GLOBAL_MEMCPY) - #define x86_64_accton_wedge100bf_32x_MEMCPY GLOBAL_MEMCPY - #elif X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_wedge100bf_32x_MEMCPY memcpy - #else - #error The macro x86_64_accton_wedge100bf_32x_MEMCPY is required but cannot be defined. - #endif -#endif - -#ifndef x86_64_accton_wedge100bf_32x_STRNCPY - #if defined(GLOBAL_STRNCPY) - #define x86_64_accton_wedge100bf_32x_STRNCPY GLOBAL_STRNCPY - #elif X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_wedge100bf_32x_STRNCPY strncpy - #else - #error The macro x86_64_accton_wedge100bf_32x_STRNCPY is required but cannot be defined. - #endif -#endif - -#ifndef x86_64_accton_wedge100bf_32x_VSNPRINTF - #if defined(GLOBAL_VSNPRINTF) - #define x86_64_accton_wedge100bf_32x_VSNPRINTF GLOBAL_VSNPRINTF - #elif X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_wedge100bf_32x_VSNPRINTF vsnprintf - #else - #error The macro x86_64_accton_wedge100bf_32x_VSNPRINTF is required but cannot be defined. - #endif -#endif - -#ifndef x86_64_accton_wedge100bf_32x_SNPRINTF - #if defined(GLOBAL_SNPRINTF) - #define x86_64_accton_wedge100bf_32x_SNPRINTF GLOBAL_SNPRINTF - #elif X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_wedge100bf_32x_SNPRINTF snprintf - #else - #error The macro x86_64_accton_wedge100bf_32x_SNPRINTF is required but cannot be defined. - #endif -#endif - -#ifndef x86_64_accton_wedge100bf_32x_STRLEN - #if defined(GLOBAL_STRLEN) - #define x86_64_accton_wedge100bf_32x_STRLEN GLOBAL_STRLEN - #elif X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_wedge100bf_32x_STRLEN strlen - #else - #error The macro x86_64_accton_wedge100bf_32x_STRLEN is required but cannot be defined. - #endif -#endif - +#if X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 +#include +#include +#include +#include +#include +#endif + +#ifndef X86_64_ACCTON_WEDGE100BF_32X_MALLOC + #if defined(GLOBAL_MALLOC) + #define X86_64_ACCTON_WEDGE100BF_32X_MALLOC GLOBAL_MALLOC + #elif X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_WEDGE100BF_32X_MALLOC malloc + #else + #error The macro X86_64_ACCTON_WEDGE100BF_32X_MALLOC is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_WEDGE100BF_32X_FREE + #if defined(GLOBAL_FREE) + #define X86_64_ACCTON_WEDGE100BF_32X_FREE GLOBAL_FREE + #elif X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_WEDGE100BF_32X_FREE free + #else + #error The macro X86_64_ACCTON_WEDGE100BF_32X_FREE is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_WEDGE100BF_32X_MEMSET + #if defined(GLOBAL_MEMSET) + #define X86_64_ACCTON_WEDGE100BF_32X_MEMSET GLOBAL_MEMSET + #elif X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_WEDGE100BF_32X_MEMSET memset + #else + #error The macro X86_64_ACCTON_WEDGE100BF_32X_MEMSET is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_WEDGE100BF_32X_MEMCPY + #if defined(GLOBAL_MEMCPY) + #define X86_64_ACCTON_WEDGE100BF_32X_MEMCPY GLOBAL_MEMCPY + #elif X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_WEDGE100BF_32X_MEMCPY memcpy + #else + #error The macro X86_64_ACCTON_WEDGE100BF_32X_MEMCPY is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_WEDGE100BF_32X_STRNCPY + #if defined(GLOBAL_STRNCPY) + #define X86_64_ACCTON_WEDGE100BF_32X_STRNCPY GLOBAL_STRNCPY + #elif X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_WEDGE100BF_32X_STRNCPY strncpy + #else + #error The macro X86_64_ACCTON_WEDGE100BF_32X_STRNCPY is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_WEDGE100BF_32X_VSNPRINTF + #if defined(GLOBAL_VSNPRINTF) + #define X86_64_ACCTON_WEDGE100BF_32X_VSNPRINTF GLOBAL_VSNPRINTF + #elif X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_WEDGE100BF_32X_VSNPRINTF vsnprintf + #else + #error The macro X86_64_ACCTON_WEDGE100BF_32X_VSNPRINTF is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_WEDGE100BF_32X_SNPRINTF + #if defined(GLOBAL_SNPRINTF) + #define X86_64_ACCTON_WEDGE100BF_32X_SNPRINTF GLOBAL_SNPRINTF + #elif X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_WEDGE100BF_32X_SNPRINTF snprintf + #else + #error The macro X86_64_ACCTON_WEDGE100BF_32X_SNPRINTF is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_WEDGE100BF_32X_STRLEN + #if defined(GLOBAL_STRLEN) + #define X86_64_ACCTON_WEDGE100BF_32X_STRLEN GLOBAL_STRLEN + #elif X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_WEDGE100BF_32X_STRLEN strlen + #else + #error The macro X86_64_ACCTON_WEDGE100BF_32X_STRLEN is required but cannot be defined. + #endif +#endif + /* */ diff --git a/packages/platforms/accton/x86-64/wedge100bf-32x/onlp/builds/x86_64_accton_wedge100bf_32x/module/src/x86_64_accton_wedge100bf_32x_config.c b/packages/platforms/accton/x86-64/wedge100bf-32x/onlp/builds/x86_64_accton_wedge100bf_32x/module/src/x86_64_accton_wedge100bf_32x_config.c index 41d7965b..80200603 100644 --- a/packages/platforms/accton/x86-64/wedge100bf-32x/onlp/builds/x86_64_accton_wedge100bf_32x/module/src/x86_64_accton_wedge100bf_32x_config.c +++ b/packages/platforms/accton/x86-64/wedge100bf-32x/onlp/builds/x86_64_accton_wedge100bf_32x/module/src/x86_64_accton_wedge100bf_32x_config.c @@ -5,76 +5,76 @@ *****************************************************************************/ #include -/* */ -#define __x86_64_accton_wedge100bf_32x_config_STRINGIFY_NAME(_x) #_x -#define __x86_64_accton_wedge100bf_32x_config_STRINGIFY_VALUE(_x) __x86_64_accton_wedge100bf_32x_config_STRINGIFY_NAME(_x) -x86_64_accton_wedge100bf_32x_config_settings_t x86_64_accton_wedge100bf_32x_config_settings[] = -{ -#ifdef X86_64_ACCTON_WEDGE100BF_32X_CONFIG_INCLUDE_LOGGING - { __x86_64_accton_wedge100bf_32x_config_STRINGIFY_NAME(X86_64_ACCTON_WEDGE100BF_32X_CONFIG_INCLUDE_LOGGING), __x86_64_accton_wedge100bf_32x_config_STRINGIFY_VALUE(X86_64_ACCTON_WEDGE100BF_32X_CONFIG_INCLUDE_LOGGING) }, -#else -{ X86_64_ACCTON_WEDGE100BF_32X_CONFIG_INCLUDE_LOGGING(__x86_64_accton_wedge100bf_32x_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef X86_64_ACCTON_WEDGE100BF_32X_CONFIG_LOG_OPTIONS_DEFAULT - { __x86_64_accton_wedge100bf_32x_config_STRINGIFY_NAME(X86_64_ACCTON_WEDGE100BF_32X_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_accton_wedge100bf_32x_config_STRINGIFY_VALUE(X86_64_ACCTON_WEDGE100BF_32X_CONFIG_LOG_OPTIONS_DEFAULT) }, -#else -{ X86_64_ACCTON_WEDGE100BF_32X_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_accton_wedge100bf_32x_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef X86_64_ACCTON_WEDGE100BF_32X_CONFIG_LOG_BITS_DEFAULT - { __x86_64_accton_wedge100bf_32x_config_STRINGIFY_NAME(X86_64_ACCTON_WEDGE100BF_32X_CONFIG_LOG_BITS_DEFAULT), __x86_64_accton_wedge100bf_32x_config_STRINGIFY_VALUE(X86_64_ACCTON_WEDGE100BF_32X_CONFIG_LOG_BITS_DEFAULT) }, -#else -{ X86_64_ACCTON_WEDGE100BF_32X_CONFIG_LOG_BITS_DEFAULT(__x86_64_accton_wedge100bf_32x_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef X86_64_ACCTON_WEDGE100BF_32X_CONFIG_LOG_CUSTOM_BITS_DEFAULT - { __x86_64_accton_wedge100bf_32x_config_STRINGIFY_NAME(X86_64_ACCTON_WEDGE100BF_32X_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_accton_wedge100bf_32x_config_STRINGIFY_VALUE(X86_64_ACCTON_WEDGE100BF_32X_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, -#else -{ X86_64_ACCTON_WEDGE100BF_32X_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_accton_wedge100bf_32x_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_STDLIB - { __x86_64_accton_wedge100bf_32x_config_STRINGIFY_NAME(X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_STDLIB), __x86_64_accton_wedge100bf_32x_config_STRINGIFY_VALUE(X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_STDLIB) }, -#else -{ X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_STDLIB(__x86_64_accton_wedge100bf_32x_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS - { __x86_64_accton_wedge100bf_32x_config_STRINGIFY_NAME(X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_accton_wedge100bf_32x_config_STRINGIFY_VALUE(X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, -#else -{ X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_accton_wedge100bf_32x_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef X86_64_ACCTON_WEDGE100BF_32X_CONFIG_INCLUDE_UCLI - { __x86_64_accton_wedge100bf_32x_config_STRINGIFY_NAME(X86_64_ACCTON_WEDGE100BF_32X_CONFIG_INCLUDE_UCLI), __x86_64_accton_wedge100bf_32x_config_STRINGIFY_VALUE(X86_64_ACCTON_WEDGE100BF_32X_CONFIG_INCLUDE_UCLI) }, -#else -{ X86_64_ACCTON_WEDGE100BF_32X_CONFIG_INCLUDE_UCLI(__x86_64_accton_wedge100bf_32x_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef X86_64_ACCTON_WEDGE100BF_32X_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION - { __x86_64_accton_wedge100bf_32x_config_STRINGIFY_NAME(X86_64_ACCTON_WEDGE100BF_32X_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __x86_64_accton_wedge100bf_32x_config_STRINGIFY_VALUE(X86_64_ACCTON_WEDGE100BF_32X_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, -#else -{ X86_64_ACCTON_WEDGE100BF_32X_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__x86_64_accton_wedge100bf_32x_config_STRINGIFY_NAME), "__undefined__" }, -#endif - { NULL, NULL } -}; -#undef __x86_64_accton_wedge100bf_32x_config_STRINGIFY_VALUE -#undef __x86_64_accton_wedge100bf_32x_config_STRINGIFY_NAME - -const char* -x86_64_accton_wedge100bf_32x_config_lookup(const char* setting) -{ - int i; - for(i = 0; x86_64_accton_wedge100bf_32x_config_settings[i].name; i++) { - if(strcmp(x86_64_accton_wedge100bf_32x_config_settings[i].name, setting)) { - return x86_64_accton_wedge100bf_32x_config_settings[i].value; - } - } - return NULL; -} - -int -x86_64_accton_wedge100bf_32x_config_show(struct aim_pvs_s* pvs) -{ - int i; - for(i = 0; x86_64_accton_wedge100bf_32x_config_settings[i].name; i++) { - aim_printf(pvs, "%s = %s\n", x86_64_accton_wedge100bf_32x_config_settings[i].name, x86_64_accton_wedge100bf_32x_config_settings[i].value); - } - return i; -} - -/* */ \ No newline at end of file +/* */ +#define __x86_64_accton_wedge100bf_32x_config_STRINGIFY_NAME(_x) #_x +#define __x86_64_accton_wedge100bf_32x_config_STRINGIFY_VALUE(_x) __x86_64_accton_wedge100bf_32x_config_STRINGIFY_NAME(_x) +x86_64_accton_wedge100bf_32x_config_settings_t x86_64_accton_wedge100bf_32x_config_settings[] = +{ +#ifdef X86_64_ACCTON_WEDGE100BF_32X_CONFIG_INCLUDE_LOGGING + { __x86_64_accton_wedge100bf_32x_config_STRINGIFY_NAME(X86_64_ACCTON_WEDGE100BF_32X_CONFIG_INCLUDE_LOGGING), __x86_64_accton_wedge100bf_32x_config_STRINGIFY_VALUE(X86_64_ACCTON_WEDGE100BF_32X_CONFIG_INCLUDE_LOGGING) }, +#else +{ X86_64_ACCTON_WEDGE100BF_32X_CONFIG_INCLUDE_LOGGING(__x86_64_accton_wedge100bf_32x_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_WEDGE100BF_32X_CONFIG_LOG_OPTIONS_DEFAULT + { __x86_64_accton_wedge100bf_32x_config_STRINGIFY_NAME(X86_64_ACCTON_WEDGE100BF_32X_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_accton_wedge100bf_32x_config_STRINGIFY_VALUE(X86_64_ACCTON_WEDGE100BF_32X_CONFIG_LOG_OPTIONS_DEFAULT) }, +#else +{ X86_64_ACCTON_WEDGE100BF_32X_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_accton_wedge100bf_32x_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_WEDGE100BF_32X_CONFIG_LOG_BITS_DEFAULT + { __x86_64_accton_wedge100bf_32x_config_STRINGIFY_NAME(X86_64_ACCTON_WEDGE100BF_32X_CONFIG_LOG_BITS_DEFAULT), __x86_64_accton_wedge100bf_32x_config_STRINGIFY_VALUE(X86_64_ACCTON_WEDGE100BF_32X_CONFIG_LOG_BITS_DEFAULT) }, +#else +{ X86_64_ACCTON_WEDGE100BF_32X_CONFIG_LOG_BITS_DEFAULT(__x86_64_accton_wedge100bf_32x_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_WEDGE100BF_32X_CONFIG_LOG_CUSTOM_BITS_DEFAULT + { __x86_64_accton_wedge100bf_32x_config_STRINGIFY_NAME(X86_64_ACCTON_WEDGE100BF_32X_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_accton_wedge100bf_32x_config_STRINGIFY_VALUE(X86_64_ACCTON_WEDGE100BF_32X_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, +#else +{ X86_64_ACCTON_WEDGE100BF_32X_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_accton_wedge100bf_32x_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_STDLIB + { __x86_64_accton_wedge100bf_32x_config_STRINGIFY_NAME(X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_STDLIB), __x86_64_accton_wedge100bf_32x_config_STRINGIFY_VALUE(X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_STDLIB) }, +#else +{ X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_STDLIB(__x86_64_accton_wedge100bf_32x_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + { __x86_64_accton_wedge100bf_32x_config_STRINGIFY_NAME(X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_accton_wedge100bf_32x_config_STRINGIFY_VALUE(X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, +#else +{ X86_64_ACCTON_WEDGE100BF_32X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_accton_wedge100bf_32x_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_WEDGE100BF_32X_CONFIG_INCLUDE_UCLI + { __x86_64_accton_wedge100bf_32x_config_STRINGIFY_NAME(X86_64_ACCTON_WEDGE100BF_32X_CONFIG_INCLUDE_UCLI), __x86_64_accton_wedge100bf_32x_config_STRINGIFY_VALUE(X86_64_ACCTON_WEDGE100BF_32X_CONFIG_INCLUDE_UCLI) }, +#else +{ X86_64_ACCTON_WEDGE100BF_32X_CONFIG_INCLUDE_UCLI(__x86_64_accton_wedge100bf_32x_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_WEDGE100BF_32X_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION + { __x86_64_accton_wedge100bf_32x_config_STRINGIFY_NAME(X86_64_ACCTON_WEDGE100BF_32X_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __x86_64_accton_wedge100bf_32x_config_STRINGIFY_VALUE(X86_64_ACCTON_WEDGE100BF_32X_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, +#else +{ X86_64_ACCTON_WEDGE100BF_32X_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__x86_64_accton_wedge100bf_32x_config_STRINGIFY_NAME), "__undefined__" }, +#endif + { NULL, NULL } +}; +#undef __x86_64_accton_wedge100bf_32x_config_STRINGIFY_VALUE +#undef __x86_64_accton_wedge100bf_32x_config_STRINGIFY_NAME + +const char* +x86_64_accton_wedge100bf_32x_config_lookup(const char* setting) +{ + int i; + for(i = 0; x86_64_accton_wedge100bf_32x_config_settings[i].name; i++) { + if(!strcmp(x86_64_accton_wedge100bf_32x_config_settings[i].name, setting)) { + return x86_64_accton_wedge100bf_32x_config_settings[i].value; + } + } + return NULL; +} + +int +x86_64_accton_wedge100bf_32x_config_show(struct aim_pvs_s* pvs) +{ + int i; + for(i = 0; x86_64_accton_wedge100bf_32x_config_settings[i].name; i++) { + aim_printf(pvs, "%s = %s\n", x86_64_accton_wedge100bf_32x_config_settings[i].name, x86_64_accton_wedge100bf_32x_config_settings[i].value); + } + return i; +} + +/* */ diff --git a/packages/platforms/accton/x86-64/wedge100bf-65x/onlp/builds/x86_64_accton_wedge100bf_65x/Makefile b/packages/platforms/accton/x86-64/wedge100bf-65x/onlp/builds/x86_64_accton_wedge100bf_65x/Makefile index 74fd9b35..8986da82 100644 --- a/packages/platforms/accton/x86-64/wedge100bf-65x/onlp/builds/x86_64_accton_wedge100bf_65x/Makefile +++ b/packages/platforms/accton/x86-64/wedge100bf-65x/onlp/builds/x86_64_accton_wedge100bf_65x/Makefile @@ -1,9 +1,9 @@ ############################################################################### # -# +# # ############################################################################### -include ../../init.mk +include $(ONL)/make/config.mk MODULE := x86_64_accton_wedge100bf_65x AUTOMODULE := x86_64_accton_wedge100bf_65x include $(BUILDER)/definemodule.mk diff --git a/packages/platforms/accton/x86-64/wedge100bf-65x/onlp/builds/x86_64_accton_wedge100bf_65x/module/inc/x86_64_accton_wedge100bf_65x/x86_64_accton_wedge100bf_65x_config.h b/packages/platforms/accton/x86-64/wedge100bf-65x/onlp/builds/x86_64_accton_wedge100bf_65x/module/inc/x86_64_accton_wedge100bf_65x/x86_64_accton_wedge100bf_65x_config.h index 1725b533..5254fac6 100644 --- a/packages/platforms/accton/x86-64/wedge100bf-65x/onlp/builds/x86_64_accton_wedge100bf_65x/module/inc/x86_64_accton_wedge100bf_65x/x86_64_accton_wedge100bf_65x_config.h +++ b/packages/platforms/accton/x86-64/wedge100bf-65x/onlp/builds/x86_64_accton_wedge100bf_65x/module/inc/x86_64_accton_wedge100bf_65x/x86_64_accton_wedge100bf_65x_config.h @@ -18,118 +18,118 @@ #endif /* */ -#include -/** - * X86_64_ACCTON_WEDGE100BF_65X_CONFIG_INCLUDE_LOGGING - * - * Include or exclude logging. */ - - -#ifndef X86_64_ACCTON_WEDGE100BF_65X_CONFIG_INCLUDE_LOGGING -#define X86_64_ACCTON_WEDGE100BF_65X_CONFIG_INCLUDE_LOGGING 1 -#endif - -/** - * X86_64_ACCTON_WEDGE100BF_65X_CONFIG_LOG_OPTIONS_DEFAULT - * - * Default enabled log options. */ - - -#ifndef X86_64_ACCTON_WEDGE100BF_65X_CONFIG_LOG_OPTIONS_DEFAULT -#define X86_64_ACCTON_WEDGE100BF_65X_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT -#endif - -/** - * X86_64_ACCTON_WEDGE100BF_65X_CONFIG_LOG_BITS_DEFAULT - * - * Default enabled log bits. */ - - -#ifndef X86_64_ACCTON_WEDGE100BF_65X_CONFIG_LOG_BITS_DEFAULT -#define X86_64_ACCTON_WEDGE100BF_65X_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT -#endif - -/** - * X86_64_ACCTON_WEDGE100BF_65X_CONFIG_LOG_CUSTOM_BITS_DEFAULT - * - * Default enabled custom log bits. */ - - -#ifndef X86_64_ACCTON_WEDGE100BF_65X_CONFIG_LOG_CUSTOM_BITS_DEFAULT -#define X86_64_ACCTON_WEDGE100BF_65X_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 -#endif - -/** - * X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_STDLIB - * - * Default all porting macros to use the C standard libraries. */ - - -#ifndef X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_STDLIB -#define X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_STDLIB 1 -#endif - -/** - * X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS - * - * Include standard library headers for stdlib porting macros. */ - - -#ifndef X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS -#define X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_STDLIB -#endif - -/** - * X86_64_ACCTON_WEDGE100BF_65X_CONFIG_INCLUDE_UCLI - * - * Include generic uCli support. */ - - -#ifndef X86_64_ACCTON_WEDGE100BF_65X_CONFIG_INCLUDE_UCLI -#define X86_64_ACCTON_WEDGE100BF_65X_CONFIG_INCLUDE_UCLI 0 -#endif - -/** - * X86_64_ACCTON_WEDGE100BF_65X_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION - * - * Assume chassis fan direction is the same as the PSU fan direction. */ - - -#ifndef X86_64_ACCTON_WEDGE100BF_65X_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION -#define X86_64_ACCTON_WEDGE100BF_65X_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION 0 -#endif - - - -/** - * All compile time options can be queried or displayed - */ - -/** Configuration settings structure. */ -typedef struct x86_64_accton_wedge100bf_65x_config_settings_s { - /** name */ - const char* name; - /** value */ - const char* value; -} x86_64_accton_wedge100bf_65x_config_settings_t; - -/** Configuration settings table. */ -/** x86_64_accton_wedge100bf_65x_config_settings table. */ -extern x86_64_accton_wedge100bf_65x_config_settings_t x86_64_accton_wedge100bf_65x_config_settings[]; - -/** - * @brief Lookup a configuration setting. - * @param setting The name of the configuration option to lookup. - */ -const char* x86_64_accton_wedge100bf_65x_config_lookup(const char* setting); - -/** - * @brief Show the compile-time configuration. - * @param pvs The output stream. - */ -int x86_64_accton_wedge100bf_65x_config_show(struct aim_pvs_s* pvs); - -/* */ +#include +/** + * X86_64_ACCTON_WEDGE100BF_65X_CONFIG_INCLUDE_LOGGING + * + * Include or exclude logging. */ + + +#ifndef X86_64_ACCTON_WEDGE100BF_65X_CONFIG_INCLUDE_LOGGING +#define X86_64_ACCTON_WEDGE100BF_65X_CONFIG_INCLUDE_LOGGING 1 +#endif + +/** + * X86_64_ACCTON_WEDGE100BF_65X_CONFIG_LOG_OPTIONS_DEFAULT + * + * Default enabled log options. */ + + +#ifndef X86_64_ACCTON_WEDGE100BF_65X_CONFIG_LOG_OPTIONS_DEFAULT +#define X86_64_ACCTON_WEDGE100BF_65X_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT +#endif + +/** + * X86_64_ACCTON_WEDGE100BF_65X_CONFIG_LOG_BITS_DEFAULT + * + * Default enabled log bits. */ + + +#ifndef X86_64_ACCTON_WEDGE100BF_65X_CONFIG_LOG_BITS_DEFAULT +#define X86_64_ACCTON_WEDGE100BF_65X_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT +#endif + +/** + * X86_64_ACCTON_WEDGE100BF_65X_CONFIG_LOG_CUSTOM_BITS_DEFAULT + * + * Default enabled custom log bits. */ + + +#ifndef X86_64_ACCTON_WEDGE100BF_65X_CONFIG_LOG_CUSTOM_BITS_DEFAULT +#define X86_64_ACCTON_WEDGE100BF_65X_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 +#endif + +/** + * X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_STDLIB + * + * Default all porting macros to use the C standard libraries. */ + + +#ifndef X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_STDLIB +#define X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_STDLIB 1 +#endif + +/** + * X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + * + * Include standard library headers for stdlib porting macros. */ + + +#ifndef X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS +#define X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_STDLIB +#endif + +/** + * X86_64_ACCTON_WEDGE100BF_65X_CONFIG_INCLUDE_UCLI + * + * Include generic uCli support. */ + + +#ifndef X86_64_ACCTON_WEDGE100BF_65X_CONFIG_INCLUDE_UCLI +#define X86_64_ACCTON_WEDGE100BF_65X_CONFIG_INCLUDE_UCLI 0 +#endif + +/** + * X86_64_ACCTON_WEDGE100BF_65X_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION + * + * Assume chassis fan direction is the same as the PSU fan direction. */ + + +#ifndef X86_64_ACCTON_WEDGE100BF_65X_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION +#define X86_64_ACCTON_WEDGE100BF_65X_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION 0 +#endif + + + +/** + * All compile time options can be queried or displayed + */ + +/** Configuration settings structure. */ +typedef struct x86_64_accton_wedge100bf_65x_config_settings_s { + /** name */ + const char* name; + /** value */ + const char* value; +} x86_64_accton_wedge100bf_65x_config_settings_t; + +/** Configuration settings table. */ +/** x86_64_accton_wedge100bf_65x_config_settings table. */ +extern x86_64_accton_wedge100bf_65x_config_settings_t x86_64_accton_wedge100bf_65x_config_settings[]; + +/** + * @brief Lookup a configuration setting. + * @param setting The name of the configuration option to lookup. + */ +const char* x86_64_accton_wedge100bf_65x_config_lookup(const char* setting); + +/** + * @brief Show the compile-time configuration. + * @param pvs The output stream. + */ +int x86_64_accton_wedge100bf_65x_config_show(struct aim_pvs_s* pvs); + +/* */ #include "x86_64_accton_wedge100bf_65x_porting.h" diff --git a/packages/platforms/accton/x86-64/wedge100bf-65x/onlp/builds/x86_64_accton_wedge100bf_65x/module/inc/x86_64_accton_wedge100bf_65x/x86_64_accton_wedge100bf_65x_porting.h b/packages/platforms/accton/x86-64/wedge100bf-65x/onlp/builds/x86_64_accton_wedge100bf_65x/module/inc/x86_64_accton_wedge100bf_65x/x86_64_accton_wedge100bf_65x_porting.h index 2a58754a..f81170ae 100644 --- a/packages/platforms/accton/x86-64/wedge100bf-65x/onlp/builds/x86_64_accton_wedge100bf_65x/module/inc/x86_64_accton_wedge100bf_65x/x86_64_accton_wedge100bf_65x_porting.h +++ b/packages/platforms/accton/x86-64/wedge100bf-65x/onlp/builds/x86_64_accton_wedge100bf_65x/module/inc/x86_64_accton_wedge100bf_65x/x86_64_accton_wedge100bf_65x_porting.h @@ -12,94 +12,94 @@ /* */ -#if X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 -#include -#include -#include -#include -#include -#endif - -#ifndef x86_64_accton_wedge100bf_65x_MALLOC - #if defined(GLOBAL_MALLOC) - #define x86_64_accton_wedge100bf_65x_MALLOC GLOBAL_MALLOC - #elif X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_wedge100bf_65x_MALLOC malloc - #else - #error The macro x86_64_accton_wedge100bf_65x_MALLOC is required but cannot be defined. - #endif -#endif - -#ifndef x86_64_accton_wedge100bf_65x_FREE - #if defined(GLOBAL_FREE) - #define x86_64_accton_wedge100bf_65x_FREE GLOBAL_FREE - #elif X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_wedge100bf_65x_FREE free - #else - #error The macro x86_64_accton_wedge100bf_65x_FREE is required but cannot be defined. - #endif -#endif - -#ifndef x86_64_accton_wedge100bf_65x_MEMSET - #if defined(GLOBAL_MEMSET) - #define x86_64_accton_wedge100bf_65x_MEMSET GLOBAL_MEMSET - #elif X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_wedge100bf_65x_MEMSET memset - #else - #error The macro x86_64_accton_wedge100bf_65x_MEMSET is required but cannot be defined. - #endif -#endif - -#ifndef x86_64_accton_wedge100bf_65x_MEMCPY - #if defined(GLOBAL_MEMCPY) - #define x86_64_accton_wedge100bf_65x_MEMCPY GLOBAL_MEMCPY - #elif X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_wedge100bf_65x_MEMCPY memcpy - #else - #error The macro x86_64_accton_wedge100bf_65x_MEMCPY is required but cannot be defined. - #endif -#endif - -#ifndef x86_64_accton_wedge100bf_65x_STRNCPY - #if defined(GLOBAL_STRNCPY) - #define x86_64_accton_wedge100bf_65x_STRNCPY GLOBAL_STRNCPY - #elif X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_wedge100bf_65x_STRNCPY strncpy - #else - #error The macro x86_64_accton_wedge100bf_65x_STRNCPY is required but cannot be defined. - #endif -#endif - -#ifndef x86_64_accton_wedge100bf_65x_VSNPRINTF - #if defined(GLOBAL_VSNPRINTF) - #define x86_64_accton_wedge100bf_65x_VSNPRINTF GLOBAL_VSNPRINTF - #elif X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_wedge100bf_65x_VSNPRINTF vsnprintf - #else - #error The macro x86_64_accton_wedge100bf_65x_VSNPRINTF is required but cannot be defined. - #endif -#endif - -#ifndef x86_64_accton_wedge100bf_65x_SNPRINTF - #if defined(GLOBAL_SNPRINTF) - #define x86_64_accton_wedge100bf_65x_SNPRINTF GLOBAL_SNPRINTF - #elif X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_wedge100bf_65x_SNPRINTF snprintf - #else - #error The macro x86_64_accton_wedge100bf_65x_SNPRINTF is required but cannot be defined. - #endif -#endif - -#ifndef x86_64_accton_wedge100bf_65x_STRLEN - #if defined(GLOBAL_STRLEN) - #define x86_64_accton_wedge100bf_65x_STRLEN GLOBAL_STRLEN - #elif X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_STDLIB == 1 - #define x86_64_accton_wedge100bf_65x_STRLEN strlen - #else - #error The macro x86_64_accton_wedge100bf_65x_STRLEN is required but cannot be defined. - #endif -#endif - +#if X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 +#include +#include +#include +#include +#include +#endif + +#ifndef X86_64_ACCTON_WEDGE100BF_65X_MALLOC + #if defined(GLOBAL_MALLOC) + #define X86_64_ACCTON_WEDGE100BF_65X_MALLOC GLOBAL_MALLOC + #elif X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_WEDGE100BF_65X_MALLOC malloc + #else + #error The macro X86_64_ACCTON_WEDGE100BF_65X_MALLOC is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_WEDGE100BF_65X_FREE + #if defined(GLOBAL_FREE) + #define X86_64_ACCTON_WEDGE100BF_65X_FREE GLOBAL_FREE + #elif X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_WEDGE100BF_65X_FREE free + #else + #error The macro X86_64_ACCTON_WEDGE100BF_65X_FREE is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_WEDGE100BF_65X_MEMSET + #if defined(GLOBAL_MEMSET) + #define X86_64_ACCTON_WEDGE100BF_65X_MEMSET GLOBAL_MEMSET + #elif X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_WEDGE100BF_65X_MEMSET memset + #else + #error The macro X86_64_ACCTON_WEDGE100BF_65X_MEMSET is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_WEDGE100BF_65X_MEMCPY + #if defined(GLOBAL_MEMCPY) + #define X86_64_ACCTON_WEDGE100BF_65X_MEMCPY GLOBAL_MEMCPY + #elif X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_WEDGE100BF_65X_MEMCPY memcpy + #else + #error The macro X86_64_ACCTON_WEDGE100BF_65X_MEMCPY is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_WEDGE100BF_65X_STRNCPY + #if defined(GLOBAL_STRNCPY) + #define X86_64_ACCTON_WEDGE100BF_65X_STRNCPY GLOBAL_STRNCPY + #elif X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_WEDGE100BF_65X_STRNCPY strncpy + #else + #error The macro X86_64_ACCTON_WEDGE100BF_65X_STRNCPY is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_WEDGE100BF_65X_VSNPRINTF + #if defined(GLOBAL_VSNPRINTF) + #define X86_64_ACCTON_WEDGE100BF_65X_VSNPRINTF GLOBAL_VSNPRINTF + #elif X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_WEDGE100BF_65X_VSNPRINTF vsnprintf + #else + #error The macro X86_64_ACCTON_WEDGE100BF_65X_VSNPRINTF is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_WEDGE100BF_65X_SNPRINTF + #if defined(GLOBAL_SNPRINTF) + #define X86_64_ACCTON_WEDGE100BF_65X_SNPRINTF GLOBAL_SNPRINTF + #elif X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_WEDGE100BF_65X_SNPRINTF snprintf + #else + #error The macro X86_64_ACCTON_WEDGE100BF_65X_SNPRINTF is required but cannot be defined. + #endif +#endif + +#ifndef X86_64_ACCTON_WEDGE100BF_65X_STRLEN + #if defined(GLOBAL_STRLEN) + #define X86_64_ACCTON_WEDGE100BF_65X_STRLEN GLOBAL_STRLEN + #elif X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_ACCTON_WEDGE100BF_65X_STRLEN strlen + #else + #error The macro X86_64_ACCTON_WEDGE100BF_65X_STRLEN is required but cannot be defined. + #endif +#endif + /* */ diff --git a/packages/platforms/accton/x86-64/wedge100bf-65x/onlp/builds/x86_64_accton_wedge100bf_65x/module/src/x86_64_accton_wedge100bf_65x_config.c b/packages/platforms/accton/x86-64/wedge100bf-65x/onlp/builds/x86_64_accton_wedge100bf_65x/module/src/x86_64_accton_wedge100bf_65x_config.c index 65405d9b..10d72a9f 100644 --- a/packages/platforms/accton/x86-64/wedge100bf-65x/onlp/builds/x86_64_accton_wedge100bf_65x/module/src/x86_64_accton_wedge100bf_65x_config.c +++ b/packages/platforms/accton/x86-64/wedge100bf-65x/onlp/builds/x86_64_accton_wedge100bf_65x/module/src/x86_64_accton_wedge100bf_65x_config.c @@ -5,76 +5,76 @@ *****************************************************************************/ #include -/* */ -#define __x86_64_accton_wedge100bf_65x_config_STRINGIFY_NAME(_x) #_x -#define __x86_64_accton_wedge100bf_65x_config_STRINGIFY_VALUE(_x) __x86_64_accton_wedge100bf_65x_config_STRINGIFY_NAME(_x) -x86_64_accton_wedge100bf_65x_config_settings_t x86_64_accton_wedge100bf_65x_config_settings[] = -{ -#ifdef X86_64_ACCTON_WEDGE100BF_65X_CONFIG_INCLUDE_LOGGING - { __x86_64_accton_wedge100bf_65x_config_STRINGIFY_NAME(X86_64_ACCTON_WEDGE100BF_65X_CONFIG_INCLUDE_LOGGING), __x86_64_accton_wedge100bf_65x_config_STRINGIFY_VALUE(X86_64_ACCTON_WEDGE100BF_65X_CONFIG_INCLUDE_LOGGING) }, -#else -{ X86_64_ACCTON_WEDGE100BF_65X_CONFIG_INCLUDE_LOGGING(__x86_64_accton_wedge100bf_65x_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef X86_64_ACCTON_WEDGE100BF_65X_CONFIG_LOG_OPTIONS_DEFAULT - { __x86_64_accton_wedge100bf_65x_config_STRINGIFY_NAME(X86_64_ACCTON_WEDGE100BF_65X_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_accton_wedge100bf_65x_config_STRINGIFY_VALUE(X86_64_ACCTON_WEDGE100BF_65X_CONFIG_LOG_OPTIONS_DEFAULT) }, -#else -{ X86_64_ACCTON_WEDGE100BF_65X_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_accton_wedge100bf_65x_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef X86_64_ACCTON_WEDGE100BF_65X_CONFIG_LOG_BITS_DEFAULT - { __x86_64_accton_wedge100bf_65x_config_STRINGIFY_NAME(X86_64_ACCTON_WEDGE100BF_65X_CONFIG_LOG_BITS_DEFAULT), __x86_64_accton_wedge100bf_65x_config_STRINGIFY_VALUE(X86_64_ACCTON_WEDGE100BF_65X_CONFIG_LOG_BITS_DEFAULT) }, -#else -{ X86_64_ACCTON_WEDGE100BF_65X_CONFIG_LOG_BITS_DEFAULT(__x86_64_accton_wedge100bf_65x_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef X86_64_ACCTON_WEDGE100BF_65X_CONFIG_LOG_CUSTOM_BITS_DEFAULT - { __x86_64_accton_wedge100bf_65x_config_STRINGIFY_NAME(X86_64_ACCTON_WEDGE100BF_65X_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_accton_wedge100bf_65x_config_STRINGIFY_VALUE(X86_64_ACCTON_WEDGE100BF_65X_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, -#else -{ X86_64_ACCTON_WEDGE100BF_65X_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_accton_wedge100bf_65x_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_STDLIB - { __x86_64_accton_wedge100bf_65x_config_STRINGIFY_NAME(X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_STDLIB), __x86_64_accton_wedge100bf_65x_config_STRINGIFY_VALUE(X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_STDLIB) }, -#else -{ X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_STDLIB(__x86_64_accton_wedge100bf_65x_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS - { __x86_64_accton_wedge100bf_65x_config_STRINGIFY_NAME(X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_accton_wedge100bf_65x_config_STRINGIFY_VALUE(X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, -#else -{ X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_accton_wedge100bf_65x_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef X86_64_ACCTON_WEDGE100BF_65X_CONFIG_INCLUDE_UCLI - { __x86_64_accton_wedge100bf_65x_config_STRINGIFY_NAME(X86_64_ACCTON_WEDGE100BF_65X_CONFIG_INCLUDE_UCLI), __x86_64_accton_wedge100bf_65x_config_STRINGIFY_VALUE(X86_64_ACCTON_WEDGE100BF_65X_CONFIG_INCLUDE_UCLI) }, -#else -{ X86_64_ACCTON_WEDGE100BF_65X_CONFIG_INCLUDE_UCLI(__x86_64_accton_wedge100bf_65x_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef X86_64_ACCTON_WEDGE100BF_65X_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION - { __x86_64_accton_wedge100bf_65x_config_STRINGIFY_NAME(X86_64_ACCTON_WEDGE100BF_65X_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __x86_64_accton_wedge100bf_65x_config_STRINGIFY_VALUE(X86_64_ACCTON_WEDGE100BF_65X_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, -#else -{ X86_64_ACCTON_WEDGE100BF_65X_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__x86_64_accton_wedge100bf_65x_config_STRINGIFY_NAME), "__undefined__" }, -#endif - { NULL, NULL } -}; -#undef __x86_64_accton_wedge100bf_65x_config_STRINGIFY_VALUE -#undef __x86_64_accton_wedge100bf_65x_config_STRINGIFY_NAME - -const char* -x86_64_accton_wedge100bf_65x_config_lookup(const char* setting) -{ - int i; - for(i = 0; x86_64_accton_wedge100bf_65x_config_settings[i].name; i++) { - if(strcmp(x86_64_accton_wedge100bf_65x_config_settings[i].name, setting)) { - return x86_64_accton_wedge100bf_65x_config_settings[i].value; - } - } - return NULL; -} - -int -x86_64_accton_wedge100bf_65x_config_show(struct aim_pvs_s* pvs) -{ - int i; - for(i = 0; x86_64_accton_wedge100bf_65x_config_settings[i].name; i++) { - aim_printf(pvs, "%s = %s\n", x86_64_accton_wedge100bf_65x_config_settings[i].name, x86_64_accton_wedge100bf_65x_config_settings[i].value); - } - return i; -} - -/* */ \ No newline at end of file +/* */ +#define __x86_64_accton_wedge100bf_65x_config_STRINGIFY_NAME(_x) #_x +#define __x86_64_accton_wedge100bf_65x_config_STRINGIFY_VALUE(_x) __x86_64_accton_wedge100bf_65x_config_STRINGIFY_NAME(_x) +x86_64_accton_wedge100bf_65x_config_settings_t x86_64_accton_wedge100bf_65x_config_settings[] = +{ +#ifdef X86_64_ACCTON_WEDGE100BF_65X_CONFIG_INCLUDE_LOGGING + { __x86_64_accton_wedge100bf_65x_config_STRINGIFY_NAME(X86_64_ACCTON_WEDGE100BF_65X_CONFIG_INCLUDE_LOGGING), __x86_64_accton_wedge100bf_65x_config_STRINGIFY_VALUE(X86_64_ACCTON_WEDGE100BF_65X_CONFIG_INCLUDE_LOGGING) }, +#else +{ X86_64_ACCTON_WEDGE100BF_65X_CONFIG_INCLUDE_LOGGING(__x86_64_accton_wedge100bf_65x_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_WEDGE100BF_65X_CONFIG_LOG_OPTIONS_DEFAULT + { __x86_64_accton_wedge100bf_65x_config_STRINGIFY_NAME(X86_64_ACCTON_WEDGE100BF_65X_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_accton_wedge100bf_65x_config_STRINGIFY_VALUE(X86_64_ACCTON_WEDGE100BF_65X_CONFIG_LOG_OPTIONS_DEFAULT) }, +#else +{ X86_64_ACCTON_WEDGE100BF_65X_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_accton_wedge100bf_65x_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_WEDGE100BF_65X_CONFIG_LOG_BITS_DEFAULT + { __x86_64_accton_wedge100bf_65x_config_STRINGIFY_NAME(X86_64_ACCTON_WEDGE100BF_65X_CONFIG_LOG_BITS_DEFAULT), __x86_64_accton_wedge100bf_65x_config_STRINGIFY_VALUE(X86_64_ACCTON_WEDGE100BF_65X_CONFIG_LOG_BITS_DEFAULT) }, +#else +{ X86_64_ACCTON_WEDGE100BF_65X_CONFIG_LOG_BITS_DEFAULT(__x86_64_accton_wedge100bf_65x_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_WEDGE100BF_65X_CONFIG_LOG_CUSTOM_BITS_DEFAULT + { __x86_64_accton_wedge100bf_65x_config_STRINGIFY_NAME(X86_64_ACCTON_WEDGE100BF_65X_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_accton_wedge100bf_65x_config_STRINGIFY_VALUE(X86_64_ACCTON_WEDGE100BF_65X_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, +#else +{ X86_64_ACCTON_WEDGE100BF_65X_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_accton_wedge100bf_65x_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_STDLIB + { __x86_64_accton_wedge100bf_65x_config_STRINGIFY_NAME(X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_STDLIB), __x86_64_accton_wedge100bf_65x_config_STRINGIFY_VALUE(X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_STDLIB) }, +#else +{ X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_STDLIB(__x86_64_accton_wedge100bf_65x_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + { __x86_64_accton_wedge100bf_65x_config_STRINGIFY_NAME(X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_accton_wedge100bf_65x_config_STRINGIFY_VALUE(X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, +#else +{ X86_64_ACCTON_WEDGE100BF_65X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_accton_wedge100bf_65x_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_WEDGE100BF_65X_CONFIG_INCLUDE_UCLI + { __x86_64_accton_wedge100bf_65x_config_STRINGIFY_NAME(X86_64_ACCTON_WEDGE100BF_65X_CONFIG_INCLUDE_UCLI), __x86_64_accton_wedge100bf_65x_config_STRINGIFY_VALUE(X86_64_ACCTON_WEDGE100BF_65X_CONFIG_INCLUDE_UCLI) }, +#else +{ X86_64_ACCTON_WEDGE100BF_65X_CONFIG_INCLUDE_UCLI(__x86_64_accton_wedge100bf_65x_config_STRINGIFY_NAME), "__undefined__" }, +#endif +#ifdef X86_64_ACCTON_WEDGE100BF_65X_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION + { __x86_64_accton_wedge100bf_65x_config_STRINGIFY_NAME(X86_64_ACCTON_WEDGE100BF_65X_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __x86_64_accton_wedge100bf_65x_config_STRINGIFY_VALUE(X86_64_ACCTON_WEDGE100BF_65X_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, +#else +{ X86_64_ACCTON_WEDGE100BF_65X_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__x86_64_accton_wedge100bf_65x_config_STRINGIFY_NAME), "__undefined__" }, +#endif + { NULL, NULL } +}; +#undef __x86_64_accton_wedge100bf_65x_config_STRINGIFY_VALUE +#undef __x86_64_accton_wedge100bf_65x_config_STRINGIFY_NAME + +const char* +x86_64_accton_wedge100bf_65x_config_lookup(const char* setting) +{ + int i; + for(i = 0; x86_64_accton_wedge100bf_65x_config_settings[i].name; i++) { + if(!strcmp(x86_64_accton_wedge100bf_65x_config_settings[i].name, setting)) { + return x86_64_accton_wedge100bf_65x_config_settings[i].value; + } + } + return NULL; +} + +int +x86_64_accton_wedge100bf_65x_config_show(struct aim_pvs_s* pvs) +{ + int i; + for(i = 0; x86_64_accton_wedge100bf_65x_config_settings[i].name; i++) { + aim_printf(pvs, "%s = %s\n", x86_64_accton_wedge100bf_65x_config_settings[i].name, x86_64_accton_wedge100bf_65x_config_settings[i].value); + } + return i; +} + +/* */ diff --git a/packages/platforms/delta/armel/ag6248c/src/arm_delta_ag6248c/arm_delta_ag6248c.mk b/packages/platforms/delta/armel/ag6248c/src/arm_delta_ag6248c/arm_delta_ag6248c.mk index 42ac4368..e915bc51 100644 --- a/packages/platforms/delta/armel/ag6248c/src/arm_delta_ag6248c/arm_delta_ag6248c.mk +++ b/packages/platforms/delta/armel/ag6248c/src/arm_delta_ag6248c/arm_delta_ag6248c.mk @@ -3,7 +3,7 @@ # # Inclusive Makefile for the arm_delta_ag6248c module. # -# Autogenerated 2017-02-16 14:19:33.628446 +# Autogenerated 2019-07-11 19:31:22.474361 # ############################################################################### arm_delta_ag6248c_BASEDIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST)))) diff --git a/packages/platforms/delta/armel/ag6248c/src/arm_delta_ag6248c/module/src/arm_delta_ag6248c_config.c b/packages/platforms/delta/armel/ag6248c/src/arm_delta_ag6248c/module/src/arm_delta_ag6248c_config.c index e116934f..47b85906 100644 --- a/packages/platforms/delta/armel/ag6248c/src/arm_delta_ag6248c/module/src/arm_delta_ag6248c_config.c +++ b/packages/platforms/delta/armel/ag6248c/src/arm_delta_ag6248c/module/src/arm_delta_ag6248c_config.c @@ -75,7 +75,7 @@ arm_delta_ag6248c_config_lookup(const char* setting) { int i; for(i = 0; arm_delta_ag6248c_config_settings[i].name; i++) { - if(strcmp(arm_delta_ag6248c_config_settings[i].name, setting)) { + if(!strcmp(arm_delta_ag6248c_config_settings[i].name, setting)) { return arm_delta_ag6248c_config_settings[i].value; } } diff --git a/packages/platforms/delta/x86-64/ag7648c/onlp/builds/x86_64_delta_ag7648c/Makefile b/packages/platforms/delta/x86-64/ag7648c/onlp/builds/x86_64_delta_ag7648c/Makefile index 5722a637..7527b748 100644 --- a/packages/platforms/delta/x86-64/ag7648c/onlp/builds/x86_64_delta_ag7648c/Makefile +++ b/packages/platforms/delta/x86-64/ag7648c/onlp/builds/x86_64_delta_ag7648c/Makefile @@ -1,9 +1,9 @@ ############################################################################### # -# +# # ############################################################################### -include ../../init.mk +include $(ONL)/make/config.mk MODULE := x86_64_delta_ag7648c AUTOMODULE := x86_64_delta_ag7648c include $(BUILDER)/definemodule.mk diff --git a/packages/platforms/delta/x86-64/ag7648c/onlp/builds/x86_64_delta_ag7648c/module/inc/x86_64_delta_ag7648c/x86_64_delta_ag7648c_porting.h b/packages/platforms/delta/x86-64/ag7648c/onlp/builds/x86_64_delta_ag7648c/module/inc/x86_64_delta_ag7648c/x86_64_delta_ag7648c_porting.h index c47d5e94..a03a6d4e 100755 --- a/packages/platforms/delta/x86-64/ag7648c/onlp/builds/x86_64_delta_ag7648c/module/inc/x86_64_delta_ag7648c/x86_64_delta_ag7648c_porting.h +++ b/packages/platforms/delta/x86-64/ag7648c/onlp/builds/x86_64_delta_ag7648c/module/inc/x86_64_delta_ag7648c/x86_64_delta_ag7648c_porting.h @@ -20,83 +20,83 @@ #include #endif -#ifndef x86_64_delta_ag7648c_MALLOC +#ifndef X86_64_DELTA_AG7648C_MALLOC #if defined(GLOBAL_MALLOC) - #define x86_64_delta_ag7648c_MALLOC GLOBAL_MALLOC + #define X86_64_DELTA_AG7648C_MALLOC GLOBAL_MALLOC #elif X86_64_DELTA_AG7648C_CONFIG_PORTING_STDLIB == 1 - #define x86_64_delta_ag7648c_MALLOC malloc + #define X86_64_DELTA_AG7648C_MALLOC malloc #else - #error The macro x86_64_delta_ag7648c_MALLOC is required but cannot be defined. + #error The macro X86_64_DELTA_AG7648C_MALLOC is required but cannot be defined. #endif #endif -#ifndef x86_64_delta_ag7648c_FREE +#ifndef X86_64_DELTA_AG7648C_FREE #if defined(GLOBAL_FREE) - #define x86_64_delta_ag7648c_FREE GLOBAL_FREE + #define X86_64_DELTA_AG7648C_FREE GLOBAL_FREE #elif X86_64_DELTA_AG7648C_CONFIG_PORTING_STDLIB == 1 - #define x86_64_delta_ag7648c_FREE free + #define X86_64_DELTA_AG7648C_FREE free #else - #error The macro x86_64_delta_ag7648c_FREE is required but cannot be defined. + #error The macro X86_64_DELTA_AG7648C_FREE is required but cannot be defined. #endif #endif -#ifndef x86_64_delta_ag7648c_MEMSET +#ifndef X86_64_DELTA_AG7648C_MEMSET #if defined(GLOBAL_MEMSET) - #define x86_64_delta_ag7648c_MEMSET GLOBAL_MEMSET + #define X86_64_DELTA_AG7648C_MEMSET GLOBAL_MEMSET #elif X86_64_DELTA_AG7648C_CONFIG_PORTING_STDLIB == 1 - #define x86_64_delta_ag7648c_MEMSET memset + #define X86_64_DELTA_AG7648C_MEMSET memset #else - #error The macro x86_64_delta_ag7648c_MEMSET is required but cannot be defined. + #error The macro X86_64_DELTA_AG7648C_MEMSET is required but cannot be defined. #endif #endif -#ifndef x86_64_delta_ag7648c_MEMCPY +#ifndef X86_64_DELTA_AG7648C_MEMCPY #if defined(GLOBAL_MEMCPY) - #define x86_64_delta_ag7648c_MEMCPY GLOBAL_MEMCPY + #define X86_64_DELTA_AG7648C_MEMCPY GLOBAL_MEMCPY #elif X86_64_DELTA_AG7648C_CONFIG_PORTING_STDLIB == 1 - #define x86_64_delta_ag7648c_MEMCPY memcpy + #define X86_64_DELTA_AG7648C_MEMCPY memcpy #else - #error The macro x86_64_delta_ag7648c_MEMCPY is required but cannot be defined. + #error The macro X86_64_DELTA_AG7648C_MEMCPY is required but cannot be defined. #endif #endif -#ifndef x86_64_delta_ag7648c_STRNCPY +#ifndef X86_64_DELTA_AG7648C_STRNCPY #if defined(GLOBAL_STRNCPY) - #define x86_64_delta_ag7648c_STRNCPY GLOBAL_STRNCPY + #define X86_64_DELTA_AG7648C_STRNCPY GLOBAL_STRNCPY #elif X86_64_DELTA_AG7648C_CONFIG_PORTING_STDLIB == 1 - #define x86_64_delta_ag7648c_STRNCPY strncpy + #define X86_64_DELTA_AG7648C_STRNCPY strncpy #else - #error The macro x86_64_delta_ag7648c_STRNCPY is required but cannot be defined. + #error The macro X86_64_DELTA_AG7648C_STRNCPY is required but cannot be defined. #endif #endif -#ifndef x86_64_delta_ag7648c_VSNPRINTF +#ifndef X86_64_DELTA_AG7648C_VSNPRINTF #if defined(GLOBAL_VSNPRINTF) - #define x86_64_delta_ag7648c_VSNPRINTF GLOBAL_VSNPRINTF + #define X86_64_DELTA_AG7648C_VSNPRINTF GLOBAL_VSNPRINTF #elif X86_64_DELTA_AG7648C_CONFIG_PORTING_STDLIB == 1 - #define x86_64_delta_ag7648c_VSNPRINTF vsnprintf + #define X86_64_DELTA_AG7648C_VSNPRINTF vsnprintf #else - #error The macro x86_64_delta_ag7648c_VSNPRINTF is required but cannot be defined. + #error The macro X86_64_DELTA_AG7648C_VSNPRINTF is required but cannot be defined. #endif #endif -#ifndef x86_64_delta_ag7648c_SNPRINTF +#ifndef X86_64_DELTA_AG7648C_SNPRINTF #if defined(GLOBAL_SNPRINTF) - #define x86_64_delta_ag7648c_SNPRINTF GLOBAL_SNPRINTF + #define X86_64_DELTA_AG7648C_SNPRINTF GLOBAL_SNPRINTF #elif X86_64_DELTA_AG7648C_CONFIG_PORTING_STDLIB == 1 - #define x86_64_delta_ag7648c_SNPRINTF snprintf + #define X86_64_DELTA_AG7648C_SNPRINTF snprintf #else - #error The macro x86_64_delta_ag7648c_SNPRINTF is required but cannot be defined. + #error The macro X86_64_DELTA_AG7648C_SNPRINTF is required but cannot be defined. #endif #endif -#ifndef x86_64_delta_ag7648c_STRLEN +#ifndef X86_64_DELTA_AG7648C_STRLEN #if defined(GLOBAL_STRLEN) - #define x86_64_delta_ag7648c_STRLEN GLOBAL_STRLEN + #define X86_64_DELTA_AG7648C_STRLEN GLOBAL_STRLEN #elif X86_64_DELTA_AG7648C_CONFIG_PORTING_STDLIB == 1 - #define x86_64_delta_ag7648c_STRLEN strlen + #define X86_64_DELTA_AG7648C_STRLEN strlen #else - #error The macro x86_64_delta_ag7648c_STRLEN is required but cannot be defined. + #error The macro X86_64_DELTA_AG7648C_STRLEN is required but cannot be defined. #endif #endif diff --git a/packages/platforms/delta/x86-64/ag7648c/onlp/builds/x86_64_delta_ag7648c/module/src/x86_64_delta_ag7648c_config.c b/packages/platforms/delta/x86-64/ag7648c/onlp/builds/x86_64_delta_ag7648c/module/src/x86_64_delta_ag7648c_config.c index 3cabebd2..195e83d9 100755 --- a/packages/platforms/delta/x86-64/ag7648c/onlp/builds/x86_64_delta_ag7648c/module/src/x86_64_delta_ag7648c_config.c +++ b/packages/platforms/delta/x86-64/ag7648c/onlp/builds/x86_64_delta_ag7648c/module/src/x86_64_delta_ag7648c_config.c @@ -60,7 +60,7 @@ x86_64_delta_ag7648c_config_lookup(const char* setting) { int i; for(i = 0; x86_64_delta_ag7648c_config_settings[i].name; i++) { - if(strcmp(x86_64_delta_ag7648c_config_settings[i].name, setting)) { + if(!strcmp(x86_64_delta_ag7648c_config_settings[i].name, setting)) { return x86_64_delta_ag7648c_config_settings[i].value; } } diff --git a/packages/platforms/delta/x86-64/ag7648c/onlp/builds/x86_64_delta_ag7648c/x86_64_delta_ag7648c.mk b/packages/platforms/delta/x86-64/ag7648c/onlp/builds/x86_64_delta_ag7648c/x86_64_delta_ag7648c.mk index 1f82839d..1ad4b1a2 100755 --- a/packages/platforms/delta/x86-64/ag7648c/onlp/builds/x86_64_delta_ag7648c/x86_64_delta_ag7648c.mk +++ b/packages/platforms/delta/x86-64/ag7648c/onlp/builds/x86_64_delta_ag7648c/x86_64_delta_ag7648c.mk @@ -3,7 +3,7 @@ # # Inclusive Makefile for the x86_64_delta_ag7648c module. # -# Autogenerated 2017-03-20 15:05:23.627200 +# Autogenerated 2019-07-13 17:35:31.582275 # ############################################################################### x86_64_delta_ag7648c_BASEDIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST)))) diff --git a/packages/platforms/delta/x86-64/ag8032/onlp/builds/x86_64_delta_ag8032/Makefile b/packages/platforms/delta/x86-64/ag8032/onlp/builds/x86_64_delta_ag8032/Makefile index a3469613..54745d02 100644 --- a/packages/platforms/delta/x86-64/ag8032/onlp/builds/x86_64_delta_ag8032/Makefile +++ b/packages/platforms/delta/x86-64/ag8032/onlp/builds/x86_64_delta_ag8032/Makefile @@ -1,9 +1,9 @@ ############################################################################### # -# +# # ############################################################################### -include ../../init.mk +include $(ONL)/make/config.mk MODULE := x86_64_delta_ag8032 AUTOMODULE := x86_64_delta_ag8032 include $(BUILDER)/definemodule.mk diff --git a/packages/platforms/delta/x86-64/ag8032/onlp/builds/x86_64_delta_ag8032/module/inc/x86_64_delta_ag8032/x86_64_delta_ag8032_porting.h b/packages/platforms/delta/x86-64/ag8032/onlp/builds/x86_64_delta_ag8032/module/inc/x86_64_delta_ag8032/x86_64_delta_ag8032_porting.h index afd2ea88..9088d81b 100644 --- a/packages/platforms/delta/x86-64/ag8032/onlp/builds/x86_64_delta_ag8032/module/inc/x86_64_delta_ag8032/x86_64_delta_ag8032_porting.h +++ b/packages/platforms/delta/x86-64/ag8032/onlp/builds/x86_64_delta_ag8032/module/inc/x86_64_delta_ag8032/x86_64_delta_ag8032_porting.h @@ -20,83 +20,83 @@ #include #endif -#ifndef x86_64_delta_ag8032_MALLOC +#ifndef X86_64_DELTA_AG8032_MALLOC #if defined(GLOBAL_MALLOC) - #define x86_64_delta_ag8032_MALLOC GLOBAL_MALLOC + #define X86_64_DELTA_AG8032_MALLOC GLOBAL_MALLOC #elif X86_64_DELTA_AG8032_CONFIG_PORTING_STDLIB == 1 - #define x86_64_delta_ag8032_MALLOC malloc + #define X86_64_DELTA_AG8032_MALLOC malloc #else - #error The macro x86_64_delta_ag8032_MALLOC is required but cannot be defined. + #error The macro X86_64_DELTA_AG8032_MALLOC is required but cannot be defined. #endif #endif -#ifndef x86_64_delta_ag8032_FREE +#ifndef X86_64_DELTA_AG8032_FREE #if defined(GLOBAL_FREE) - #define x86_64_delta_ag8032_FREE GLOBAL_FREE + #define X86_64_DELTA_AG8032_FREE GLOBAL_FREE #elif X86_64_DELTA_AG8032_CONFIG_PORTING_STDLIB == 1 - #define x86_64_delta_ag8032_FREE free + #define X86_64_DELTA_AG8032_FREE free #else - #error The macro x86_64_delta_ag8032_FREE is required but cannot be defined. + #error The macro X86_64_DELTA_AG8032_FREE is required but cannot be defined. #endif #endif -#ifndef x86_64_delta_ag8032_MEMSET +#ifndef X86_64_DELTA_AG8032_MEMSET #if defined(GLOBAL_MEMSET) - #define x86_64_delta_ag8032_MEMSET GLOBAL_MEMSET + #define X86_64_DELTA_AG8032_MEMSET GLOBAL_MEMSET #elif X86_64_DELTA_AG8032_CONFIG_PORTING_STDLIB == 1 - #define x86_64_delta_ag8032_MEMSET memset + #define X86_64_DELTA_AG8032_MEMSET memset #else - #error The macro x86_64_delta_ag8032_MEMSET is required but cannot be defined. + #error The macro X86_64_DELTA_AG8032_MEMSET is required but cannot be defined. #endif #endif -#ifndef x86_64_delta_ag8032_MEMCPY +#ifndef X86_64_DELTA_AG8032_MEMCPY #if defined(GLOBAL_MEMCPY) - #define x86_64_delta_ag8032_MEMCPY GLOBAL_MEMCPY + #define X86_64_DELTA_AG8032_MEMCPY GLOBAL_MEMCPY #elif X86_64_DELTA_AG8032_CONFIG_PORTING_STDLIB == 1 - #define x86_64_delta_ag8032_MEMCPY memcpy + #define X86_64_DELTA_AG8032_MEMCPY memcpy #else - #error The macro x86_64_delta_ag8032_MEMCPY is required but cannot be defined. + #error The macro X86_64_DELTA_AG8032_MEMCPY is required but cannot be defined. #endif #endif -#ifndef x86_64_delta_ag8032_STRNCPY +#ifndef X86_64_DELTA_AG8032_STRNCPY #if defined(GLOBAL_STRNCPY) - #define x86_64_delta_ag8032_STRNCPY GLOBAL_STRNCPY + #define X86_64_DELTA_AG8032_STRNCPY GLOBAL_STRNCPY #elif X86_64_DELTA_AG8032_CONFIG_PORTING_STDLIB == 1 - #define x86_64_delta_ag8032_STRNCPY strncpy + #define X86_64_DELTA_AG8032_STRNCPY strncpy #else - #error The macro x86_64_delta_ag8032_STRNCPY is required but cannot be defined. + #error The macro X86_64_DELTA_AG8032_STRNCPY is required but cannot be defined. #endif #endif -#ifndef x86_64_delta_ag8032_VSNPRINTF +#ifndef X86_64_DELTA_AG8032_VSNPRINTF #if defined(GLOBAL_VSNPRINTF) - #define x86_64_delta_ag8032_VSNPRINTF GLOBAL_VSNPRINTF + #define X86_64_DELTA_AG8032_VSNPRINTF GLOBAL_VSNPRINTF #elif X86_64_DELTA_AG8032_CONFIG_PORTING_STDLIB == 1 - #define x86_64_delta_ag8032_VSNPRINTF vsnprintf + #define X86_64_DELTA_AG8032_VSNPRINTF vsnprintf #else - #error The macro x86_64_delta_ag8032_VSNPRINTF is required but cannot be defined. + #error The macro X86_64_DELTA_AG8032_VSNPRINTF is required but cannot be defined. #endif #endif -#ifndef x86_64_delta_ag8032_SNPRINTF +#ifndef X86_64_DELTA_AG8032_SNPRINTF #if defined(GLOBAL_SNPRINTF) - #define x86_64_delta_ag8032_SNPRINTF GLOBAL_SNPRINTF + #define X86_64_DELTA_AG8032_SNPRINTF GLOBAL_SNPRINTF #elif X86_64_DELTA_AG8032_CONFIG_PORTING_STDLIB == 1 - #define x86_64_delta_ag8032_SNPRINTF snprintf + #define X86_64_DELTA_AG8032_SNPRINTF snprintf #else - #error The macro x86_64_delta_ag8032_SNPRINTF is required but cannot be defined. + #error The macro X86_64_DELTA_AG8032_SNPRINTF is required but cannot be defined. #endif #endif -#ifndef x86_64_delta_ag8032_STRLEN +#ifndef X86_64_DELTA_AG8032_STRLEN #if defined(GLOBAL_STRLEN) - #define x86_64_delta_ag8032_STRLEN GLOBAL_STRLEN + #define X86_64_DELTA_AG8032_STRLEN GLOBAL_STRLEN #elif X86_64_DELTA_AG8032_CONFIG_PORTING_STDLIB == 1 - #define x86_64_delta_ag8032_STRLEN strlen + #define X86_64_DELTA_AG8032_STRLEN strlen #else - #error The macro x86_64_delta_ag8032_STRLEN is required but cannot be defined. + #error The macro X86_64_DELTA_AG8032_STRLEN is required but cannot be defined. #endif #endif diff --git a/packages/platforms/delta/x86-64/ag8032/onlp/builds/x86_64_delta_ag8032/module/src/x86_64_delta_ag8032_config.c b/packages/platforms/delta/x86-64/ag8032/onlp/builds/x86_64_delta_ag8032/module/src/x86_64_delta_ag8032_config.c index 60c05d8c..100404f4 100644 --- a/packages/platforms/delta/x86-64/ag8032/onlp/builds/x86_64_delta_ag8032/module/src/x86_64_delta_ag8032_config.c +++ b/packages/platforms/delta/x86-64/ag8032/onlp/builds/x86_64_delta_ag8032/module/src/x86_64_delta_ag8032_config.c @@ -60,7 +60,7 @@ x86_64_delta_ag8032_config_lookup(const char* setting) { int i; for(i = 0; x86_64_delta_ag8032_config_settings[i].name; i++) { - if(strcmp(x86_64_delta_ag8032_config_settings[i].name, setting)) { + if(!strcmp(x86_64_delta_ag8032_config_settings[i].name, setting)) { return x86_64_delta_ag8032_config_settings[i].value; } } diff --git a/packages/platforms/delta/x86-64/ak7448/onlp/builds/x86_64_delta_ak7448/Makefile b/packages/platforms/delta/x86-64/ak7448/onlp/builds/x86_64_delta_ak7448/Makefile index cbec2174..74988f54 100644 --- a/packages/platforms/delta/x86-64/ak7448/onlp/builds/x86_64_delta_ak7448/Makefile +++ b/packages/platforms/delta/x86-64/ak7448/onlp/builds/x86_64_delta_ak7448/Makefile @@ -1,9 +1,9 @@ ############################################################################### # -# +# # ############################################################################### -include ../../init.mk +include $(ONL)/make/config.mk MODULE := x86_64_delta_ak7448 AUTOMODULE := x86_64_delta_ak7448 include $(BUILDER)/definemodule.mk diff --git a/packages/platforms/delta/x86-64/ak7448/onlp/builds/x86_64_delta_ak7448/module/auto/x86_64_delta_ak7448.yml b/packages/platforms/delta/x86-64/ak7448/onlp/builds/x86_64_delta_ak7448/module/auto/x86_64_delta_ak7448.yml index f62499f7..bd11539c 100644 --- a/packages/platforms/delta/x86-64/ak7448/onlp/builds/x86_64_delta_ak7448/module/auto/x86_64_delta_ak7448.yml +++ b/packages/platforms/delta/x86-64/ak7448/onlp/builds/x86_64_delta_ak7448/module/auto/x86_64_delta_ak7448.yml @@ -5,35 +5,35 @@ ############################################################################### cdefs: &cdefs -- X86_64_DELTA_AK7448_CONFIGINCLUDE_LOGGING: +- X86_64_DELTA_AK7448_CONFIG_INCLUDE_LOGGING: doc: "Include or exclude logging." default: 1 -- X86_64_DELTA_AK7448_CONFIGLOG_OPTIONS_DEFAULT: +- X86_64_DELTA_AK7448_CONFIG_LOG_OPTIONS_DEFAULT: doc: "Default enabled log options." default: AIM_LOG_OPTIONS_DEFAULT -- X86_64_DELTA_AK7448_CONFIGLOG_BITS_DEFAULT: +- X86_64_DELTA_AK7448_CONFIG_LOG_BITS_DEFAULT: doc: "Default enabled log bits." default: AIM_LOG_BITS_DEFAULT -- X86_64_DELTA_AK7448_CONFIGLOG_CUSTOM_BITS_DEFAULT: +- X86_64_DELTA_AK7448_CONFIG_LOG_CUSTOM_BITS_DEFAULT: doc: "Default enabled custom log bits." default: 0 -- X86_64_DELTA_AK7448_CONFIGPORTING_STDLIB: +- X86_64_DELTA_AK7448_CONFIG_PORTING_STDLIB: doc: "Default all porting macros to use the C standard libraries." default: 1 -- X86_64_DELTA_AK7448_CONFIGPORTING_INCLUDE_STDLIB_HEADERS: +- X86_64_DELTA_AK7448_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS: doc: "Include standard library headers for stdlib porting macros." - default: X86_64_DELTA_AK7448_CONFIGPORTING_STDLIB -- X86_64_DELTA_AK7448_CONFIGINCLUDE_UCLI: + default: X86_64_DELTA_AK7448_CONFIG_PORTING_STDLIB +- X86_64_DELTA_AK7448_CONFIG_INCLUDE_UCLI: doc: "Include generic uCli support." default: 0 -- X86_64_DELTA_AK7448_CONFIGINCLUDE_DEFAULT_FAN_DIRECTION: +- X86_64_DELTA_AK7448_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION: doc: "Assume chassis fan direction is the same as the PSU fan direction." default: 0 definitions: cdefs: - X86_64_DELTA_AK7448_CONFIGHEADER: + X86_64_DELTA_AK7448_CONFIG_HEADER: defs: *cdefs basename: x86_64_delta_ak7448_config diff --git a/packages/platforms/delta/x86-64/ak7448/onlp/builds/x86_64_delta_ak7448/module/inc/x86_64_delta_ak7448/x86_64_delta_ak7448_config.h b/packages/platforms/delta/x86-64/ak7448/onlp/builds/x86_64_delta_ak7448/module/inc/x86_64_delta_ak7448/x86_64_delta_ak7448_config.h index 2febf314..e30826e7 100644 --- a/packages/platforms/delta/x86-64/ak7448/onlp/builds/x86_64_delta_ak7448/module/inc/x86_64_delta_ak7448/x86_64_delta_ak7448_config.h +++ b/packages/platforms/delta/x86-64/ak7448/onlp/builds/x86_64_delta_ak7448/module/inc/x86_64_delta_ak7448/x86_64_delta_ak7448_config.h @@ -17,86 +17,86 @@ #include #endif -/* */ +/* */ #include /** - * X86_64_DELTA_AK7448_CONFIGINCLUDE_LOGGING + * X86_64_DELTA_AK7448_CONFIG_INCLUDE_LOGGING * * Include or exclude logging. */ -#ifndef X86_64_DELTA_AK7448_CONFIGINCLUDE_LOGGING -#define X86_64_DELTA_AK7448_CONFIGINCLUDE_LOGGING 1 +#ifndef X86_64_DELTA_AK7448_CONFIG_INCLUDE_LOGGING +#define X86_64_DELTA_AK7448_CONFIG_INCLUDE_LOGGING 1 #endif /** - * X86_64_DELTA_AK7448_CONFIGLOG_OPTIONS_DEFAULT + * X86_64_DELTA_AK7448_CONFIG_LOG_OPTIONS_DEFAULT * * Default enabled log options. */ -#ifndef X86_64_DELTA_AK7448_CONFIGLOG_OPTIONS_DEFAULT -#define X86_64_DELTA_AK7448_CONFIGLOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT +#ifndef X86_64_DELTA_AK7448_CONFIG_LOG_OPTIONS_DEFAULT +#define X86_64_DELTA_AK7448_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT #endif /** - * X86_64_DELTA_AK7448_CONFIGLOG_BITS_DEFAULT + * X86_64_DELTA_AK7448_CONFIG_LOG_BITS_DEFAULT * * Default enabled log bits. */ -#ifndef X86_64_DELTA_AK7448_CONFIGLOG_BITS_DEFAULT -#define X86_64_DELTA_AK7448_CONFIGLOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT +#ifndef X86_64_DELTA_AK7448_CONFIG_LOG_BITS_DEFAULT +#define X86_64_DELTA_AK7448_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT #endif /** - * X86_64_DELTA_AK7448_CONFIGLOG_CUSTOM_BITS_DEFAULT + * X86_64_DELTA_AK7448_CONFIG_LOG_CUSTOM_BITS_DEFAULT * * Default enabled custom log bits. */ -#ifndef X86_64_DELTA_AK7448_CONFIGLOG_CUSTOM_BITS_DEFAULT -#define X86_64_DELTA_AK7448_CONFIGLOG_CUSTOM_BITS_DEFAULT 0 +#ifndef X86_64_DELTA_AK7448_CONFIG_LOG_CUSTOM_BITS_DEFAULT +#define X86_64_DELTA_AK7448_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 #endif /** - * X86_64_DELTA_AK7448_CONFIGPORTING_STDLIB + * X86_64_DELTA_AK7448_CONFIG_PORTING_STDLIB * * Default all porting macros to use the C standard libraries. */ -#ifndef X86_64_DELTA_AK7448_CONFIGPORTING_STDLIB -#define X86_64_DELTA_AK7448_CONFIGPORTING_STDLIB 1 +#ifndef X86_64_DELTA_AK7448_CONFIG_PORTING_STDLIB +#define X86_64_DELTA_AK7448_CONFIG_PORTING_STDLIB 1 #endif /** - * X86_64_DELTA_AK7448_CONFIGPORTING_INCLUDE_STDLIB_HEADERS + * X86_64_DELTA_AK7448_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS * * Include standard library headers for stdlib porting macros. */ -#ifndef X86_64_DELTA_AK7448_CONFIGPORTING_INCLUDE_STDLIB_HEADERS -#define X86_64_DELTA_AK7448_CONFIGPORTING_INCLUDE_STDLIB_HEADERS X86_64_DELTA_AK7448_CONFIGPORTING_STDLIB +#ifndef X86_64_DELTA_AK7448_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS +#define X86_64_DELTA_AK7448_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS X86_64_DELTA_AK7448_CONFIG_PORTING_STDLIB #endif /** - * X86_64_DELTA_AK7448_CONFIGINCLUDE_UCLI + * X86_64_DELTA_AK7448_CONFIG_INCLUDE_UCLI * * Include generic uCli support. */ -#ifndef X86_64_DELTA_AK7448_CONFIGINCLUDE_UCLI -#define X86_64_DELTA_AK7448_CONFIGINCLUDE_UCLI 0 +#ifndef X86_64_DELTA_AK7448_CONFIG_INCLUDE_UCLI +#define X86_64_DELTA_AK7448_CONFIG_INCLUDE_UCLI 0 #endif /** - * X86_64_DELTA_AK7448_CONFIGINCLUDE_DEFAULT_FAN_DIRECTION + * X86_64_DELTA_AK7448_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION * * Assume chassis fan direction is the same as the PSU fan direction. */ -#ifndef X86_64_DELTA_AK7448_CONFIGINCLUDE_DEFAULT_FAN_DIRECTION -#define X86_64_DELTA_AK7448_CONFIGINCLUDE_DEFAULT_FAN_DIRECTION 0 +#ifndef X86_64_DELTA_AK7448_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION +#define X86_64_DELTA_AK7448_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION 0 #endif @@ -129,7 +129,7 @@ const char* x86_64_delta_ak7448_config_lookup(const char* setting); */ int x86_64_delta_ak7448_config_show(struct aim_pvs_s* pvs); -/* */ +/* */ #include "x86_64_delta_ak7448_porting.h" diff --git a/packages/platforms/delta/x86-64/ak7448/onlp/builds/x86_64_delta_ak7448/module/inc/x86_64_delta_ak7448/x86_64_delta_ak7448_porting.h b/packages/platforms/delta/x86-64/ak7448/onlp/builds/x86_64_delta_ak7448/module/inc/x86_64_delta_ak7448/x86_64_delta_ak7448_porting.h index 3fcb3c4b..fef6b169 100644 --- a/packages/platforms/delta/x86-64/ak7448/onlp/builds/x86_64_delta_ak7448/module/inc/x86_64_delta_ak7448/x86_64_delta_ak7448_porting.h +++ b/packages/platforms/delta/x86-64/ak7448/onlp/builds/x86_64_delta_ak7448/module/inc/x86_64_delta_ak7448/x86_64_delta_ak7448_porting.h @@ -12,7 +12,7 @@ /* */ -#if X86_64_DELTA_AK7448_CONFIGPORTING_INCLUDE_STDLIB_HEADERS == 1 +#if X86_64_DELTA_AK7448_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 #include #include #include @@ -20,83 +20,83 @@ #include #endif -#ifndef x86_64_delta_ak7448_MALLOC +#ifndef X86_64_DELTA_AK7448_MALLOC #if defined(GLOBAL_MALLOC) - #define x86_64_delta_ak7448_MALLOC GLOBAL_MALLOC - #elif X86_64_DELTA_AK7448_CONFIGPORTING_STDLIB == 1 - #define x86_64_delta_ak7448_MALLOC malloc + #define X86_64_DELTA_AK7448_MALLOC GLOBAL_MALLOC + #elif X86_64_DELTA_AK7448_CONFIG_PORTING_STDLIB == 1 + #define X86_64_DELTA_AK7448_MALLOC malloc #else - #error The macro x86_64_delta_ak7448_MALLOC is required but cannot be defined. + #error The macro X86_64_DELTA_AK7448_MALLOC is required but cannot be defined. #endif #endif -#ifndef x86_64_delta_ak7448_FREE +#ifndef X86_64_DELTA_AK7448_FREE #if defined(GLOBAL_FREE) - #define x86_64_delta_ak7448_FREE GLOBAL_FREE - #elif X86_64_DELTA_AK7448_CONFIGPORTING_STDLIB == 1 - #define x86_64_delta_ak7448_FREE free + #define X86_64_DELTA_AK7448_FREE GLOBAL_FREE + #elif X86_64_DELTA_AK7448_CONFIG_PORTING_STDLIB == 1 + #define X86_64_DELTA_AK7448_FREE free #else - #error The macro x86_64_delta_ak7448_FREE is required but cannot be defined. + #error The macro X86_64_DELTA_AK7448_FREE is required but cannot be defined. #endif #endif -#ifndef x86_64_delta_ak7448_MEMSET +#ifndef X86_64_DELTA_AK7448_MEMSET #if defined(GLOBAL_MEMSET) - #define x86_64_delta_ak7448_MEMSET GLOBAL_MEMSET - #elif X86_64_DELTA_AK7448_CONFIGPORTING_STDLIB == 1 - #define x86_64_delta_ak7448_MEMSET memset + #define X86_64_DELTA_AK7448_MEMSET GLOBAL_MEMSET + #elif X86_64_DELTA_AK7448_CONFIG_PORTING_STDLIB == 1 + #define X86_64_DELTA_AK7448_MEMSET memset #else - #error The macro x86_64_delta_ak7448_MEMSET is required but cannot be defined. + #error The macro X86_64_DELTA_AK7448_MEMSET is required but cannot be defined. #endif #endif -#ifndef x86_64_delta_ak7448_MEMCPY +#ifndef X86_64_DELTA_AK7448_MEMCPY #if defined(GLOBAL_MEMCPY) - #define x86_64_delta_ak7448_MEMCPY GLOBAL_MEMCPY - #elif X86_64_DELTA_AK7448_CONFIGPORTING_STDLIB == 1 - #define x86_64_delta_ak7448_MEMCPY memcpy + #define X86_64_DELTA_AK7448_MEMCPY GLOBAL_MEMCPY + #elif X86_64_DELTA_AK7448_CONFIG_PORTING_STDLIB == 1 + #define X86_64_DELTA_AK7448_MEMCPY memcpy #else - #error The macro x86_64_delta_ak7448_MEMCPY is required but cannot be defined. + #error The macro X86_64_DELTA_AK7448_MEMCPY is required but cannot be defined. #endif #endif -#ifndef x86_64_delta_ak7448_STRNCPY +#ifndef X86_64_DELTA_AK7448_STRNCPY #if defined(GLOBAL_STRNCPY) - #define x86_64_delta_ak7448_STRNCPY GLOBAL_STRNCPY - #elif X86_64_DELTA_AK7448_CONFIGPORTING_STDLIB == 1 - #define x86_64_delta_ak7448_STRNCPY strncpy + #define X86_64_DELTA_AK7448_STRNCPY GLOBAL_STRNCPY + #elif X86_64_DELTA_AK7448_CONFIG_PORTING_STDLIB == 1 + #define X86_64_DELTA_AK7448_STRNCPY strncpy #else - #error The macro x86_64_delta_ak7448_STRNCPY is required but cannot be defined. + #error The macro X86_64_DELTA_AK7448_STRNCPY is required but cannot be defined. #endif #endif -#ifndef x86_64_delta_ak7448_VSNPRINTF +#ifndef X86_64_DELTA_AK7448_VSNPRINTF #if defined(GLOBAL_VSNPRINTF) - #define x86_64_delta_ak7448_VSNPRINTF GLOBAL_VSNPRINTF - #elif X86_64_DELTA_AK7448_CONFIGPORTING_STDLIB == 1 - #define x86_64_delta_ak7448_VSNPRINTF vsnprintf + #define X86_64_DELTA_AK7448_VSNPRINTF GLOBAL_VSNPRINTF + #elif X86_64_DELTA_AK7448_CONFIG_PORTING_STDLIB == 1 + #define X86_64_DELTA_AK7448_VSNPRINTF vsnprintf #else - #error The macro x86_64_delta_ak7448_VSNPRINTF is required but cannot be defined. + #error The macro X86_64_DELTA_AK7448_VSNPRINTF is required but cannot be defined. #endif #endif -#ifndef x86_64_delta_ak7448_SNPRINTF +#ifndef X86_64_DELTA_AK7448_SNPRINTF #if defined(GLOBAL_SNPRINTF) - #define x86_64_delta_ak7448_SNPRINTF GLOBAL_SNPRINTF - #elif X86_64_DELTA_AK7448_CONFIGPORTING_STDLIB == 1 - #define x86_64_delta_ak7448_SNPRINTF snprintf + #define X86_64_DELTA_AK7448_SNPRINTF GLOBAL_SNPRINTF + #elif X86_64_DELTA_AK7448_CONFIG_PORTING_STDLIB == 1 + #define X86_64_DELTA_AK7448_SNPRINTF snprintf #else - #error The macro x86_64_delta_ak7448_SNPRINTF is required but cannot be defined. + #error The macro X86_64_DELTA_AK7448_SNPRINTF is required but cannot be defined. #endif #endif -#ifndef x86_64_delta_ak7448_STRLEN +#ifndef X86_64_DELTA_AK7448_STRLEN #if defined(GLOBAL_STRLEN) - #define x86_64_delta_ak7448_STRLEN GLOBAL_STRLEN - #elif X86_64_DELTA_AK7448_CONFIGPORTING_STDLIB == 1 - #define x86_64_delta_ak7448_STRLEN strlen + #define X86_64_DELTA_AK7448_STRLEN GLOBAL_STRLEN + #elif X86_64_DELTA_AK7448_CONFIG_PORTING_STDLIB == 1 + #define X86_64_DELTA_AK7448_STRLEN strlen #else - #error The macro x86_64_delta_ak7448_STRLEN is required but cannot be defined. + #error The macro X86_64_DELTA_AK7448_STRLEN is required but cannot be defined. #endif #endif diff --git a/packages/platforms/delta/x86-64/ak7448/onlp/builds/x86_64_delta_ak7448/module/src/x86_64_delta_ak7448_config.c b/packages/platforms/delta/x86-64/ak7448/onlp/builds/x86_64_delta_ak7448/module/src/x86_64_delta_ak7448_config.c index fe20b6a8..225eb0b7 100644 --- a/packages/platforms/delta/x86-64/ak7448/onlp/builds/x86_64_delta_ak7448/module/src/x86_64_delta_ak7448_config.c +++ b/packages/platforms/delta/x86-64/ak7448/onlp/builds/x86_64_delta_ak7448/module/src/x86_64_delta_ak7448_config.c @@ -5,50 +5,50 @@ *****************************************************************************/ #include -/* */ +/* */ #define __x86_64_delta_ak7448_config_STRINGIFY_NAME(_x) #_x #define __x86_64_delta_ak7448_config_STRINGIFY_VALUE(_x) __x86_64_delta_ak7448_config_STRINGIFY_NAME(_x) x86_64_delta_ak7448_config_settings_t x86_64_delta_ak7448_config_settings[] = { -#ifdef X86_64_DELTA_AK7448_CONFIGINCLUDE_LOGGING - { __x86_64_delta_ak7448_config_STRINGIFY_NAME(X86_64_DELTA_AK7448_CONFIGINCLUDE_LOGGING), __x86_64_delta_ak7448_config_STRINGIFY_VALUE(X86_64_DELTA_AK7448_CONFIGINCLUDE_LOGGING) }, +#ifdef X86_64_DELTA_AK7448_CONFIG_INCLUDE_LOGGING + { __x86_64_delta_ak7448_config_STRINGIFY_NAME(X86_64_DELTA_AK7448_CONFIG_INCLUDE_LOGGING), __x86_64_delta_ak7448_config_STRINGIFY_VALUE(X86_64_DELTA_AK7448_CONFIG_INCLUDE_LOGGING) }, #else -{ X86_64_DELTA_AK7448_CONFIGINCLUDE_LOGGING(__x86_64_delta_ak7448_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_DELTA_AK7448_CONFIG_INCLUDE_LOGGING(__x86_64_delta_ak7448_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef X86_64_DELTA_AK7448_CONFIGLOG_OPTIONS_DEFAULT - { __x86_64_delta_ak7448_config_STRINGIFY_NAME(X86_64_DELTA_AK7448_CONFIGLOG_OPTIONS_DEFAULT), __x86_64_delta_ak7448_config_STRINGIFY_VALUE(X86_64_DELTA_AK7448_CONFIGLOG_OPTIONS_DEFAULT) }, +#ifdef X86_64_DELTA_AK7448_CONFIG_LOG_OPTIONS_DEFAULT + { __x86_64_delta_ak7448_config_STRINGIFY_NAME(X86_64_DELTA_AK7448_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_delta_ak7448_config_STRINGIFY_VALUE(X86_64_DELTA_AK7448_CONFIG_LOG_OPTIONS_DEFAULT) }, #else -{ X86_64_DELTA_AK7448_CONFIGLOG_OPTIONS_DEFAULT(__x86_64_delta_ak7448_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_DELTA_AK7448_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_delta_ak7448_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef X86_64_DELTA_AK7448_CONFIGLOG_BITS_DEFAULT - { __x86_64_delta_ak7448_config_STRINGIFY_NAME(X86_64_DELTA_AK7448_CONFIGLOG_BITS_DEFAULT), __x86_64_delta_ak7448_config_STRINGIFY_VALUE(X86_64_DELTA_AK7448_CONFIGLOG_BITS_DEFAULT) }, +#ifdef X86_64_DELTA_AK7448_CONFIG_LOG_BITS_DEFAULT + { __x86_64_delta_ak7448_config_STRINGIFY_NAME(X86_64_DELTA_AK7448_CONFIG_LOG_BITS_DEFAULT), __x86_64_delta_ak7448_config_STRINGIFY_VALUE(X86_64_DELTA_AK7448_CONFIG_LOG_BITS_DEFAULT) }, #else -{ X86_64_DELTA_AK7448_CONFIGLOG_BITS_DEFAULT(__x86_64_delta_ak7448_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_DELTA_AK7448_CONFIG_LOG_BITS_DEFAULT(__x86_64_delta_ak7448_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef X86_64_DELTA_AK7448_CONFIGLOG_CUSTOM_BITS_DEFAULT - { __x86_64_delta_ak7448_config_STRINGIFY_NAME(X86_64_DELTA_AK7448_CONFIGLOG_CUSTOM_BITS_DEFAULT), __x86_64_delta_ak7448_config_STRINGIFY_VALUE(X86_64_DELTA_AK7448_CONFIGLOG_CUSTOM_BITS_DEFAULT) }, +#ifdef X86_64_DELTA_AK7448_CONFIG_LOG_CUSTOM_BITS_DEFAULT + { __x86_64_delta_ak7448_config_STRINGIFY_NAME(X86_64_DELTA_AK7448_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_delta_ak7448_config_STRINGIFY_VALUE(X86_64_DELTA_AK7448_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, #else -{ X86_64_DELTA_AK7448_CONFIGLOG_CUSTOM_BITS_DEFAULT(__x86_64_delta_ak7448_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_DELTA_AK7448_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_delta_ak7448_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef X86_64_DELTA_AK7448_CONFIGPORTING_STDLIB - { __x86_64_delta_ak7448_config_STRINGIFY_NAME(X86_64_DELTA_AK7448_CONFIGPORTING_STDLIB), __x86_64_delta_ak7448_config_STRINGIFY_VALUE(X86_64_DELTA_AK7448_CONFIGPORTING_STDLIB) }, +#ifdef X86_64_DELTA_AK7448_CONFIG_PORTING_STDLIB + { __x86_64_delta_ak7448_config_STRINGIFY_NAME(X86_64_DELTA_AK7448_CONFIG_PORTING_STDLIB), __x86_64_delta_ak7448_config_STRINGIFY_VALUE(X86_64_DELTA_AK7448_CONFIG_PORTING_STDLIB) }, #else -{ X86_64_DELTA_AK7448_CONFIGPORTING_STDLIB(__x86_64_delta_ak7448_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_DELTA_AK7448_CONFIG_PORTING_STDLIB(__x86_64_delta_ak7448_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef X86_64_DELTA_AK7448_CONFIGPORTING_INCLUDE_STDLIB_HEADERS - { __x86_64_delta_ak7448_config_STRINGIFY_NAME(X86_64_DELTA_AK7448_CONFIGPORTING_INCLUDE_STDLIB_HEADERS), __x86_64_delta_ak7448_config_STRINGIFY_VALUE(X86_64_DELTA_AK7448_CONFIGPORTING_INCLUDE_STDLIB_HEADERS) }, +#ifdef X86_64_DELTA_AK7448_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + { __x86_64_delta_ak7448_config_STRINGIFY_NAME(X86_64_DELTA_AK7448_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_delta_ak7448_config_STRINGIFY_VALUE(X86_64_DELTA_AK7448_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, #else -{ X86_64_DELTA_AK7448_CONFIGPORTING_INCLUDE_STDLIB_HEADERS(__x86_64_delta_ak7448_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_DELTA_AK7448_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_delta_ak7448_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef X86_64_DELTA_AK7448_CONFIGINCLUDE_UCLI - { __x86_64_delta_ak7448_config_STRINGIFY_NAME(X86_64_DELTA_AK7448_CONFIGINCLUDE_UCLI), __x86_64_delta_ak7448_config_STRINGIFY_VALUE(X86_64_DELTA_AK7448_CONFIGINCLUDE_UCLI) }, +#ifdef X86_64_DELTA_AK7448_CONFIG_INCLUDE_UCLI + { __x86_64_delta_ak7448_config_STRINGIFY_NAME(X86_64_DELTA_AK7448_CONFIG_INCLUDE_UCLI), __x86_64_delta_ak7448_config_STRINGIFY_VALUE(X86_64_DELTA_AK7448_CONFIG_INCLUDE_UCLI) }, #else -{ X86_64_DELTA_AK7448_CONFIGINCLUDE_UCLI(__x86_64_delta_ak7448_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_DELTA_AK7448_CONFIG_INCLUDE_UCLI(__x86_64_delta_ak7448_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef X86_64_DELTA_AK7448_CONFIGINCLUDE_DEFAULT_FAN_DIRECTION - { __x86_64_delta_ak7448_config_STRINGIFY_NAME(X86_64_DELTA_AK7448_CONFIGINCLUDE_DEFAULT_FAN_DIRECTION), __x86_64_delta_ak7448_config_STRINGIFY_VALUE(X86_64_DELTA_AK7448_CONFIGINCLUDE_DEFAULT_FAN_DIRECTION) }, +#ifdef X86_64_DELTA_AK7448_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION + { __x86_64_delta_ak7448_config_STRINGIFY_NAME(X86_64_DELTA_AK7448_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __x86_64_delta_ak7448_config_STRINGIFY_VALUE(X86_64_DELTA_AK7448_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, #else -{ X86_64_DELTA_AK7448_CONFIGINCLUDE_DEFAULT_FAN_DIRECTION(__x86_64_delta_ak7448_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_DELTA_AK7448_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__x86_64_delta_ak7448_config_STRINGIFY_NAME), "__undefined__" }, #endif { NULL, NULL } }; @@ -60,7 +60,7 @@ x86_64_delta_ak7448_config_lookup(const char* setting) { int i; for(i = 0; x86_64_delta_ak7448_config_settings[i].name; i++) { - if(strcmp(x86_64_delta_ak7448_config_settings[i].name, setting)) { + if(!strcmp(x86_64_delta_ak7448_config_settings[i].name, setting)) { return x86_64_delta_ak7448_config_settings[i].value; } } @@ -77,5 +77,5 @@ x86_64_delta_ak7448_config_show(struct aim_pvs_s* pvs) return i; } -/* */ +/* */ diff --git a/packages/platforms/delta/x86-64/ak7448/onlp/builds/x86_64_delta_ak7448/module/src/x86_64_delta_ak7448_log.c b/packages/platforms/delta/x86-64/ak7448/onlp/builds/x86_64_delta_ak7448/module/src/x86_64_delta_ak7448_log.c index b8f6f02d..bddf2fb8 100644 --- a/packages/platforms/delta/x86-64/ak7448/onlp/builds/x86_64_delta_ak7448/module/src/x86_64_delta_ak7448_log.c +++ b/packages/platforms/delta/x86-64/ak7448/onlp/builds/x86_64_delta_ak7448/module/src/x86_64_delta_ak7448_log.c @@ -10,9 +10,9 @@ * x86_64_delta_ak7448 log struct. */ AIM_LOG_STRUCT_DEFINE( - X86_64_DELTA_AK7448_CONFIGLOG_OPTIONS_DEFAULT, - X86_64_DELTA_AK7448_CONFIGLOG_BITS_DEFAULT, + X86_64_DELTA_AK7448_CONFIG_LOG_OPTIONS_DEFAULT, + X86_64_DELTA_AK7448_CONFIG_LOG_BITS_DEFAULT, NULL, /* Custom log map */ - X86_64_DELTA_AK7448_CONFIGLOG_CUSTOM_BITS_DEFAULT + X86_64_DELTA_AK7448_CONFIG_LOG_CUSTOM_BITS_DEFAULT ); diff --git a/packages/platforms/ingrasys/x86-64/s9180-32x/onlp/builds/src/x86_64_ingrasys_s9180_32x/module/auto/make.mk b/packages/platforms/ingrasys/x86-64/s9180-32x/onlp/builds/src/x86_64_ingrasys_s9180_32x/module/auto/make.mk index 61665f86..c15a1824 100755 --- a/packages/platforms/ingrasys/x86-64/s9180-32x/onlp/builds/src/x86_64_ingrasys_s9180_32x/module/auto/make.mk +++ b/packages/platforms/ingrasys/x86-64/s9180-32x/onlp/builds/src/x86_64_ingrasys_s9180_32x/module/auto/make.mk @@ -2,6 +2,6 @@ # x86_64_ingrasys_s9180_32x Autogeneration # ############################################################################### -x86-64-ingrasys-s9180-32x_AUTO_DEFS := module/auto/x86-64-ingrasys-s9180-32x.yml -x86-64-ingrasys-s9180-32x_AUTO_DIRS := module/inc/x86-64-ingrasys-s9180-32x module/src +x86_64_ingrasys_s9180_32x_AUTO_DEFS := module/auto/x86_64_ingrasys_s9180_32x.yml +x86_64_ingrasys_s9180_32x_AUTO_DIRS := module/inc/x86_64_ingrasys_s9180_32x module/src include $(BUILDER)/auto.mk diff --git a/packages/platforms/ingrasys/x86-64/s9180-32x/onlp/builds/src/x86_64_ingrasys_s9180_32x/module/auto/x86-64-ingrasys-s9180-32x.yml b/packages/platforms/ingrasys/x86-64/s9180-32x/onlp/builds/src/x86_64_ingrasys_s9180_32x/module/auto/x86_64_ingrasys_s9180_32x.yml similarity index 100% rename from packages/platforms/ingrasys/x86-64/s9180-32x/onlp/builds/src/x86_64_ingrasys_s9180_32x/module/auto/x86-64-ingrasys-s9180-32x.yml rename to packages/platforms/ingrasys/x86-64/s9180-32x/onlp/builds/src/x86_64_ingrasys_s9180_32x/module/auto/x86_64_ingrasys_s9180_32x.yml diff --git a/packages/platforms/ingrasys/x86-64/s9180-32x/onlp/builds/src/x86_64_ingrasys_s9180_32x/module/inc/x86_64_ingrasys_s9180_32x/x86_64_ingrasys_s9180_32x_config.h b/packages/platforms/ingrasys/x86-64/s9180-32x/onlp/builds/src/x86_64_ingrasys_s9180_32x/module/inc/x86_64_ingrasys_s9180_32x/x86_64_ingrasys_s9180_32x_config.h index db82c6fc..fb22046f 100755 --- a/packages/platforms/ingrasys/x86-64/s9180-32x/onlp/builds/src/x86_64_ingrasys_s9180_32x/module/inc/x86_64_ingrasys_s9180_32x/x86_64_ingrasys_s9180_32x_config.h +++ b/packages/platforms/ingrasys/x86-64/s9180-32x/onlp/builds/src/x86_64_ingrasys_s9180_32x/module/inc/x86_64_ingrasys_s9180_32x/x86_64_ingrasys_s9180_32x_config.h @@ -32,96 +32,86 @@ * @{ * *****************************************************************************/ -#ifndef __X86_64_INGRAYSYS_S9180_32X_CONFIG_H__ -#define __X86_64_INGRAYSYS_S9180_32X_CONFIG_H__ +#ifndef __X86_64_INGRASYS_S9180_32X_CONFIG_H__ +#define __X86_64_INGRASYS_S9180_32X_CONFIG_H__ #ifdef GLOBAL_INCLUDE_CUSTOM_CONFIG #include #endif -#ifdef X86_64_INGRAYSYS_S9180_32X_INCLUDE_CUSTOM_CONFIG +#ifdef X86_64_INGRASYS_S9180_32X_INCLUDE_CUSTOM_CONFIG #include #endif -/* */ +/* */ #include /** - * X86_64_INGRAYSYS_S9180_32X_CONFIG_INCLUDE_LOGGING + * X86_64_INGRASYS_S9180_32X_CONFIG_INCLUDE_LOGGING * * Include or exclude logging. */ -#ifndef X86_64_INGRAYSYS_S9180_32X_CONFIG_INCLUDE_LOGGING -#define X86_64_INGRAYSYS_S9180_32X_CONFIG_INCLUDE_LOGGING 1 +#ifndef X86_64_INGRASYS_S9180_32X_CONFIG_INCLUDE_LOGGING +#define X86_64_INGRASYS_S9180_32X_CONFIG_INCLUDE_LOGGING 1 #endif /** - * X86_64_INGRAYSYS_S9180_32X_CONFIG_LOG_OPTIONS_DEFAULT + * X86_64_INGRASYS_S9180_32X_CONFIG_LOG_OPTIONS_DEFAULT * * Default enabled log options. */ -#ifndef X86_64_INGRAYSYS_S9180_32X_CONFIG_LOG_OPTIONS_DEFAULT -#define X86_64_INGRAYSYS_S9180_32X_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT +#ifndef X86_64_INGRASYS_S9180_32X_CONFIG_LOG_OPTIONS_DEFAULT +#define X86_64_INGRASYS_S9180_32X_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT #endif /** - * X86_64_INGRAYSYS_S9180_32X_CONFIG_LOG_BITS_DEFAULT + * X86_64_INGRASYS_S9180_32X_CONFIG_LOG_BITS_DEFAULT * * Default enabled log bits. */ -#ifndef X86_64_INGRAYSYS_S9180_32X_CONFIG_LOG_BITS_DEFAULT -#define X86_64_INGRAYSYS_S9180_32X_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT +#ifndef X86_64_INGRASYS_S9180_32X_CONFIG_LOG_BITS_DEFAULT +#define X86_64_INGRASYS_S9180_32X_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT #endif /** - * X86_64_INGRAYSYS_S9180_32X_CONFIG_LOG_CUSTOM_BITS_DEFAULT + * X86_64_INGRASYS_S9180_32X_CONFIG_LOG_CUSTOM_BITS_DEFAULT * * Default enabled custom log bits. */ -#ifndef X86_64_INGRAYSYS_S9180_32X_CONFIG_LOG_CUSTOM_BITS_DEFAULT -#define X86_64_INGRAYSYS_S9180_32X_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 +#ifndef X86_64_INGRASYS_S9180_32X_CONFIG_LOG_CUSTOM_BITS_DEFAULT +#define X86_64_INGRASYS_S9180_32X_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 #endif /** - * X86_64_INGRAYSYS_S9180_32X_CONFIG_PORTING_STDLIB + * X86_64_INGRASYS_S9180_32X_CONFIG_PORTING_STDLIB * * Default all porting macros to use the C standard libraries. */ -#ifndef X86_64_INGRAYSYS_S9180_32X_CONFIG_PORTING_STDLIB -#define X86_64_INGRAYSYS_S9180_32X_CONFIG_PORTING_STDLIB 1 +#ifndef X86_64_INGRASYS_S9180_32X_CONFIG_PORTING_STDLIB +#define X86_64_INGRASYS_S9180_32X_CONFIG_PORTING_STDLIB 1 #endif /** - * X86_64_INGRAYSYS_S9180_32X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + * X86_64_INGRASYS_S9180_32X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS * * Include standard library headers for stdlib porting macros. */ -#ifndef X86_64_INGRAYSYS_S9180_32X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS -#define X86_64_INGRAYSYS_S9180_32X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS X86_64_INGRAYSYS_S9180_32X_CONFIG_PORTING_STDLIB +#ifndef X86_64_INGRASYS_S9180_32X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS +#define X86_64_INGRASYS_S9180_32X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS X86_64_INGRASYS_S9180_32X_CONFIG_PORTING_STDLIB #endif /** - * X86_64_INGRAYSYS_S9180_32X_CONFIG_INCLUDE_UCLI + * X86_64_INGRASYS_S9180_32X_CONFIG_INCLUDE_UCLI * * Include generic uCli support. */ -#ifndef X86_64_INGRAYSYS_S9180_32X_CONFIG_INCLUDE_UCLI -#define X86_64_INGRAYSYS_S9180_32X_CONFIG_INCLUDE_UCLI 0 -#endif - -/** - * X86_64_INGRAYSYS_S9180_32X_CONFIG_SFP_COUNT - * - * SFP Count. */ - - -#ifndef X86_64_INGRAYSYS_S9180_32X_CONFIG_SFP_COUNT -#define X86_64_INGRAYSYS_S9180_32X_CONFIG_SFP_COUNT 0 +#ifndef X86_64_INGRASYS_S9180_32X_CONFIG_INCLUDE_UCLI +#define X86_64_INGRASYS_S9180_32X_CONFIG_INCLUDE_UCLI 0 #endif @@ -154,9 +144,9 @@ const char* x86_64_ingrasys_s9180_32x_config_lookup(const char* setting); */ int x86_64_ingrasys_s9180_32x_config_show(struct aim_pvs_s* pvs); -/* */ +/* */ #include "x86_64_ingrasys_s9180_32x_porting.h" -#endif /* __X86_64_INGRAYSYS_S9180_32X_CONFIG_H__ */ +#endif /* __X86_64_INGRASYS_S9180_32X_CONFIG_H__ */ /* @} */ diff --git a/packages/platforms/ingrasys/x86-64/s9180-32x/onlp/builds/src/x86_64_ingrasys_s9180_32x/module/inc/x86_64_ingrasys_s9180_32x/x86_64_ingrasys_s9180_32x_porting.h b/packages/platforms/ingrasys/x86-64/s9180-32x/onlp/builds/src/x86_64_ingrasys_s9180_32x/module/inc/x86_64_ingrasys_s9180_32x/x86_64_ingrasys_s9180_32x_porting.h index 1d3fb7c1..465813cd 100755 --- a/packages/platforms/ingrasys/x86-64/s9180-32x/onlp/builds/src/x86_64_ingrasys_s9180_32x/module/inc/x86_64_ingrasys_s9180_32x/x86_64_ingrasys_s9180_32x_porting.h +++ b/packages/platforms/ingrasys/x86-64/s9180-32x/onlp/builds/src/x86_64_ingrasys_s9180_32x/module/inc/x86_64_ingrasys_s9180_32x/x86_64_ingrasys_s9180_32x_porting.h @@ -7,11 +7,11 @@ * @{ * ***********************************************************/ -#ifndef __X86_64_INGRAYSYS_S9180_32X_PORTING_H__ -#define __X86_64_INGRAYSYS_S9180_32X_PORTING_H__ +#ifndef __X86_64_INGRASYS_S9180_32X_PORTING_H__ +#define __X86_64_INGRASYS_S9180_32X_PORTING_H__ /* */ -#if X86_64_INGRAYSYS_S9180_32X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 +#if X86_64_INGRASYS_S9180_32X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 #include #include #include @@ -19,88 +19,88 @@ #include #endif -#ifndef X86_64_INGRAYSYS_S9180_32X_MALLOC +#ifndef X86_64_INGRASYS_S9180_32X_MALLOC #if defined(GLOBAL_MALLOC) - #define X86_64_INGRAYSYS_S9180_32X_MALLOC GLOBAL_MALLOC - #elif X86_64_INGRAYSYS_S9180_32X_CONFIG_PORTING_STDLIB == 1 - #define X86_64_INGRAYSYS_S9180_32X_MALLOC malloc + #define X86_64_INGRASYS_S9180_32X_MALLOC GLOBAL_MALLOC + #elif X86_64_INGRASYS_S9180_32X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INGRASYS_S9180_32X_MALLOC malloc #else - #error The macro X86_64_INGRAYSYS_S9180_32X_MALLOC is required but cannot be defined. + #error The macro X86_64_INGRASYS_S9180_32X_MALLOC is required but cannot be defined. #endif #endif -#ifndef X86_64_INGRAYSYS_S9180_32X_FREE +#ifndef X86_64_INGRASYS_S9180_32X_FREE #if defined(GLOBAL_FREE) - #define X86_64_INGRAYSYS_S9180_32X_FREE GLOBAL_FREE - #elif X86_64_INGRAYSYS_S9180_32X_CONFIG_PORTING_STDLIB == 1 - #define X86_64_INGRAYSYS_S9180_32X_FREE free + #define X86_64_INGRASYS_S9180_32X_FREE GLOBAL_FREE + #elif X86_64_INGRASYS_S9180_32X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INGRASYS_S9180_32X_FREE free #else - #error The macro X86_64_INGRAYSYS_S9180_32X_FREE is required but cannot be defined. + #error The macro X86_64_INGRASYS_S9180_32X_FREE is required but cannot be defined. #endif #endif -#ifndef X86_64_INGRAYSYS_S9180_32X_MEMSET +#ifndef X86_64_INGRASYS_S9180_32X_MEMSET #if defined(GLOBAL_MEMSET) - #define X86_64_INGRAYSYS_S9180_32X_MEMSET GLOBAL_MEMSET - #elif X86_64_INGRAYSYS_S9180_32X_CONFIG_PORTING_STDLIB == 1 - #define X86_64_INGRAYSYS_S9180_32X_MEMSET memset + #define X86_64_INGRASYS_S9180_32X_MEMSET GLOBAL_MEMSET + #elif X86_64_INGRASYS_S9180_32X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INGRASYS_S9180_32X_MEMSET memset #else - #error The macro X86_64_INGRAYSYS_S9180_32X_MEMSET is required but cannot be defined. + #error The macro X86_64_INGRASYS_S9180_32X_MEMSET is required but cannot be defined. #endif #endif -#ifndef X86_64_INGRAYSYS_S9180_32X_MEMCPY +#ifndef X86_64_INGRASYS_S9180_32X_MEMCPY #if defined(GLOBAL_MEMCPY) - #define X86_64_INGRAYSYS_S9180_32X_MEMCPY GLOBAL_MEMCPY - #elif X86_64_INGRAYSYS_S9180_32X_CONFIG_PORTING_STDLIB == 1 - #define X86_64_INGRAYSYS_S9180_32X_MEMCPY memcpy + #define X86_64_INGRASYS_S9180_32X_MEMCPY GLOBAL_MEMCPY + #elif X86_64_INGRASYS_S9180_32X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INGRASYS_S9180_32X_MEMCPY memcpy #else - #error The macro X86_64_INGRAYSYS_S9180_32X_MEMCPY is required but cannot be defined. + #error The macro X86_64_INGRASYS_S9180_32X_MEMCPY is required but cannot be defined. #endif #endif -#ifndef X86_64_INGRAYSYS_S9180_32X_STRNCPY +#ifndef X86_64_INGRASYS_S9180_32X_STRNCPY #if defined(GLOBAL_STRNCPY) - #define X86_64_INGRAYSYS_S9180_32X_STRNCPY GLOBAL_STRNCPY - #elif X86_64_INGRAYSYS_S9180_32X_CONFIG_PORTING_STDLIB == 1 - #define X86_64_INGRAYSYS_S9180_32X_STRNCPY strncpy + #define X86_64_INGRASYS_S9180_32X_STRNCPY GLOBAL_STRNCPY + #elif X86_64_INGRASYS_S9180_32X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INGRASYS_S9180_32X_STRNCPY strncpy #else - #error The macro X86_64_INGRAYSYS_S9180_32X_STRNCPY is required but cannot be defined. + #error The macro X86_64_INGRASYS_S9180_32X_STRNCPY is required but cannot be defined. #endif #endif -#ifndef X86_64_INGRAYSYS_S9180_32X_VSNPRINTF +#ifndef X86_64_INGRASYS_S9180_32X_VSNPRINTF #if defined(GLOBAL_VSNPRINTF) - #define X86_64_INGRAYSYS_S9180_32X_VSNPRINTF GLOBAL_VSNPRINTF - #elif X86_64_INGRAYSYS_S9180_32X_CONFIG_PORTING_STDLIB == 1 - #define X86_64_INGRAYSYS_S9180_32X_VSNPRINTF vsnprintf + #define X86_64_INGRASYS_S9180_32X_VSNPRINTF GLOBAL_VSNPRINTF + #elif X86_64_INGRASYS_S9180_32X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INGRASYS_S9180_32X_VSNPRINTF vsnprintf #else - #error The macro X86_64_INGRAYSYS_S9180_32X_VSNPRINTF is required but cannot be defined. + #error The macro X86_64_INGRASYS_S9180_32X_VSNPRINTF is required but cannot be defined. #endif #endif -#ifndef X86_64_INGRAYSYS_S9180_32X_SNPRINTF +#ifndef X86_64_INGRASYS_S9180_32X_SNPRINTF #if defined(GLOBAL_SNPRINTF) - #define X86_64_INGRAYSYS_S9180_32X_SNPRINTF GLOBAL_SNPRINTF - #elif X86_64_INGRAYSYS_S9180_32X_CONFIG_PORTING_STDLIB == 1 - #define X86_64_INGRAYSYS_S9180_32X_SNPRINTF snprintf + #define X86_64_INGRASYS_S9180_32X_SNPRINTF GLOBAL_SNPRINTF + #elif X86_64_INGRASYS_S9180_32X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INGRASYS_S9180_32X_SNPRINTF snprintf #else - #error The macro X86_64_INGRAYSYS_S9180_32X_SNPRINTF is required but cannot be defined. + #error The macro X86_64_INGRASYS_S9180_32X_SNPRINTF is required but cannot be defined. #endif #endif -#ifndef X86_64_INGRAYSYS_S9180_32X_STRLEN +#ifndef X86_64_INGRASYS_S9180_32X_STRLEN #if defined(GLOBAL_STRLEN) - #define X86_64_INGRAYSYS_S9180_32X_STRLEN GLOBAL_STRLEN - #elif X86_64_INGRAYSYS_S9180_32X_CONFIG_PORTING_STDLIB == 1 - #define X86_64_INGRAYSYS_S9180_32X_STRLEN strlen + #define X86_64_INGRASYS_S9180_32X_STRLEN GLOBAL_STRLEN + #elif X86_64_INGRASYS_S9180_32X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INGRASYS_S9180_32X_STRLEN strlen #else - #error The macro X86_64_INGRAYSYS_S9180_32X_STRLEN is required but cannot be defined. + #error The macro X86_64_INGRASYS_S9180_32X_STRLEN is required but cannot be defined. #endif #endif /* */ -#endif /* __X86_64_INGRAYSYS_S9180_32X_PORTING_H__ */ +#endif /* __X86_64_INGRASYS_S9180_32X_PORTING_H__ */ /* @} */ diff --git a/packages/platforms/ingrasys/x86-64/s9180-32x/onlp/builds/src/x86_64_ingrasys_s9180_32x/module/src/x86_64_ingrasys_s9180_32x_config.c b/packages/platforms/ingrasys/x86-64/s9180-32x/onlp/builds/src/x86_64_ingrasys_s9180_32x/module/src/x86_64_ingrasys_s9180_32x_config.c index d0dab1c8..e9935180 100755 --- a/packages/platforms/ingrasys/x86-64/s9180-32x/onlp/builds/src/x86_64_ingrasys_s9180_32x/module/src/x86_64_ingrasys_s9180_32x_config.c +++ b/packages/platforms/ingrasys/x86-64/s9180-32x/onlp/builds/src/x86_64_ingrasys_s9180_32x/module/src/x86_64_ingrasys_s9180_32x_config.c @@ -25,50 +25,45 @@ #include -/* */ +/* */ #define __x86_64_ingrasys_s9180_32x_config_STRINGIFY_NAME(_x) #_x #define __x86_64_ingrasys_s9180_32x_config_STRINGIFY_VALUE(_x) __x86_64_ingrasys_s9180_32x_config_STRINGIFY_NAME(_x) x86_64_ingrasys_s9180_32x_config_settings_t x86_64_ingrasys_s9180_32x_config_settings[] = { -#ifdef X86_64_INGRAYSYS_S9180_32X_CONFIG_INCLUDE_LOGGING - { __x86_64_ingrasys_s9180_32x_config_STRINGIFY_NAME(X86_64_INGRAYSYS_S9180_32X_CONFIG_INCLUDE_LOGGING), __x86_64_ingrasys_s9180_32x_config_STRINGIFY_VALUE(X86_64_INGRAYSYS_S9180_32X_CONFIG_INCLUDE_LOGGING) }, +#ifdef X86_64_INGRASYS_S9180_32X_CONFIG_INCLUDE_LOGGING + { __x86_64_ingrasys_s9180_32x_config_STRINGIFY_NAME(X86_64_INGRASYS_S9180_32X_CONFIG_INCLUDE_LOGGING), __x86_64_ingrasys_s9180_32x_config_STRINGIFY_VALUE(X86_64_INGRASYS_S9180_32X_CONFIG_INCLUDE_LOGGING) }, #else -{ X86_64_INGRAYSYS_S9180_32X_CONFIG_INCLUDE_LOGGING(__x86_64_ingrasys_s9180_32x_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INGRASYS_S9180_32X_CONFIG_INCLUDE_LOGGING(__x86_64_ingrasys_s9180_32x_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef X86_64_INGRAYSYS_S9180_32X_CONFIG_LOG_OPTIONS_DEFAULT - { __x86_64_ingrasys_s9180_32x_config_STRINGIFY_NAME(X86_64_INGRAYSYS_S9180_32X_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_ingrasys_s9180_32x_config_STRINGIFY_VALUE(X86_64_INGRAYSYS_S9180_32X_CONFIG_LOG_OPTIONS_DEFAULT) }, +#ifdef X86_64_INGRASYS_S9180_32X_CONFIG_LOG_OPTIONS_DEFAULT + { __x86_64_ingrasys_s9180_32x_config_STRINGIFY_NAME(X86_64_INGRASYS_S9180_32X_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_ingrasys_s9180_32x_config_STRINGIFY_VALUE(X86_64_INGRASYS_S9180_32X_CONFIG_LOG_OPTIONS_DEFAULT) }, #else -{ X86_64_INGRAYSYS_S9180_32X_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_ingrasys_s9180_32x_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INGRASYS_S9180_32X_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_ingrasys_s9180_32x_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef X86_64_INGRAYSYS_S9180_32X_CONFIG_LOG_BITS_DEFAULT - { __x86_64_ingrasys_s9180_32x_config_STRINGIFY_NAME(X86_64_INGRAYSYS_S9180_32X_CONFIG_LOG_BITS_DEFAULT), __x86_64_ingrasys_s9180_32x_config_STRINGIFY_VALUE(X86_64_INGRAYSYS_S9180_32X_CONFIG_LOG_BITS_DEFAULT) }, +#ifdef X86_64_INGRASYS_S9180_32X_CONFIG_LOG_BITS_DEFAULT + { __x86_64_ingrasys_s9180_32x_config_STRINGIFY_NAME(X86_64_INGRASYS_S9180_32X_CONFIG_LOG_BITS_DEFAULT), __x86_64_ingrasys_s9180_32x_config_STRINGIFY_VALUE(X86_64_INGRASYS_S9180_32X_CONFIG_LOG_BITS_DEFAULT) }, #else -{ X86_64_INGRAYSYS_S9180_32X_CONFIG_LOG_BITS_DEFAULT(__x86_64_ingrasys_s9180_32x_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INGRASYS_S9180_32X_CONFIG_LOG_BITS_DEFAULT(__x86_64_ingrasys_s9180_32x_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef X86_64_INGRAYSYS_S9180_32X_CONFIG_LOG_CUSTOM_BITS_DEFAULT - { __x86_64_ingrasys_s9180_32x_config_STRINGIFY_NAME(X86_64_INGRAYSYS_S9180_32X_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_ingrasys_s9180_32x_config_STRINGIFY_VALUE(X86_64_INGRAYSYS_S9180_32X_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, +#ifdef X86_64_INGRASYS_S9180_32X_CONFIG_LOG_CUSTOM_BITS_DEFAULT + { __x86_64_ingrasys_s9180_32x_config_STRINGIFY_NAME(X86_64_INGRASYS_S9180_32X_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_ingrasys_s9180_32x_config_STRINGIFY_VALUE(X86_64_INGRASYS_S9180_32X_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, #else -{ X86_64_INGRAYSYS_S9180_32X_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_ingrasys_s9180_32x_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INGRASYS_S9180_32X_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_ingrasys_s9180_32x_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef X86_64_INGRAYSYS_S9180_32X_CONFIG_PORTING_STDLIB - { __x86_64_ingrasys_s9180_32x_config_STRINGIFY_NAME(X86_64_INGRAYSYS_S9180_32X_CONFIG_PORTING_STDLIB), __x86_64_ingrasys_s9180_32x_config_STRINGIFY_VALUE(X86_64_INGRAYSYS_S9180_32X_CONFIG_PORTING_STDLIB) }, +#ifdef X86_64_INGRASYS_S9180_32X_CONFIG_PORTING_STDLIB + { __x86_64_ingrasys_s9180_32x_config_STRINGIFY_NAME(X86_64_INGRASYS_S9180_32X_CONFIG_PORTING_STDLIB), __x86_64_ingrasys_s9180_32x_config_STRINGIFY_VALUE(X86_64_INGRASYS_S9180_32X_CONFIG_PORTING_STDLIB) }, #else -{ X86_64_INGRAYSYS_S9180_32X_CONFIG_PORTING_STDLIB(__x86_64_ingrasys_s9180_32x_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INGRASYS_S9180_32X_CONFIG_PORTING_STDLIB(__x86_64_ingrasys_s9180_32x_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef X86_64_INGRAYSYS_S9180_32X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS - { __x86_64_ingrasys_s9180_32x_config_STRINGIFY_NAME(X86_64_INGRAYSYS_S9180_32X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_ingrasys_s9180_32x_config_STRINGIFY_VALUE(X86_64_INGRAYSYS_S9180_32X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, +#ifdef X86_64_INGRASYS_S9180_32X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + { __x86_64_ingrasys_s9180_32x_config_STRINGIFY_NAME(X86_64_INGRASYS_S9180_32X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_ingrasys_s9180_32x_config_STRINGIFY_VALUE(X86_64_INGRASYS_S9180_32X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, #else -{ X86_64_INGRAYSYS_S9180_32X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_ingrasys_s9180_32x_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INGRASYS_S9180_32X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_ingrasys_s9180_32x_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef X86_64_INGRAYSYS_S9180_32X_CONFIG_INCLUDE_UCLI - { __x86_64_ingrasys_s9180_32x_config_STRINGIFY_NAME(X86_64_INGRAYSYS_S9180_32X_CONFIG_INCLUDE_UCLI), __x86_64_ingrasys_s9180_32x_config_STRINGIFY_VALUE(X86_64_INGRAYSYS_S9180_32X_CONFIG_INCLUDE_UCLI) }, +#ifdef X86_64_INGRASYS_S9180_32X_CONFIG_INCLUDE_UCLI + { __x86_64_ingrasys_s9180_32x_config_STRINGIFY_NAME(X86_64_INGRASYS_S9180_32X_CONFIG_INCLUDE_UCLI), __x86_64_ingrasys_s9180_32x_config_STRINGIFY_VALUE(X86_64_INGRASYS_S9180_32X_CONFIG_INCLUDE_UCLI) }, #else -{ X86_64_INGRAYSYS_S9180_32X_CONFIG_INCLUDE_UCLI(__x86_64_ingrasys_s9180_32x_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef X86_64_INGRAYSYS_S9180_32X_CONFIG_SFP_COUNT - { __x86_64_ingrasys_s9180_32x_config_STRINGIFY_NAME(X86_64_INGRAYSYS_S9180_32X_CONFIG_SFP_COUNT), __x86_64_ingrasys_s9180_32x_config_STRINGIFY_VALUE(X86_64_INGRAYSYS_S9180_32X_CONFIG_SFP_COUNT) }, -#else -{ X86_64_INGRAYSYS_S9180_32X_CONFIG_SFP_COUNT(__x86_64_ingrasys_s9180_32x_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INGRASYS_S9180_32X_CONFIG_INCLUDE_UCLI(__x86_64_ingrasys_s9180_32x_config_STRINGIFY_NAME), "__undefined__" }, #endif { NULL, NULL } }; @@ -80,7 +75,7 @@ x86_64_ingrasys_s9180_32x_config_lookup(const char* setting) { int i; for(i = 0; x86_64_ingrasys_s9180_32x_config_settings[i].name; i++) { - if(strcmp(x86_64_ingrasys_s9180_32x_config_settings[i].name, setting)) { + if(!strcmp(x86_64_ingrasys_s9180_32x_config_settings[i].name, setting)) { return x86_64_ingrasys_s9180_32x_config_settings[i].value; } } @@ -97,5 +92,5 @@ x86_64_ingrasys_s9180_32x_config_show(struct aim_pvs_s* pvs) return i; } -/* */ +/* */ diff --git a/packages/platforms/ingrasys/x86-64/s9180-32x/onlp/builds/src/x86_64_ingrasys_s9180_32x/module/src/x86_64_ingrasys_s9180_32x_log.c b/packages/platforms/ingrasys/x86-64/s9180-32x/onlp/builds/src/x86_64_ingrasys_s9180_32x/module/src/x86_64_ingrasys_s9180_32x_log.c index c1e2fcaf..58547e5e 100755 --- a/packages/platforms/ingrasys/x86-64/s9180-32x/onlp/builds/src/x86_64_ingrasys_s9180_32x/module/src/x86_64_ingrasys_s9180_32x_log.c +++ b/packages/platforms/ingrasys/x86-64/s9180-32x/onlp/builds/src/x86_64_ingrasys_s9180_32x/module/src/x86_64_ingrasys_s9180_32x_log.c @@ -30,9 +30,9 @@ * x86_64_ingrasys_s9180_32x log struct. */ AIM_LOG_STRUCT_DEFINE( - X86_64_INGRAYSYS_S9180_32X_CONFIG_LOG_OPTIONS_DEFAULT, - X86_64_INGRAYSYS_S9180_32X_CONFIG_LOG_BITS_DEFAULT, + X86_64_INGRASYS_S9180_32X_CONFIG_LOG_OPTIONS_DEFAULT, + X86_64_INGRASYS_S9180_32X_CONFIG_LOG_BITS_DEFAULT, NULL, /* Custom log map */ - X86_64_INGRAYSYS_S9180_32X_CONFIG_LOG_CUSTOM_BITS_DEFAULT + X86_64_INGRASYS_S9180_32X_CONFIG_LOG_CUSTOM_BITS_DEFAULT ); diff --git a/packages/platforms/ingrasys/x86-64/s9230-64x/onlp/builds/src/x86_64_ingrasys_s9230_64x/module/auto/make.mk b/packages/platforms/ingrasys/x86-64/s9230-64x/onlp/builds/src/x86_64_ingrasys_s9230_64x/module/auto/make.mk index cda8fa40..2d8d7f9b 100755 --- a/packages/platforms/ingrasys/x86-64/s9230-64x/onlp/builds/src/x86_64_ingrasys_s9230_64x/module/auto/make.mk +++ b/packages/platforms/ingrasys/x86-64/s9230-64x/onlp/builds/src/x86_64_ingrasys_s9230_64x/module/auto/make.mk @@ -2,6 +2,6 @@ # x86_64_ingrasys_s9230_64x Autogeneration # ############################################################################### -x86-64-ingrasys-s9230-64x_AUTO_DEFS := module/auto/x86-64-ingrasys-s9230-64x.yml -x86-64-ingrasys-s9230-64x_AUTO_DIRS := module/inc/x86-64-ingrasys-s9230-64x module/src +x86_64_ingrasys_s9230_64x_AUTO_DEFS := module/auto/x86_64_ingrasys_s9230_64x.yml +x86_64_ingrasys_s9230_64x_AUTO_DIRS := module/inc/x86_64_ingrasys_s9230_64x module/src include $(BUILDER)/auto.mk diff --git a/packages/platforms/ingrasys/x86-64/s9230-64x/onlp/builds/src/x86_64_ingrasys_s9230_64x/module/auto/x86-64-ingrasys-s9230-64x.yml b/packages/platforms/ingrasys/x86-64/s9230-64x/onlp/builds/src/x86_64_ingrasys_s9230_64x/module/auto/x86_64_ingrasys_s9230_64x.yml similarity index 100% rename from packages/platforms/ingrasys/x86-64/s9230-64x/onlp/builds/src/x86_64_ingrasys_s9230_64x/module/auto/x86-64-ingrasys-s9230-64x.yml rename to packages/platforms/ingrasys/x86-64/s9230-64x/onlp/builds/src/x86_64_ingrasys_s9230_64x/module/auto/x86_64_ingrasys_s9230_64x.yml diff --git a/packages/platforms/ingrasys/x86-64/s9230-64x/onlp/builds/src/x86_64_ingrasys_s9230_64x/module/inc/x86_64_ingrasys_s9230_64x/x86_64_ingrasys_s9230_64x_config.h b/packages/platforms/ingrasys/x86-64/s9230-64x/onlp/builds/src/x86_64_ingrasys_s9230_64x/module/inc/x86_64_ingrasys_s9230_64x/x86_64_ingrasys_s9230_64x_config.h index dfafa00a..944dd1cb 100755 --- a/packages/platforms/ingrasys/x86-64/s9230-64x/onlp/builds/src/x86_64_ingrasys_s9230_64x/module/inc/x86_64_ingrasys_s9230_64x/x86_64_ingrasys_s9230_64x_config.h +++ b/packages/platforms/ingrasys/x86-64/s9230-64x/onlp/builds/src/x86_64_ingrasys_s9230_64x/module/inc/x86_64_ingrasys_s9230_64x/x86_64_ingrasys_s9230_64x_config.h @@ -32,96 +32,86 @@ * @{ * *****************************************************************************/ -#ifndef __X86_64_INGRAYSYS_S9230_64X_CONFIG_H__ -#define __X86_64_INGRAYSYS_S9230_64X_CONFIG_H__ +#ifndef __X86_64_INGRASYS_S9230_64X_CONFIG_H__ +#define __X86_64_INGRASYS_S9230_64X_CONFIG_H__ #ifdef GLOBAL_INCLUDE_CUSTOM_CONFIG #include #endif -#ifdef X86_64_INGRAYSYS_S9230_64X_INCLUDE_CUSTOM_CONFIG +#ifdef X86_64_INGRASYS_S9230_64X_INCLUDE_CUSTOM_CONFIG #include #endif -/* */ +/* */ #include /** - * X86_64_INGRAYSYS_S9230_64X_CONFIG_INCLUDE_LOGGING + * X86_64_INGRASYS_S9230_64X_CONFIG_INCLUDE_LOGGING * * Include or exclude logging. */ -#ifndef X86_64_INGRAYSYS_S9230_64X_CONFIG_INCLUDE_LOGGING -#define X86_64_INGRAYSYS_S9230_64X_CONFIG_INCLUDE_LOGGING 1 +#ifndef X86_64_INGRASYS_S9230_64X_CONFIG_INCLUDE_LOGGING +#define X86_64_INGRASYS_S9230_64X_CONFIG_INCLUDE_LOGGING 1 #endif /** - * X86_64_INGRAYSYS_S9230_64X_CONFIG_LOG_OPTIONS_DEFAULT + * X86_64_INGRASYS_S9230_64X_CONFIG_LOG_OPTIONS_DEFAULT * * Default enabled log options. */ -#ifndef X86_64_INGRAYSYS_S9230_64X_CONFIG_LOG_OPTIONS_DEFAULT -#define X86_64_INGRAYSYS_S9230_64X_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT +#ifndef X86_64_INGRASYS_S9230_64X_CONFIG_LOG_OPTIONS_DEFAULT +#define X86_64_INGRASYS_S9230_64X_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT #endif /** - * X86_64_INGRAYSYS_S9230_64X_CONFIG_LOG_BITS_DEFAULT + * X86_64_INGRASYS_S9230_64X_CONFIG_LOG_BITS_DEFAULT * * Default enabled log bits. */ -#ifndef X86_64_INGRAYSYS_S9230_64X_CONFIG_LOG_BITS_DEFAULT -#define X86_64_INGRAYSYS_S9230_64X_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT +#ifndef X86_64_INGRASYS_S9230_64X_CONFIG_LOG_BITS_DEFAULT +#define X86_64_INGRASYS_S9230_64X_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT #endif /** - * X86_64_INGRAYSYS_S9230_64X_CONFIG_LOG_CUSTOM_BITS_DEFAULT + * X86_64_INGRASYS_S9230_64X_CONFIG_LOG_CUSTOM_BITS_DEFAULT * * Default enabled custom log bits. */ -#ifndef X86_64_INGRAYSYS_S9230_64X_CONFIG_LOG_CUSTOM_BITS_DEFAULT -#define X86_64_INGRAYSYS_S9230_64X_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 +#ifndef X86_64_INGRASYS_S9230_64X_CONFIG_LOG_CUSTOM_BITS_DEFAULT +#define X86_64_INGRASYS_S9230_64X_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 #endif /** - * X86_64_INGRAYSYS_S9230_64X_CONFIG_PORTING_STDLIB + * X86_64_INGRASYS_S9230_64X_CONFIG_PORTING_STDLIB * * Default all porting macros to use the C standard libraries. */ -#ifndef X86_64_INGRAYSYS_S9230_64X_CONFIG_PORTING_STDLIB -#define X86_64_INGRAYSYS_S9230_64X_CONFIG_PORTING_STDLIB 1 +#ifndef X86_64_INGRASYS_S9230_64X_CONFIG_PORTING_STDLIB +#define X86_64_INGRASYS_S9230_64X_CONFIG_PORTING_STDLIB 1 #endif /** - * X86_64_INGRAYSYS_S9230_64X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + * X86_64_INGRASYS_S9230_64X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS * * Include standard library headers for stdlib porting macros. */ -#ifndef X86_64_INGRAYSYS_S9230_64X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS -#define X86_64_INGRAYSYS_S9230_64X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS X86_64_INGRAYSYS_S9230_64X_CONFIG_PORTING_STDLIB +#ifndef X86_64_INGRASYS_S9230_64X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS +#define X86_64_INGRASYS_S9230_64X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS X86_64_INGRASYS_S9230_64X_CONFIG_PORTING_STDLIB #endif /** - * X86_64_INGRAYSYS_S9230_64X_CONFIG_INCLUDE_UCLI + * X86_64_INGRASYS_S9230_64X_CONFIG_INCLUDE_UCLI * * Include generic uCli support. */ -#ifndef X86_64_INGRAYSYS_S9230_64X_CONFIG_INCLUDE_UCLI -#define X86_64_INGRAYSYS_S9230_64X_CONFIG_INCLUDE_UCLI 0 -#endif - -/** - * X86_64_INGRAYSYS_S9230_64X_CONFIG_SFP_COUNT - * - * SFP Count. */ - - -#ifndef X86_64_INGRAYSYS_S9230_64X_CONFIG_SFP_COUNT -#define X86_64_INGRAYSYS_S9230_64X_CONFIG_SFP_COUNT 0 +#ifndef X86_64_INGRASYS_S9230_64X_CONFIG_INCLUDE_UCLI +#define X86_64_INGRASYS_S9230_64X_CONFIG_INCLUDE_UCLI 0 #endif @@ -154,9 +144,9 @@ const char* x86_64_ingrasys_s9230_64x_config_lookup(const char* setting); */ int x86_64_ingrasys_s9230_64x_config_show(struct aim_pvs_s* pvs); -/* */ +/* */ #include "x86_64_ingrasys_s9230_64x_porting.h" -#endif /* __X86_64_INGRAYSYS_S9230_64X_CONFIG_H__ */ +#endif /* __X86_64_INGRASYS_S9230_64X_CONFIG_H__ */ /* @} */ diff --git a/packages/platforms/ingrasys/x86-64/s9230-64x/onlp/builds/src/x86_64_ingrasys_s9230_64x/module/inc/x86_64_ingrasys_s9230_64x/x86_64_ingrasys_s9230_64x_porting.h b/packages/platforms/ingrasys/x86-64/s9230-64x/onlp/builds/src/x86_64_ingrasys_s9230_64x/module/inc/x86_64_ingrasys_s9230_64x/x86_64_ingrasys_s9230_64x_porting.h index 5d93fafc..52e8d530 100755 --- a/packages/platforms/ingrasys/x86-64/s9230-64x/onlp/builds/src/x86_64_ingrasys_s9230_64x/module/inc/x86_64_ingrasys_s9230_64x/x86_64_ingrasys_s9230_64x_porting.h +++ b/packages/platforms/ingrasys/x86-64/s9230-64x/onlp/builds/src/x86_64_ingrasys_s9230_64x/module/inc/x86_64_ingrasys_s9230_64x/x86_64_ingrasys_s9230_64x_porting.h @@ -7,11 +7,11 @@ * @{ * ***********************************************************/ -#ifndef __X86_64_INGRAYSYS_S9230_64X_PORTING_H__ -#define __X86_64_INGRAYSYS_S9230_64X_PORTING_H__ +#ifndef __X86_64_INGRASYS_S9230_64X_PORTING_H__ +#define __X86_64_INGRASYS_S9230_64X_PORTING_H__ /* */ -#if X86_64_INGRAYSYS_S9230_64X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 +#if X86_64_INGRASYS_S9230_64X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 #include #include #include @@ -19,88 +19,88 @@ #include #endif -#ifndef X86_64_INGRAYSYS_S9230_64X_MALLOC +#ifndef X86_64_INGRASYS_S9230_64X_MALLOC #if defined(GLOBAL_MALLOC) - #define X86_64_INGRAYSYS_S9230_64X_MALLOC GLOBAL_MALLOC - #elif X86_64_INGRAYSYS_S9230_64X_CONFIG_PORTING_STDLIB == 1 - #define X86_64_INGRAYSYS_S9230_64X_MALLOC malloc + #define X86_64_INGRASYS_S9230_64X_MALLOC GLOBAL_MALLOC + #elif X86_64_INGRASYS_S9230_64X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INGRASYS_S9230_64X_MALLOC malloc #else - #error The macro X86_64_INGRAYSYS_S9230_64X_MALLOC is required but cannot be defined. + #error The macro X86_64_INGRASYS_S9230_64X_MALLOC is required but cannot be defined. #endif #endif -#ifndef X86_64_INGRAYSYS_S9230_64X_FREE +#ifndef X86_64_INGRASYS_S9230_64X_FREE #if defined(GLOBAL_FREE) - #define X86_64_INGRAYSYS_S9230_64X_FREE GLOBAL_FREE - #elif X86_64_INGRAYSYS_S9230_64X_CONFIG_PORTING_STDLIB == 1 - #define X86_64_INGRAYSYS_S9230_64X_FREE free + #define X86_64_INGRASYS_S9230_64X_FREE GLOBAL_FREE + #elif X86_64_INGRASYS_S9230_64X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INGRASYS_S9230_64X_FREE free #else - #error The macro X86_64_INGRAYSYS_S9230_64X_FREE is required but cannot be defined. + #error The macro X86_64_INGRASYS_S9230_64X_FREE is required but cannot be defined. #endif #endif -#ifndef X86_64_INGRAYSYS_S9230_64X_MEMSET +#ifndef X86_64_INGRASYS_S9230_64X_MEMSET #if defined(GLOBAL_MEMSET) - #define X86_64_INGRAYSYS_S9230_64X_MEMSET GLOBAL_MEMSET - #elif X86_64_INGRAYSYS_S9230_64X_CONFIG_PORTING_STDLIB == 1 - #define X86_64_INGRAYSYS_S9230_64X_MEMSET memset + #define X86_64_INGRASYS_S9230_64X_MEMSET GLOBAL_MEMSET + #elif X86_64_INGRASYS_S9230_64X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INGRASYS_S9230_64X_MEMSET memset #else - #error The macro X86_64_INGRAYSYS_S9230_64X_MEMSET is required but cannot be defined. + #error The macro X86_64_INGRASYS_S9230_64X_MEMSET is required but cannot be defined. #endif #endif -#ifndef X86_64_INGRAYSYS_S9230_64X_MEMCPY +#ifndef X86_64_INGRASYS_S9230_64X_MEMCPY #if defined(GLOBAL_MEMCPY) - #define X86_64_INGRAYSYS_S9230_64X_MEMCPY GLOBAL_MEMCPY - #elif X86_64_INGRAYSYS_S9230_64X_CONFIG_PORTING_STDLIB == 1 - #define X86_64_INGRAYSYS_S9230_64X_MEMCPY memcpy + #define X86_64_INGRASYS_S9230_64X_MEMCPY GLOBAL_MEMCPY + #elif X86_64_INGRASYS_S9230_64X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INGRASYS_S9230_64X_MEMCPY memcpy #else - #error The macro X86_64_INGRAYSYS_S9230_64X_MEMCPY is required but cannot be defined. + #error The macro X86_64_INGRASYS_S9230_64X_MEMCPY is required but cannot be defined. #endif #endif -#ifndef X86_64_INGRAYSYS_S9230_64X_STRNCPY +#ifndef X86_64_INGRASYS_S9230_64X_STRNCPY #if defined(GLOBAL_STRNCPY) - #define X86_64_INGRAYSYS_S9230_64X_STRNCPY GLOBAL_STRNCPY - #elif X86_64_INGRAYSYS_S9230_64X_CONFIG_PORTING_STDLIB == 1 - #define X86_64_INGRAYSYS_S9230_64X_STRNCPY strncpy + #define X86_64_INGRASYS_S9230_64X_STRNCPY GLOBAL_STRNCPY + #elif X86_64_INGRASYS_S9230_64X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INGRASYS_S9230_64X_STRNCPY strncpy #else - #error The macro X86_64_INGRAYSYS_S9230_64X_STRNCPY is required but cannot be defined. + #error The macro X86_64_INGRASYS_S9230_64X_STRNCPY is required but cannot be defined. #endif #endif -#ifndef X86_64_INGRAYSYS_S9230_64X_VSNPRINTF +#ifndef X86_64_INGRASYS_S9230_64X_VSNPRINTF #if defined(GLOBAL_VSNPRINTF) - #define X86_64_INGRAYSYS_S9230_64X_VSNPRINTF GLOBAL_VSNPRINTF - #elif X86_64_INGRAYSYS_S9230_64X_CONFIG_PORTING_STDLIB == 1 - #define X86_64_INGRAYSYS_S9230_64X_VSNPRINTF vsnprintf + #define X86_64_INGRASYS_S9230_64X_VSNPRINTF GLOBAL_VSNPRINTF + #elif X86_64_INGRASYS_S9230_64X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INGRASYS_S9230_64X_VSNPRINTF vsnprintf #else - #error The macro X86_64_INGRAYSYS_S9230_64X_VSNPRINTF is required but cannot be defined. + #error The macro X86_64_INGRASYS_S9230_64X_VSNPRINTF is required but cannot be defined. #endif #endif -#ifndef X86_64_INGRAYSYS_S9230_64X_SNPRINTF +#ifndef X86_64_INGRASYS_S9230_64X_SNPRINTF #if defined(GLOBAL_SNPRINTF) - #define X86_64_INGRAYSYS_S9230_64X_SNPRINTF GLOBAL_SNPRINTF - #elif X86_64_INGRAYSYS_S9230_64X_CONFIG_PORTING_STDLIB == 1 - #define X86_64_INGRAYSYS_S9230_64X_SNPRINTF snprintf + #define X86_64_INGRASYS_S9230_64X_SNPRINTF GLOBAL_SNPRINTF + #elif X86_64_INGRASYS_S9230_64X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INGRASYS_S9230_64X_SNPRINTF snprintf #else - #error The macro X86_64_INGRAYSYS_S9230_64X_SNPRINTF is required but cannot be defined. + #error The macro X86_64_INGRASYS_S9230_64X_SNPRINTF is required but cannot be defined. #endif #endif -#ifndef X86_64_INGRAYSYS_S9230_64X_STRLEN +#ifndef X86_64_INGRASYS_S9230_64X_STRLEN #if defined(GLOBAL_STRLEN) - #define X86_64_INGRAYSYS_S9230_64X_STRLEN GLOBAL_STRLEN - #elif X86_64_INGRAYSYS_S9230_64X_CONFIG_PORTING_STDLIB == 1 - #define X86_64_INGRAYSYS_S9230_64X_STRLEN strlen + #define X86_64_INGRASYS_S9230_64X_STRLEN GLOBAL_STRLEN + #elif X86_64_INGRASYS_S9230_64X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INGRASYS_S9230_64X_STRLEN strlen #else - #error The macro X86_64_INGRAYSYS_S9230_64X_STRLEN is required but cannot be defined. + #error The macro X86_64_INGRASYS_S9230_64X_STRLEN is required but cannot be defined. #endif #endif /* */ -#endif /* __X86_64_INGRAYSYS_S9230_64X_PORTING_H__ */ +#endif /* __X86_64_INGRASYS_S9230_64X_PORTING_H__ */ /* @} */ diff --git a/packages/platforms/ingrasys/x86-64/s9230-64x/onlp/builds/src/x86_64_ingrasys_s9230_64x/module/src/x86_64_ingrasys_s9230_64x_config.c b/packages/platforms/ingrasys/x86-64/s9230-64x/onlp/builds/src/x86_64_ingrasys_s9230_64x/module/src/x86_64_ingrasys_s9230_64x_config.c index 5c6086e0..a854b2be 100755 --- a/packages/platforms/ingrasys/x86-64/s9230-64x/onlp/builds/src/x86_64_ingrasys_s9230_64x/module/src/x86_64_ingrasys_s9230_64x_config.c +++ b/packages/platforms/ingrasys/x86-64/s9230-64x/onlp/builds/src/x86_64_ingrasys_s9230_64x/module/src/x86_64_ingrasys_s9230_64x_config.c @@ -25,50 +25,45 @@ #include -/* */ +/* */ #define __x86_64_ingrasys_s9230_64x_config_STRINGIFY_NAME(_x) #_x #define __x86_64_ingrasys_s9230_64x_config_STRINGIFY_VALUE(_x) __x86_64_ingrasys_s9230_64x_config_STRINGIFY_NAME(_x) x86_64_ingrasys_s9230_64x_config_settings_t x86_64_ingrasys_s9230_64x_config_settings[] = { -#ifdef X86_64_INGRAYSYS_S9230_64X_CONFIG_INCLUDE_LOGGING - { __x86_64_ingrasys_s9230_64x_config_STRINGIFY_NAME(X86_64_INGRAYSYS_S9230_64X_CONFIG_INCLUDE_LOGGING), __x86_64_ingrasys_s9230_64x_config_STRINGIFY_VALUE(X86_64_INGRAYSYS_S9230_64X_CONFIG_INCLUDE_LOGGING) }, +#ifdef X86_64_INGRASYS_S9230_64X_CONFIG_INCLUDE_LOGGING + { __x86_64_ingrasys_s9230_64x_config_STRINGIFY_NAME(X86_64_INGRASYS_S9230_64X_CONFIG_INCLUDE_LOGGING), __x86_64_ingrasys_s9230_64x_config_STRINGIFY_VALUE(X86_64_INGRASYS_S9230_64X_CONFIG_INCLUDE_LOGGING) }, #else -{ X86_64_INGRAYSYS_S9230_64X_CONFIG_INCLUDE_LOGGING(__x86_64_ingrasys_s9230_64x_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INGRASYS_S9230_64X_CONFIG_INCLUDE_LOGGING(__x86_64_ingrasys_s9230_64x_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef X86_64_INGRAYSYS_S9230_64X_CONFIG_LOG_OPTIONS_DEFAULT - { __x86_64_ingrasys_s9230_64x_config_STRINGIFY_NAME(X86_64_INGRAYSYS_S9230_64X_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_ingrasys_s9230_64x_config_STRINGIFY_VALUE(X86_64_INGRAYSYS_S9230_64X_CONFIG_LOG_OPTIONS_DEFAULT) }, +#ifdef X86_64_INGRASYS_S9230_64X_CONFIG_LOG_OPTIONS_DEFAULT + { __x86_64_ingrasys_s9230_64x_config_STRINGIFY_NAME(X86_64_INGRASYS_S9230_64X_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_ingrasys_s9230_64x_config_STRINGIFY_VALUE(X86_64_INGRASYS_S9230_64X_CONFIG_LOG_OPTIONS_DEFAULT) }, #else -{ X86_64_INGRAYSYS_S9230_64X_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_ingrasys_s9230_64x_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INGRASYS_S9230_64X_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_ingrasys_s9230_64x_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef X86_64_INGRAYSYS_S9230_64X_CONFIG_LOG_BITS_DEFAULT - { __x86_64_ingrasys_s9230_64x_config_STRINGIFY_NAME(X86_64_INGRAYSYS_S9230_64X_CONFIG_LOG_BITS_DEFAULT), __x86_64_ingrasys_s9230_64x_config_STRINGIFY_VALUE(X86_64_INGRAYSYS_S9230_64X_CONFIG_LOG_BITS_DEFAULT) }, +#ifdef X86_64_INGRASYS_S9230_64X_CONFIG_LOG_BITS_DEFAULT + { __x86_64_ingrasys_s9230_64x_config_STRINGIFY_NAME(X86_64_INGRASYS_S9230_64X_CONFIG_LOG_BITS_DEFAULT), __x86_64_ingrasys_s9230_64x_config_STRINGIFY_VALUE(X86_64_INGRASYS_S9230_64X_CONFIG_LOG_BITS_DEFAULT) }, #else -{ X86_64_INGRAYSYS_S9230_64X_CONFIG_LOG_BITS_DEFAULT(__x86_64_ingrasys_s9230_64x_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INGRASYS_S9230_64X_CONFIG_LOG_BITS_DEFAULT(__x86_64_ingrasys_s9230_64x_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef X86_64_INGRAYSYS_S9230_64X_CONFIG_LOG_CUSTOM_BITS_DEFAULT - { __x86_64_ingrasys_s9230_64x_config_STRINGIFY_NAME(X86_64_INGRAYSYS_S9230_64X_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_ingrasys_s9230_64x_config_STRINGIFY_VALUE(X86_64_INGRAYSYS_S9230_64X_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, +#ifdef X86_64_INGRASYS_S9230_64X_CONFIG_LOG_CUSTOM_BITS_DEFAULT + { __x86_64_ingrasys_s9230_64x_config_STRINGIFY_NAME(X86_64_INGRASYS_S9230_64X_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_ingrasys_s9230_64x_config_STRINGIFY_VALUE(X86_64_INGRASYS_S9230_64X_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, #else -{ X86_64_INGRAYSYS_S9230_64X_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_ingrasys_s9230_64x_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INGRASYS_S9230_64X_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_ingrasys_s9230_64x_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef X86_64_INGRAYSYS_S9230_64X_CONFIG_PORTING_STDLIB - { __x86_64_ingrasys_s9230_64x_config_STRINGIFY_NAME(X86_64_INGRAYSYS_S9230_64X_CONFIG_PORTING_STDLIB), __x86_64_ingrasys_s9230_64x_config_STRINGIFY_VALUE(X86_64_INGRAYSYS_S9230_64X_CONFIG_PORTING_STDLIB) }, +#ifdef X86_64_INGRASYS_S9230_64X_CONFIG_PORTING_STDLIB + { __x86_64_ingrasys_s9230_64x_config_STRINGIFY_NAME(X86_64_INGRASYS_S9230_64X_CONFIG_PORTING_STDLIB), __x86_64_ingrasys_s9230_64x_config_STRINGIFY_VALUE(X86_64_INGRASYS_S9230_64X_CONFIG_PORTING_STDLIB) }, #else -{ X86_64_INGRAYSYS_S9230_64X_CONFIG_PORTING_STDLIB(__x86_64_ingrasys_s9230_64x_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INGRASYS_S9230_64X_CONFIG_PORTING_STDLIB(__x86_64_ingrasys_s9230_64x_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef X86_64_INGRAYSYS_S9230_64X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS - { __x86_64_ingrasys_s9230_64x_config_STRINGIFY_NAME(X86_64_INGRAYSYS_S9230_64X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_ingrasys_s9230_64x_config_STRINGIFY_VALUE(X86_64_INGRAYSYS_S9230_64X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, +#ifdef X86_64_INGRASYS_S9230_64X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + { __x86_64_ingrasys_s9230_64x_config_STRINGIFY_NAME(X86_64_INGRASYS_S9230_64X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_ingrasys_s9230_64x_config_STRINGIFY_VALUE(X86_64_INGRASYS_S9230_64X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, #else -{ X86_64_INGRAYSYS_S9230_64X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_ingrasys_s9230_64x_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INGRASYS_S9230_64X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_ingrasys_s9230_64x_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef X86_64_INGRAYSYS_S9230_64X_CONFIG_INCLUDE_UCLI - { __x86_64_ingrasys_s9230_64x_config_STRINGIFY_NAME(X86_64_INGRAYSYS_S9230_64X_CONFIG_INCLUDE_UCLI), __x86_64_ingrasys_s9230_64x_config_STRINGIFY_VALUE(X86_64_INGRAYSYS_S9230_64X_CONFIG_INCLUDE_UCLI) }, +#ifdef X86_64_INGRASYS_S9230_64X_CONFIG_INCLUDE_UCLI + { __x86_64_ingrasys_s9230_64x_config_STRINGIFY_NAME(X86_64_INGRASYS_S9230_64X_CONFIG_INCLUDE_UCLI), __x86_64_ingrasys_s9230_64x_config_STRINGIFY_VALUE(X86_64_INGRASYS_S9230_64X_CONFIG_INCLUDE_UCLI) }, #else -{ X86_64_INGRAYSYS_S9230_64X_CONFIG_INCLUDE_UCLI(__x86_64_ingrasys_s9230_64x_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef X86_64_INGRAYSYS_S9230_64X_CONFIG_SFP_COUNT - { __x86_64_ingrasys_s9230_64x_config_STRINGIFY_NAME(X86_64_INGRAYSYS_S9230_64X_CONFIG_SFP_COUNT), __x86_64_ingrasys_s9230_64x_config_STRINGIFY_VALUE(X86_64_INGRAYSYS_S9230_64X_CONFIG_SFP_COUNT) }, -#else -{ X86_64_INGRAYSYS_S9230_64X_CONFIG_SFP_COUNT(__x86_64_ingrasys_s9230_64x_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INGRASYS_S9230_64X_CONFIG_INCLUDE_UCLI(__x86_64_ingrasys_s9230_64x_config_STRINGIFY_NAME), "__undefined__" }, #endif { NULL, NULL } }; @@ -80,7 +75,7 @@ x86_64_ingrasys_s9230_64x_config_lookup(const char* setting) { int i; for(i = 0; x86_64_ingrasys_s9230_64x_config_settings[i].name; i++) { - if(strcmp(x86_64_ingrasys_s9230_64x_config_settings[i].name, setting)) { + if(!strcmp(x86_64_ingrasys_s9230_64x_config_settings[i].name, setting)) { return x86_64_ingrasys_s9230_64x_config_settings[i].value; } } @@ -97,5 +92,5 @@ x86_64_ingrasys_s9230_64x_config_show(struct aim_pvs_s* pvs) return i; } -/* */ +/* */ diff --git a/packages/platforms/ingrasys/x86-64/s9230-64x/onlp/builds/src/x86_64_ingrasys_s9230_64x/module/src/x86_64_ingrasys_s9230_64x_log.c b/packages/platforms/ingrasys/x86-64/s9230-64x/onlp/builds/src/x86_64_ingrasys_s9230_64x/module/src/x86_64_ingrasys_s9230_64x_log.c index 77c97dc6..2e2ce68c 100755 --- a/packages/platforms/ingrasys/x86-64/s9230-64x/onlp/builds/src/x86_64_ingrasys_s9230_64x/module/src/x86_64_ingrasys_s9230_64x_log.c +++ b/packages/platforms/ingrasys/x86-64/s9230-64x/onlp/builds/src/x86_64_ingrasys_s9230_64x/module/src/x86_64_ingrasys_s9230_64x_log.c @@ -30,9 +30,9 @@ * x86_64_ingrasys_s9230_64x log struct. */ AIM_LOG_STRUCT_DEFINE( - X86_64_INGRAYSYS_S9230_64X_CONFIG_LOG_OPTIONS_DEFAULT, - X86_64_INGRAYSYS_S9230_64X_CONFIG_LOG_BITS_DEFAULT, + X86_64_INGRASYS_S9230_64X_CONFIG_LOG_OPTIONS_DEFAULT, + X86_64_INGRASYS_S9230_64X_CONFIG_LOG_BITS_DEFAULT, NULL, /* Custom log map */ - X86_64_INGRAYSYS_S9230_64X_CONFIG_LOG_CUSTOM_BITS_DEFAULT + X86_64_INGRASYS_S9230_64X_CONFIG_LOG_CUSTOM_BITS_DEFAULT ); diff --git a/packages/platforms/ingrasys/x86-64/s9280-64x/onlp/builds/src/x86_64_ingrasys_s9280_64x/module/auto/make.mk b/packages/platforms/ingrasys/x86-64/s9280-64x/onlp/builds/src/x86_64_ingrasys_s9280_64x/module/auto/make.mk index cd187a52..29f32c5d 100755 --- a/packages/platforms/ingrasys/x86-64/s9280-64x/onlp/builds/src/x86_64_ingrasys_s9280_64x/module/auto/make.mk +++ b/packages/platforms/ingrasys/x86-64/s9280-64x/onlp/builds/src/x86_64_ingrasys_s9280_64x/module/auto/make.mk @@ -2,6 +2,6 @@ # x86_64_ingrasys_s9280_64x Autogeneration # ############################################################################### -x86-64-ingrasys-s9280-64x_AUTO_DEFS := module/auto/x86-64-ingrasys-s9280-64x.yml -x86-64-ingrasys-s9280-64x_AUTO_DIRS := module/inc/x86-64-ingrasys-s9280-64x module/src +x86_64_ingrasys_s9280_64x_AUTO_DEFS := module/auto/x86_64_ingrasys_s9280_64x.yml +x86_64_ingrasys_s9280_64x_AUTO_DIRS := module/inc/x86_64_ingrasys_s9280_64x module/src include $(BUILDER)/auto.mk diff --git a/packages/platforms/ingrasys/x86-64/s9280-64x/onlp/builds/src/x86_64_ingrasys_s9280_64x/module/auto/x86-64-ingrasys-s9280-64x.yml b/packages/platforms/ingrasys/x86-64/s9280-64x/onlp/builds/src/x86_64_ingrasys_s9280_64x/module/auto/x86_64_ingrasys_s9280_64x.yml similarity index 100% rename from packages/platforms/ingrasys/x86-64/s9280-64x/onlp/builds/src/x86_64_ingrasys_s9280_64x/module/auto/x86-64-ingrasys-s9280-64x.yml rename to packages/platforms/ingrasys/x86-64/s9280-64x/onlp/builds/src/x86_64_ingrasys_s9280_64x/module/auto/x86_64_ingrasys_s9280_64x.yml diff --git a/packages/platforms/ingrasys/x86-64/s9280-64x/onlp/builds/src/x86_64_ingrasys_s9280_64x/module/inc/x86_64_ingrasys_s9280_64x/x86_64_ingrasys_s9280_64x_config.h b/packages/platforms/ingrasys/x86-64/s9280-64x/onlp/builds/src/x86_64_ingrasys_s9280_64x/module/inc/x86_64_ingrasys_s9280_64x/x86_64_ingrasys_s9280_64x_config.h index 19e6e7a6..c25b48db 100755 --- a/packages/platforms/ingrasys/x86-64/s9280-64x/onlp/builds/src/x86_64_ingrasys_s9280_64x/module/inc/x86_64_ingrasys_s9280_64x/x86_64_ingrasys_s9280_64x_config.h +++ b/packages/platforms/ingrasys/x86-64/s9280-64x/onlp/builds/src/x86_64_ingrasys_s9280_64x/module/inc/x86_64_ingrasys_s9280_64x/x86_64_ingrasys_s9280_64x_config.h @@ -32,96 +32,86 @@ * @{ * *****************************************************************************/ -#ifndef __X86_64_INGRAYSYS_S9280_64X_CONFIG_H__ -#define __X86_64_INGRAYSYS_S9280_64X_CONFIG_H__ +#ifndef __X86_64_INGRASYS_S9280_64X_CONFIG_H__ +#define __X86_64_INGRASYS_S9280_64X_CONFIG_H__ #ifdef GLOBAL_INCLUDE_CUSTOM_CONFIG #include #endif -#ifdef X86_64_INGRAYSYS_S9280_64X_INCLUDE_CUSTOM_CONFIG +#ifdef X86_64_INGRASYS_S9280_64X_INCLUDE_CUSTOM_CONFIG #include #endif -/* */ +/* */ #include /** - * X86_64_INGRAYSYS_S9280_64X_CONFIG_INCLUDE_LOGGING + * X86_64_INGRASYS_S9280_64X_CONFIG_INCLUDE_LOGGING * * Include or exclude logging. */ -#ifndef X86_64_INGRAYSYS_S9280_64X_CONFIG_INCLUDE_LOGGING -#define X86_64_INGRAYSYS_S9280_64X_CONFIG_INCLUDE_LOGGING 1 +#ifndef X86_64_INGRASYS_S9280_64X_CONFIG_INCLUDE_LOGGING +#define X86_64_INGRASYS_S9280_64X_CONFIG_INCLUDE_LOGGING 1 #endif /** - * X86_64_INGRAYSYS_S9280_64X_CONFIG_LOG_OPTIONS_DEFAULT + * X86_64_INGRASYS_S9280_64X_CONFIG_LOG_OPTIONS_DEFAULT * * Default enabled log options. */ -#ifndef X86_64_INGRAYSYS_S9280_64X_CONFIG_LOG_OPTIONS_DEFAULT -#define X86_64_INGRAYSYS_S9280_64X_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT +#ifndef X86_64_INGRASYS_S9280_64X_CONFIG_LOG_OPTIONS_DEFAULT +#define X86_64_INGRASYS_S9280_64X_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT #endif /** - * X86_64_INGRAYSYS_S9280_64X_CONFIG_LOG_BITS_DEFAULT + * X86_64_INGRASYS_S9280_64X_CONFIG_LOG_BITS_DEFAULT * * Default enabled log bits. */ -#ifndef X86_64_INGRAYSYS_S9280_64X_CONFIG_LOG_BITS_DEFAULT -#define X86_64_INGRAYSYS_S9280_64X_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT +#ifndef X86_64_INGRASYS_S9280_64X_CONFIG_LOG_BITS_DEFAULT +#define X86_64_INGRASYS_S9280_64X_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT #endif /** - * X86_64_INGRAYSYS_S9280_64X_CONFIG_LOG_CUSTOM_BITS_DEFAULT + * X86_64_INGRASYS_S9280_64X_CONFIG_LOG_CUSTOM_BITS_DEFAULT * * Default enabled custom log bits. */ -#ifndef X86_64_INGRAYSYS_S9280_64X_CONFIG_LOG_CUSTOM_BITS_DEFAULT -#define X86_64_INGRAYSYS_S9280_64X_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 +#ifndef X86_64_INGRASYS_S9280_64X_CONFIG_LOG_CUSTOM_BITS_DEFAULT +#define X86_64_INGRASYS_S9280_64X_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 #endif /** - * X86_64_INGRAYSYS_S9280_64X_CONFIG_PORTING_STDLIB + * X86_64_INGRASYS_S9280_64X_CONFIG_PORTING_STDLIB * * Default all porting macros to use the C standard libraries. */ -#ifndef X86_64_INGRAYSYS_S9280_64X_CONFIG_PORTING_STDLIB -#define X86_64_INGRAYSYS_S9280_64X_CONFIG_PORTING_STDLIB 1 +#ifndef X86_64_INGRASYS_S9280_64X_CONFIG_PORTING_STDLIB +#define X86_64_INGRASYS_S9280_64X_CONFIG_PORTING_STDLIB 1 #endif /** - * X86_64_INGRAYSYS_S9280_64X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + * X86_64_INGRASYS_S9280_64X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS * * Include standard library headers for stdlib porting macros. */ -#ifndef X86_64_INGRAYSYS_S9280_64X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS -#define X86_64_INGRAYSYS_S9280_64X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS X86_64_INGRAYSYS_S9280_64X_CONFIG_PORTING_STDLIB +#ifndef X86_64_INGRASYS_S9280_64X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS +#define X86_64_INGRASYS_S9280_64X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS X86_64_INGRASYS_S9280_64X_CONFIG_PORTING_STDLIB #endif /** - * X86_64_INGRAYSYS_S9280_64X_CONFIG_INCLUDE_UCLI + * X86_64_INGRASYS_S9280_64X_CONFIG_INCLUDE_UCLI * * Include generic uCli support. */ -#ifndef X86_64_INGRAYSYS_S9280_64X_CONFIG_INCLUDE_UCLI -#define X86_64_INGRAYSYS_S9280_64X_CONFIG_INCLUDE_UCLI 0 -#endif - -/** - * X86_64_INGRAYSYS_S9280_64X_CONFIG_SFP_COUNT - * - * SFP Count. */ - - -#ifndef X86_64_INGRAYSYS_S9280_64X_CONFIG_SFP_COUNT -#define X86_64_INGRAYSYS_S9280_64X_CONFIG_SFP_COUNT 0 +#ifndef X86_64_INGRASYS_S9280_64X_CONFIG_INCLUDE_UCLI +#define X86_64_INGRASYS_S9280_64X_CONFIG_INCLUDE_UCLI 0 #endif @@ -154,9 +144,9 @@ const char* x86_64_ingrasys_s9280_64x_config_lookup(const char* setting); */ int x86_64_ingrasys_s9280_64x_config_show(struct aim_pvs_s* pvs); -/* */ +/* */ #include "x86_64_ingrasys_s9280_64x_porting.h" -#endif /* __X86_64_INGRAYSYS_S9280_64X_CONFIG_H__ */ +#endif /* __X86_64_INGRASYS_S9280_64X_CONFIG_H__ */ /* @} */ diff --git a/packages/platforms/ingrasys/x86-64/s9280-64x/onlp/builds/src/x86_64_ingrasys_s9280_64x/module/inc/x86_64_ingrasys_s9280_64x/x86_64_ingrasys_s9280_64x_porting.h b/packages/platforms/ingrasys/x86-64/s9280-64x/onlp/builds/src/x86_64_ingrasys_s9280_64x/module/inc/x86_64_ingrasys_s9280_64x/x86_64_ingrasys_s9280_64x_porting.h index 92f6b757..e8061d2d 100755 --- a/packages/platforms/ingrasys/x86-64/s9280-64x/onlp/builds/src/x86_64_ingrasys_s9280_64x/module/inc/x86_64_ingrasys_s9280_64x/x86_64_ingrasys_s9280_64x_porting.h +++ b/packages/platforms/ingrasys/x86-64/s9280-64x/onlp/builds/src/x86_64_ingrasys_s9280_64x/module/inc/x86_64_ingrasys_s9280_64x/x86_64_ingrasys_s9280_64x_porting.h @@ -7,11 +7,11 @@ * @{ * ***********************************************************/ -#ifndef __X86_64_INGRAYSYS_S9280_64X_PORTING_H__ -#define __X86_64_INGRAYSYS_S9280_64X_PORTING_H__ +#ifndef __X86_64_INGRASYS_S9280_64X_PORTING_H__ +#define __X86_64_INGRASYS_S9280_64X_PORTING_H__ /* */ -#if X86_64_INGRAYSYS_S9280_64X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 +#if X86_64_INGRASYS_S9280_64X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 #include #include #include @@ -19,88 +19,88 @@ #include #endif -#ifndef X86_64_INGRAYSYS_S9280_64X_MALLOC +#ifndef X86_64_INGRASYS_S9280_64X_MALLOC #if defined(GLOBAL_MALLOC) - #define X86_64_INGRAYSYS_S9280_64X_MALLOC GLOBAL_MALLOC - #elif X86_64_INGRAYSYS_S9280_64X_CONFIG_PORTING_STDLIB == 1 - #define X86_64_INGRAYSYS_S9280_64X_MALLOC malloc + #define X86_64_INGRASYS_S9280_64X_MALLOC GLOBAL_MALLOC + #elif X86_64_INGRASYS_S9280_64X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INGRASYS_S9280_64X_MALLOC malloc #else - #error The macro X86_64_INGRAYSYS_S9280_64X_MALLOC is required but cannot be defined. + #error The macro X86_64_INGRASYS_S9280_64X_MALLOC is required but cannot be defined. #endif #endif -#ifndef X86_64_INGRAYSYS_S9280_64X_FREE +#ifndef X86_64_INGRASYS_S9280_64X_FREE #if defined(GLOBAL_FREE) - #define X86_64_INGRAYSYS_S9280_64X_FREE GLOBAL_FREE - #elif X86_64_INGRAYSYS_S9280_64X_CONFIG_PORTING_STDLIB == 1 - #define X86_64_INGRAYSYS_S9280_64X_FREE free + #define X86_64_INGRASYS_S9280_64X_FREE GLOBAL_FREE + #elif X86_64_INGRASYS_S9280_64X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INGRASYS_S9280_64X_FREE free #else - #error The macro X86_64_INGRAYSYS_S9280_64X_FREE is required but cannot be defined. + #error The macro X86_64_INGRASYS_S9280_64X_FREE is required but cannot be defined. #endif #endif -#ifndef X86_64_INGRAYSYS_S9280_64X_MEMSET +#ifndef X86_64_INGRASYS_S9280_64X_MEMSET #if defined(GLOBAL_MEMSET) - #define X86_64_INGRAYSYS_S9280_64X_MEMSET GLOBAL_MEMSET - #elif X86_64_INGRAYSYS_S9280_64X_CONFIG_PORTING_STDLIB == 1 - #define X86_64_INGRAYSYS_S9280_64X_MEMSET memset + #define X86_64_INGRASYS_S9280_64X_MEMSET GLOBAL_MEMSET + #elif X86_64_INGRASYS_S9280_64X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INGRASYS_S9280_64X_MEMSET memset #else - #error The macro X86_64_INGRAYSYS_S9280_64X_MEMSET is required but cannot be defined. + #error The macro X86_64_INGRASYS_S9280_64X_MEMSET is required but cannot be defined. #endif #endif -#ifndef X86_64_INGRAYSYS_S9280_64X_MEMCPY +#ifndef X86_64_INGRASYS_S9280_64X_MEMCPY #if defined(GLOBAL_MEMCPY) - #define X86_64_INGRAYSYS_S9280_64X_MEMCPY GLOBAL_MEMCPY - #elif X86_64_INGRAYSYS_S9280_64X_CONFIG_PORTING_STDLIB == 1 - #define X86_64_INGRAYSYS_S9280_64X_MEMCPY memcpy + #define X86_64_INGRASYS_S9280_64X_MEMCPY GLOBAL_MEMCPY + #elif X86_64_INGRASYS_S9280_64X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INGRASYS_S9280_64X_MEMCPY memcpy #else - #error The macro X86_64_INGRAYSYS_S9280_64X_MEMCPY is required but cannot be defined. + #error The macro X86_64_INGRASYS_S9280_64X_MEMCPY is required but cannot be defined. #endif #endif -#ifndef X86_64_INGRAYSYS_S9280_64X_STRNCPY +#ifndef X86_64_INGRASYS_S9280_64X_STRNCPY #if defined(GLOBAL_STRNCPY) - #define X86_64_INGRAYSYS_S9280_64X_STRNCPY GLOBAL_STRNCPY - #elif X86_64_INGRAYSYS_S9280_64X_CONFIG_PORTING_STDLIB == 1 - #define X86_64_INGRAYSYS_S9280_64X_STRNCPY strncpy + #define X86_64_INGRASYS_S9280_64X_STRNCPY GLOBAL_STRNCPY + #elif X86_64_INGRASYS_S9280_64X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INGRASYS_S9280_64X_STRNCPY strncpy #else - #error The macro X86_64_INGRAYSYS_S9280_64X_STRNCPY is required but cannot be defined. + #error The macro X86_64_INGRASYS_S9280_64X_STRNCPY is required but cannot be defined. #endif #endif -#ifndef X86_64_INGRAYSYS_S9280_64X_VSNPRINTF +#ifndef X86_64_INGRASYS_S9280_64X_VSNPRINTF #if defined(GLOBAL_VSNPRINTF) - #define X86_64_INGRAYSYS_S9280_64X_VSNPRINTF GLOBAL_VSNPRINTF - #elif X86_64_INGRAYSYS_S9280_64X_CONFIG_PORTING_STDLIB == 1 - #define X86_64_INGRAYSYS_S9280_64X_VSNPRINTF vsnprintf + #define X86_64_INGRASYS_S9280_64X_VSNPRINTF GLOBAL_VSNPRINTF + #elif X86_64_INGRASYS_S9280_64X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INGRASYS_S9280_64X_VSNPRINTF vsnprintf #else - #error The macro X86_64_INGRAYSYS_S9280_64X_VSNPRINTF is required but cannot be defined. + #error The macro X86_64_INGRASYS_S9280_64X_VSNPRINTF is required but cannot be defined. #endif #endif -#ifndef X86_64_INGRAYSYS_S9280_64X_SNPRINTF +#ifndef X86_64_INGRASYS_S9280_64X_SNPRINTF #if defined(GLOBAL_SNPRINTF) - #define X86_64_INGRAYSYS_S9280_64X_SNPRINTF GLOBAL_SNPRINTF - #elif X86_64_INGRAYSYS_S9280_64X_CONFIG_PORTING_STDLIB == 1 - #define X86_64_INGRAYSYS_S9280_64X_SNPRINTF snprintf + #define X86_64_INGRASYS_S9280_64X_SNPRINTF GLOBAL_SNPRINTF + #elif X86_64_INGRASYS_S9280_64X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INGRASYS_S9280_64X_SNPRINTF snprintf #else - #error The macro X86_64_INGRAYSYS_S9280_64X_SNPRINTF is required but cannot be defined. + #error The macro X86_64_INGRASYS_S9280_64X_SNPRINTF is required but cannot be defined. #endif #endif -#ifndef X86_64_INGRAYSYS_S9280_64X_STRLEN +#ifndef X86_64_INGRASYS_S9280_64X_STRLEN #if defined(GLOBAL_STRLEN) - #define X86_64_INGRAYSYS_S9280_64X_STRLEN GLOBAL_STRLEN - #elif X86_64_INGRAYSYS_S9280_64X_CONFIG_PORTING_STDLIB == 1 - #define X86_64_INGRAYSYS_S9280_64X_STRLEN strlen + #define X86_64_INGRASYS_S9280_64X_STRLEN GLOBAL_STRLEN + #elif X86_64_INGRASYS_S9280_64X_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INGRASYS_S9280_64X_STRLEN strlen #else - #error The macro X86_64_INGRAYSYS_S9280_64X_STRLEN is required but cannot be defined. + #error The macro X86_64_INGRASYS_S9280_64X_STRLEN is required but cannot be defined. #endif #endif /* */ -#endif /* __X86_64_INGRAYSYS_S9280_64X_PORTING_H__ */ +#endif /* __X86_64_INGRASYS_S9280_64X_PORTING_H__ */ /* @} */ diff --git a/packages/platforms/ingrasys/x86-64/s9280-64x/onlp/builds/src/x86_64_ingrasys_s9280_64x/module/src/x86_64_ingrasys_s9280_64x_config.c b/packages/platforms/ingrasys/x86-64/s9280-64x/onlp/builds/src/x86_64_ingrasys_s9280_64x/module/src/x86_64_ingrasys_s9280_64x_config.c index 63a1f4bb..b19b2c07 100755 --- a/packages/platforms/ingrasys/x86-64/s9280-64x/onlp/builds/src/x86_64_ingrasys_s9280_64x/module/src/x86_64_ingrasys_s9280_64x_config.c +++ b/packages/platforms/ingrasys/x86-64/s9280-64x/onlp/builds/src/x86_64_ingrasys_s9280_64x/module/src/x86_64_ingrasys_s9280_64x_config.c @@ -25,50 +25,45 @@ #include -/* */ +/* */ #define __x86_64_ingrasys_s9280_64x_config_STRINGIFY_NAME(_x) #_x #define __x86_64_ingrasys_s9280_64x_config_STRINGIFY_VALUE(_x) __x86_64_ingrasys_s9280_64x_config_STRINGIFY_NAME(_x) x86_64_ingrasys_s9280_64x_config_settings_t x86_64_ingrasys_s9280_64x_config_settings[] = { -#ifdef X86_64_INGRAYSYS_S9280_64X_CONFIG_INCLUDE_LOGGING - { __x86_64_ingrasys_s9280_64x_config_STRINGIFY_NAME(X86_64_INGRAYSYS_S9280_64X_CONFIG_INCLUDE_LOGGING), __x86_64_ingrasys_s9280_64x_config_STRINGIFY_VALUE(X86_64_INGRAYSYS_S9280_64X_CONFIG_INCLUDE_LOGGING) }, +#ifdef X86_64_INGRASYS_S9280_64X_CONFIG_INCLUDE_LOGGING + { __x86_64_ingrasys_s9280_64x_config_STRINGIFY_NAME(X86_64_INGRASYS_S9280_64X_CONFIG_INCLUDE_LOGGING), __x86_64_ingrasys_s9280_64x_config_STRINGIFY_VALUE(X86_64_INGRASYS_S9280_64X_CONFIG_INCLUDE_LOGGING) }, #else -{ X86_64_INGRAYSYS_S9280_64X_CONFIG_INCLUDE_LOGGING(__x86_64_ingrasys_s9280_64x_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INGRASYS_S9280_64X_CONFIG_INCLUDE_LOGGING(__x86_64_ingrasys_s9280_64x_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef X86_64_INGRAYSYS_S9280_64X_CONFIG_LOG_OPTIONS_DEFAULT - { __x86_64_ingrasys_s9280_64x_config_STRINGIFY_NAME(X86_64_INGRAYSYS_S9280_64X_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_ingrasys_s9280_64x_config_STRINGIFY_VALUE(X86_64_INGRAYSYS_S9280_64X_CONFIG_LOG_OPTIONS_DEFAULT) }, +#ifdef X86_64_INGRASYS_S9280_64X_CONFIG_LOG_OPTIONS_DEFAULT + { __x86_64_ingrasys_s9280_64x_config_STRINGIFY_NAME(X86_64_INGRASYS_S9280_64X_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_ingrasys_s9280_64x_config_STRINGIFY_VALUE(X86_64_INGRASYS_S9280_64X_CONFIG_LOG_OPTIONS_DEFAULT) }, #else -{ X86_64_INGRAYSYS_S9280_64X_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_ingrasys_s9280_64x_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INGRASYS_S9280_64X_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_ingrasys_s9280_64x_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef X86_64_INGRAYSYS_S9280_64X_CONFIG_LOG_BITS_DEFAULT - { __x86_64_ingrasys_s9280_64x_config_STRINGIFY_NAME(X86_64_INGRAYSYS_S9280_64X_CONFIG_LOG_BITS_DEFAULT), __x86_64_ingrasys_s9280_64x_config_STRINGIFY_VALUE(X86_64_INGRAYSYS_S9280_64X_CONFIG_LOG_BITS_DEFAULT) }, +#ifdef X86_64_INGRASYS_S9280_64X_CONFIG_LOG_BITS_DEFAULT + { __x86_64_ingrasys_s9280_64x_config_STRINGIFY_NAME(X86_64_INGRASYS_S9280_64X_CONFIG_LOG_BITS_DEFAULT), __x86_64_ingrasys_s9280_64x_config_STRINGIFY_VALUE(X86_64_INGRASYS_S9280_64X_CONFIG_LOG_BITS_DEFAULT) }, #else -{ X86_64_INGRAYSYS_S9280_64X_CONFIG_LOG_BITS_DEFAULT(__x86_64_ingrasys_s9280_64x_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INGRASYS_S9280_64X_CONFIG_LOG_BITS_DEFAULT(__x86_64_ingrasys_s9280_64x_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef X86_64_INGRAYSYS_S9280_64X_CONFIG_LOG_CUSTOM_BITS_DEFAULT - { __x86_64_ingrasys_s9280_64x_config_STRINGIFY_NAME(X86_64_INGRAYSYS_S9280_64X_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_ingrasys_s9280_64x_config_STRINGIFY_VALUE(X86_64_INGRAYSYS_S9280_64X_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, +#ifdef X86_64_INGRASYS_S9280_64X_CONFIG_LOG_CUSTOM_BITS_DEFAULT + { __x86_64_ingrasys_s9280_64x_config_STRINGIFY_NAME(X86_64_INGRASYS_S9280_64X_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_ingrasys_s9280_64x_config_STRINGIFY_VALUE(X86_64_INGRASYS_S9280_64X_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, #else -{ X86_64_INGRAYSYS_S9280_64X_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_ingrasys_s9280_64x_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INGRASYS_S9280_64X_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_ingrasys_s9280_64x_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef X86_64_INGRAYSYS_S9280_64X_CONFIG_PORTING_STDLIB - { __x86_64_ingrasys_s9280_64x_config_STRINGIFY_NAME(X86_64_INGRAYSYS_S9280_64X_CONFIG_PORTING_STDLIB), __x86_64_ingrasys_s9280_64x_config_STRINGIFY_VALUE(X86_64_INGRAYSYS_S9280_64X_CONFIG_PORTING_STDLIB) }, +#ifdef X86_64_INGRASYS_S9280_64X_CONFIG_PORTING_STDLIB + { __x86_64_ingrasys_s9280_64x_config_STRINGIFY_NAME(X86_64_INGRASYS_S9280_64X_CONFIG_PORTING_STDLIB), __x86_64_ingrasys_s9280_64x_config_STRINGIFY_VALUE(X86_64_INGRASYS_S9280_64X_CONFIG_PORTING_STDLIB) }, #else -{ X86_64_INGRAYSYS_S9280_64X_CONFIG_PORTING_STDLIB(__x86_64_ingrasys_s9280_64x_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INGRASYS_S9280_64X_CONFIG_PORTING_STDLIB(__x86_64_ingrasys_s9280_64x_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef X86_64_INGRAYSYS_S9280_64X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS - { __x86_64_ingrasys_s9280_64x_config_STRINGIFY_NAME(X86_64_INGRAYSYS_S9280_64X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_ingrasys_s9280_64x_config_STRINGIFY_VALUE(X86_64_INGRAYSYS_S9280_64X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, +#ifdef X86_64_INGRASYS_S9280_64X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + { __x86_64_ingrasys_s9280_64x_config_STRINGIFY_NAME(X86_64_INGRASYS_S9280_64X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_ingrasys_s9280_64x_config_STRINGIFY_VALUE(X86_64_INGRASYS_S9280_64X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, #else -{ X86_64_INGRAYSYS_S9280_64X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_ingrasys_s9280_64x_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INGRASYS_S9280_64X_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_ingrasys_s9280_64x_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef X86_64_INGRAYSYS_S9280_64X_CONFIG_INCLUDE_UCLI - { __x86_64_ingrasys_s9280_64x_config_STRINGIFY_NAME(X86_64_INGRAYSYS_S9280_64X_CONFIG_INCLUDE_UCLI), __x86_64_ingrasys_s9280_64x_config_STRINGIFY_VALUE(X86_64_INGRAYSYS_S9280_64X_CONFIG_INCLUDE_UCLI) }, +#ifdef X86_64_INGRASYS_S9280_64X_CONFIG_INCLUDE_UCLI + { __x86_64_ingrasys_s9280_64x_config_STRINGIFY_NAME(X86_64_INGRASYS_S9280_64X_CONFIG_INCLUDE_UCLI), __x86_64_ingrasys_s9280_64x_config_STRINGIFY_VALUE(X86_64_INGRASYS_S9280_64X_CONFIG_INCLUDE_UCLI) }, #else -{ X86_64_INGRAYSYS_S9280_64X_CONFIG_INCLUDE_UCLI(__x86_64_ingrasys_s9280_64x_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef X86_64_INGRAYSYS_S9280_64X_CONFIG_SFP_COUNT - { __x86_64_ingrasys_s9280_64x_config_STRINGIFY_NAME(X86_64_INGRAYSYS_S9280_64X_CONFIG_SFP_COUNT), __x86_64_ingrasys_s9280_64x_config_STRINGIFY_VALUE(X86_64_INGRAYSYS_S9280_64X_CONFIG_SFP_COUNT) }, -#else -{ X86_64_INGRAYSYS_S9280_64X_CONFIG_SFP_COUNT(__x86_64_ingrasys_s9280_64x_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INGRASYS_S9280_64X_CONFIG_INCLUDE_UCLI(__x86_64_ingrasys_s9280_64x_config_STRINGIFY_NAME), "__undefined__" }, #endif { NULL, NULL } }; @@ -80,7 +75,7 @@ x86_64_ingrasys_s9280_64x_config_lookup(const char* setting) { int i; for(i = 0; x86_64_ingrasys_s9280_64x_config_settings[i].name; i++) { - if(strcmp(x86_64_ingrasys_s9280_64x_config_settings[i].name, setting)) { + if(!strcmp(x86_64_ingrasys_s9280_64x_config_settings[i].name, setting)) { return x86_64_ingrasys_s9280_64x_config_settings[i].value; } } @@ -97,5 +92,5 @@ x86_64_ingrasys_s9280_64x_config_show(struct aim_pvs_s* pvs) return i; } -/* */ +/* */ diff --git a/packages/platforms/ingrasys/x86-64/s9280-64x/onlp/builds/src/x86_64_ingrasys_s9280_64x/module/src/x86_64_ingrasys_s9280_64x_log.c b/packages/platforms/ingrasys/x86-64/s9280-64x/onlp/builds/src/x86_64_ingrasys_s9280_64x/module/src/x86_64_ingrasys_s9280_64x_log.c index 821626db..63a2e73b 100755 --- a/packages/platforms/ingrasys/x86-64/s9280-64x/onlp/builds/src/x86_64_ingrasys_s9280_64x/module/src/x86_64_ingrasys_s9280_64x_log.c +++ b/packages/platforms/ingrasys/x86-64/s9280-64x/onlp/builds/src/x86_64_ingrasys_s9280_64x/module/src/x86_64_ingrasys_s9280_64x_log.c @@ -30,9 +30,9 @@ * x86_64_ingrasys_s9280_64x log struct. */ AIM_LOG_STRUCT_DEFINE( - X86_64_INGRAYSYS_S9280_64X_CONFIG_LOG_OPTIONS_DEFAULT, - X86_64_INGRAYSYS_S9280_64X_CONFIG_LOG_BITS_DEFAULT, + X86_64_INGRASYS_S9280_64X_CONFIG_LOG_OPTIONS_DEFAULT, + X86_64_INGRASYS_S9280_64X_CONFIG_LOG_BITS_DEFAULT, NULL, /* Custom log map */ - X86_64_INGRAYSYS_S9280_64X_CONFIG_LOG_CUSTOM_BITS_DEFAULT + X86_64_INGRASYS_S9280_64X_CONFIG_LOG_CUSTOM_BITS_DEFAULT ); diff --git a/packages/platforms/inventec/x86-64/d10056/onlp/builds/x86_64_inventec_d10056/Makefile b/packages/platforms/inventec/x86-64/d10056/onlp/builds/x86_64_inventec_d10056/Makefile index e7dba614..b6f57194 100644 --- a/packages/platforms/inventec/x86-64/d10056/onlp/builds/x86_64_inventec_d10056/Makefile +++ b/packages/platforms/inventec/x86-64/d10056/onlp/builds/x86_64_inventec_d10056/Makefile @@ -1,9 +1,9 @@ ############################################################################### # -# +# # ############################################################################### -include ../../init.mk +include $(ONL)/make/config.mk MODULE := x86_64_inventec_d10056 AUTOMODULE := x86_64_inventec_d10056 include $(BUILDER)/definemodule.mk diff --git a/packages/platforms/inventec/x86-64/d10056/onlp/builds/x86_64_inventec_d10056/module/auto/x86_64_inventec_d10056.yml b/packages/platforms/inventec/x86-64/d10056/onlp/builds/x86_64_inventec_d10056/module/auto/x86_64_inventec_d10056.yml index 382e2dbe..137e3057 100644 --- a/packages/platforms/inventec/x86-64/d10056/onlp/builds/x86_64_inventec_d10056/module/auto/x86_64_inventec_d10056.yml +++ b/packages/platforms/inventec/x86-64/d10056/onlp/builds/x86_64_inventec_d10056/module/auto/x86_64_inventec_d10056.yml @@ -5,35 +5,35 @@ ############################################################################### cdefs: &cdefs -- x86_64_inventec_d10056_CONFIG_INCLUDE_LOGGING: +- X86_64_INVENTEC_D10056_CONFIG_INCLUDE_LOGGING: doc: "Include or exclude logging." default: 1 -- x86_64_inventec_d10056_CONFIG_LOG_OPTIONS_DEFAULT: +- X86_64_INVENTEC_D10056_CONFIG_LOG_OPTIONS_DEFAULT: doc: "Default enabled log options." default: AIM_LOG_OPTIONS_DEFAULT -- x86_64_inventec_d10056_CONFIG_LOG_BITS_DEFAULT: +- X86_64_INVENTEC_D10056_CONFIG_LOG_BITS_DEFAULT: doc: "Default enabled log bits." default: AIM_LOG_BITS_DEFAULT -- x86_64_inventec_d10056_CONFIG_LOG_CUSTOM_BITS_DEFAULT: +- X86_64_INVENTEC_D10056_CONFIG_LOG_CUSTOM_BITS_DEFAULT: doc: "Default enabled custom log bits." default: 0 -- x86_64_inventec_d10056_CONFIG_PORTING_STDLIB: +- X86_64_INVENTEC_D10056_CONFIG_PORTING_STDLIB: doc: "Default all porting macros to use the C standard libraries." default: 1 -- x86_64_inventec_d10056_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS: +- X86_64_INVENTEC_D10056_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS: doc: "Include standard library headers for stdlib porting macros." - default: x86_64_inventec_d10056_CONFIG_PORTING_STDLIB -- x86_64_inventec_d10056_CONFIG_INCLUDE_UCLI: + default: X86_64_INVENTEC_D10056_CONFIG_PORTING_STDLIB +- X86_64_INVENTEC_D10056_CONFIG_INCLUDE_UCLI: doc: "Include generic uCli support." default: 0 -- x86_64_inventec_d10056_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION: +- X86_64_INVENTEC_D10056_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION: doc: "Assume chassis fan direction is the same as the PSU fan direction." default: 0 definitions: cdefs: - x86_64_inventec_d10056_CONFIG_HEADER: + X86_64_INVENTEC_D10056_CONFIG_HEADER: defs: *cdefs basename: x86_64_inventec_d10056_config diff --git a/packages/platforms/inventec/x86-64/d10056/onlp/builds/x86_64_inventec_d10056/module/inc/x86_64_inventec_d10056/x86_64_inventec_d10056_config.h b/packages/platforms/inventec/x86-64/d10056/onlp/builds/x86_64_inventec_d10056/module/inc/x86_64_inventec_d10056/x86_64_inventec_d10056_config.h index 10376704..9559f648 100644 --- a/packages/platforms/inventec/x86-64/d10056/onlp/builds/x86_64_inventec_d10056/module/inc/x86_64_inventec_d10056/x86_64_inventec_d10056_config.h +++ b/packages/platforms/inventec/x86-64/d10056/onlp/builds/x86_64_inventec_d10056/module/inc/x86_64_inventec_d10056/x86_64_inventec_d10056_config.h @@ -7,8 +7,8 @@ * @{ * *****************************************************************************/ -#ifndef __x86_64_inventec_d10056_CONFIG_H__ -#define __x86_64_inventec_d10056_CONFIG_H__ +#ifndef __X86_64_INVENTEC_D10056_CONFIG_H__ +#define __X86_64_INVENTEC_D10056_CONFIG_H__ #ifdef GLOBAL_INCLUDE_CUSTOM_CONFIG #include @@ -17,86 +17,86 @@ #include #endif -/* */ +/* */ #include /** - * x86_64_inventec_d10056_CONFIG_INCLUDE_LOGGING + * X86_64_INVENTEC_D10056_CONFIG_INCLUDE_LOGGING * * Include or exclude logging. */ -#ifndef x86_64_inventec_d10056_CONFIG_INCLUDE_LOGGING -#define x86_64_inventec_d10056_CONFIG_INCLUDE_LOGGING 1 +#ifndef X86_64_INVENTEC_D10056_CONFIG_INCLUDE_LOGGING +#define X86_64_INVENTEC_D10056_CONFIG_INCLUDE_LOGGING 1 #endif /** - * x86_64_inventec_d10056_CONFIG_LOG_OPTIONS_DEFAULT + * X86_64_INVENTEC_D10056_CONFIG_LOG_OPTIONS_DEFAULT * * Default enabled log options. */ -#ifndef x86_64_inventec_d10056_CONFIG_LOG_OPTIONS_DEFAULT -#define x86_64_inventec_d10056_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT +#ifndef X86_64_INVENTEC_D10056_CONFIG_LOG_OPTIONS_DEFAULT +#define X86_64_INVENTEC_D10056_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT #endif /** - * x86_64_inventec_d10056_CONFIG_LOG_BITS_DEFAULT + * X86_64_INVENTEC_D10056_CONFIG_LOG_BITS_DEFAULT * * Default enabled log bits. */ -#ifndef x86_64_inventec_d10056_CONFIG_LOG_BITS_DEFAULT -#define x86_64_inventec_d10056_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT +#ifndef X86_64_INVENTEC_D10056_CONFIG_LOG_BITS_DEFAULT +#define X86_64_INVENTEC_D10056_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT #endif /** - * x86_64_inventec_d10056_CONFIG_LOG_CUSTOM_BITS_DEFAULT + * X86_64_INVENTEC_D10056_CONFIG_LOG_CUSTOM_BITS_DEFAULT * * Default enabled custom log bits. */ -#ifndef x86_64_inventec_d10056_CONFIG_LOG_CUSTOM_BITS_DEFAULT -#define x86_64_inventec_d10056_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 +#ifndef X86_64_INVENTEC_D10056_CONFIG_LOG_CUSTOM_BITS_DEFAULT +#define X86_64_INVENTEC_D10056_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 #endif /** - * x86_64_inventec_d10056_CONFIG_PORTING_STDLIB + * X86_64_INVENTEC_D10056_CONFIG_PORTING_STDLIB * * Default all porting macros to use the C standard libraries. */ -#ifndef x86_64_inventec_d10056_CONFIG_PORTING_STDLIB -#define x86_64_inventec_d10056_CONFIG_PORTING_STDLIB 1 +#ifndef X86_64_INVENTEC_D10056_CONFIG_PORTING_STDLIB +#define X86_64_INVENTEC_D10056_CONFIG_PORTING_STDLIB 1 #endif /** - * x86_64_inventec_d10056_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + * X86_64_INVENTEC_D10056_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS * * Include standard library headers for stdlib porting macros. */ -#ifndef x86_64_inventec_d10056_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS -#define x86_64_inventec_d10056_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS x86_64_inventec_d10056_CONFIG_PORTING_STDLIB +#ifndef X86_64_INVENTEC_D10056_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS +#define X86_64_INVENTEC_D10056_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS X86_64_INVENTEC_D10056_CONFIG_PORTING_STDLIB #endif /** - * x86_64_inventec_d10056_CONFIG_INCLUDE_UCLI + * X86_64_INVENTEC_D10056_CONFIG_INCLUDE_UCLI * * Include generic uCli support. */ -#ifndef x86_64_inventec_d10056_CONFIG_INCLUDE_UCLI -#define x86_64_inventec_d10056_CONFIG_INCLUDE_UCLI 0 +#ifndef X86_64_INVENTEC_D10056_CONFIG_INCLUDE_UCLI +#define X86_64_INVENTEC_D10056_CONFIG_INCLUDE_UCLI 0 #endif /** - * x86_64_inventec_d10056_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION + * X86_64_INVENTEC_D10056_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION * * Assume chassis fan direction is the same as the PSU fan direction. */ -#ifndef x86_64_inventec_d10056_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION -#define x86_64_inventec_d10056_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION 0 +#ifndef X86_64_INVENTEC_D10056_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION +#define X86_64_INVENTEC_D10056_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION 0 #endif @@ -129,9 +129,9 @@ const char* x86_64_inventec_d10056_config_lookup(const char* setting); */ int x86_64_inventec_d10056_config_show(struct aim_pvs_s* pvs); -/* */ +/* */ #include "x86_64_inventec_d10056_porting.h" -#endif /* __x86_64_inventec_d10056_CONFIG_H__ */ +#endif /* __X86_64_INVENTEC_D10056_CONFIG_H__ */ /* @} */ diff --git a/packages/platforms/inventec/x86-64/d10056/onlp/builds/x86_64_inventec_d10056/module/inc/x86_64_inventec_d10056/x86_64_inventec_d10056_porting.h b/packages/platforms/inventec/x86-64/d10056/onlp/builds/x86_64_inventec_d10056/module/inc/x86_64_inventec_d10056/x86_64_inventec_d10056_porting.h index a4a2e9df..b690418b 100644 --- a/packages/platforms/inventec/x86-64/d10056/onlp/builds/x86_64_inventec_d10056/module/inc/x86_64_inventec_d10056/x86_64_inventec_d10056_porting.h +++ b/packages/platforms/inventec/x86-64/d10056/onlp/builds/x86_64_inventec_d10056/module/inc/x86_64_inventec_d10056/x86_64_inventec_d10056_porting.h @@ -12,7 +12,7 @@ /* */ -#if x86_64_inventec_d10056_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 +#if X86_64_INVENTEC_D10056_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 #include #include #include @@ -20,83 +20,83 @@ #include #endif -#ifndef x86_64_inventec_d10056_MALLOC +#ifndef X86_64_INVENTEC_D10056_MALLOC #if defined(GLOBAL_MALLOC) - #define x86_64_inventec_d10056_MALLOC GLOBAL_MALLOC - #elif x86_64_inventec_d10056_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d10056_MALLOC malloc + #define X86_64_INVENTEC_D10056_MALLOC GLOBAL_MALLOC + #elif X86_64_INVENTEC_D10056_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D10056_MALLOC malloc #else - #error The macro x86_64_inventec_d10056_MALLOC is required but cannot be defined. + #error The macro X86_64_INVENTEC_D10056_MALLOC is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d10056_FREE +#ifndef X86_64_INVENTEC_D10056_FREE #if defined(GLOBAL_FREE) - #define x86_64_inventec_d10056_FREE GLOBAL_FREE - #elif x86_64_inventec_d10056_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d10056_FREE free + #define X86_64_INVENTEC_D10056_FREE GLOBAL_FREE + #elif X86_64_INVENTEC_D10056_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D10056_FREE free #else - #error The macro x86_64_inventec_d10056_FREE is required but cannot be defined. + #error The macro X86_64_INVENTEC_D10056_FREE is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d10056_MEMSET +#ifndef X86_64_INVENTEC_D10056_MEMSET #if defined(GLOBAL_MEMSET) - #define x86_64_inventec_d10056_MEMSET GLOBAL_MEMSET - #elif x86_64_inventec_d10056_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d10056_MEMSET memset + #define X86_64_INVENTEC_D10056_MEMSET GLOBAL_MEMSET + #elif X86_64_INVENTEC_D10056_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D10056_MEMSET memset #else - #error The macro x86_64_inventec_d10056_MEMSET is required but cannot be defined. + #error The macro X86_64_INVENTEC_D10056_MEMSET is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d10056_MEMCPY +#ifndef X86_64_INVENTEC_D10056_MEMCPY #if defined(GLOBAL_MEMCPY) - #define x86_64_inventec_d10056_MEMCPY GLOBAL_MEMCPY - #elif x86_64_inventec_d10056_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d10056_MEMCPY memcpy + #define X86_64_INVENTEC_D10056_MEMCPY GLOBAL_MEMCPY + #elif X86_64_INVENTEC_D10056_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D10056_MEMCPY memcpy #else - #error The macro x86_64_inventec_d10056_MEMCPY is required but cannot be defined. + #error The macro X86_64_INVENTEC_D10056_MEMCPY is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d10056_STRNCPY +#ifndef X86_64_INVENTEC_D10056_STRNCPY #if defined(GLOBAL_STRNCPY) - #define x86_64_inventec_d10056_STRNCPY GLOBAL_STRNCPY - #elif x86_64_inventec_d10056_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d10056_STRNCPY strncpy + #define X86_64_INVENTEC_D10056_STRNCPY GLOBAL_STRNCPY + #elif X86_64_INVENTEC_D10056_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D10056_STRNCPY strncpy #else - #error The macro x86_64_inventec_d10056_STRNCPY is required but cannot be defined. + #error The macro X86_64_INVENTEC_D10056_STRNCPY is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d10056_VSNPRINTF +#ifndef X86_64_INVENTEC_D10056_VSNPRINTF #if defined(GLOBAL_VSNPRINTF) - #define x86_64_inventec_d10056_VSNPRINTF GLOBAL_VSNPRINTF - #elif x86_64_inventec_d10056_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d10056_VSNPRINTF vsnprintf + #define X86_64_INVENTEC_D10056_VSNPRINTF GLOBAL_VSNPRINTF + #elif X86_64_INVENTEC_D10056_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D10056_VSNPRINTF vsnprintf #else - #error The macro x86_64_inventec_d10056_VSNPRINTF is required but cannot be defined. + #error The macro X86_64_INVENTEC_D10056_VSNPRINTF is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d10056_SNPRINTF +#ifndef X86_64_INVENTEC_D10056_SNPRINTF #if defined(GLOBAL_SNPRINTF) - #define x86_64_inventec_d10056_SNPRINTF GLOBAL_SNPRINTF - #elif x86_64_inventec_d10056_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d10056_SNPRINTF snprintf + #define X86_64_INVENTEC_D10056_SNPRINTF GLOBAL_SNPRINTF + #elif X86_64_INVENTEC_D10056_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D10056_SNPRINTF snprintf #else - #error The macro x86_64_inventec_d10056_SNPRINTF is required but cannot be defined. + #error The macro X86_64_INVENTEC_D10056_SNPRINTF is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d10056_STRLEN +#ifndef X86_64_INVENTEC_D10056_STRLEN #if defined(GLOBAL_STRLEN) - #define x86_64_inventec_d10056_STRLEN GLOBAL_STRLEN - #elif x86_64_inventec_d10056_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d10056_STRLEN strlen + #define X86_64_INVENTEC_D10056_STRLEN GLOBAL_STRLEN + #elif X86_64_INVENTEC_D10056_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D10056_STRLEN strlen #else - #error The macro x86_64_inventec_d10056_STRLEN is required but cannot be defined. + #error The macro X86_64_INVENTEC_D10056_STRLEN is required but cannot be defined. #endif #endif diff --git a/packages/platforms/inventec/x86-64/d10056/onlp/builds/x86_64_inventec_d10056/module/src/debug.c b/packages/platforms/inventec/x86-64/d10056/onlp/builds/x86_64_inventec_d10056/module/src/debug.c index 567afff5..587232c0 100644 --- a/packages/platforms/inventec/x86-64/d10056/onlp/builds/x86_64_inventec_d10056/module/src/debug.c +++ b/packages/platforms/inventec/x86-64/d10056/onlp/builds/x86_64_inventec_d10056/module/src/debug.c @@ -1,6 +1,6 @@ #include "x86_64_inventec_d10056_int.h" -#if x86_64_inventec_d10056_CONFIG_INCLUDE_DEBUG == 1 +#if X86_64_INVENTEC_D10056_CONFIG_INCLUDE_DEBUG == 1 #include diff --git a/packages/platforms/inventec/x86-64/d10056/onlp/builds/x86_64_inventec_d10056/module/src/x86_64_inventec_d10056_config.c b/packages/platforms/inventec/x86-64/d10056/onlp/builds/x86_64_inventec_d10056/module/src/x86_64_inventec_d10056_config.c index 3768cfe5..49782996 100644 --- a/packages/platforms/inventec/x86-64/d10056/onlp/builds/x86_64_inventec_d10056/module/src/x86_64_inventec_d10056_config.c +++ b/packages/platforms/inventec/x86-64/d10056/onlp/builds/x86_64_inventec_d10056/module/src/x86_64_inventec_d10056_config.c @@ -5,50 +5,50 @@ *****************************************************************************/ #include -/* */ +/* */ #define __x86_64_inventec_d10056_config_STRINGIFY_NAME(_x) #_x #define __x86_64_inventec_d10056_config_STRINGIFY_VALUE(_x) __x86_64_inventec_d10056_config_STRINGIFY_NAME(_x) x86_64_inventec_d10056_config_settings_t x86_64_inventec_d10056_config_settings[] = { -#ifdef x86_64_inventec_d10056_CONFIG_INCLUDE_LOGGING - { __x86_64_inventec_d10056_config_STRINGIFY_NAME(x86_64_inventec_d10056_CONFIG_INCLUDE_LOGGING), __x86_64_inventec_d10056_config_STRINGIFY_VALUE(x86_64_inventec_d10056_CONFIG_INCLUDE_LOGGING) }, +#ifdef X86_64_INVENTEC_D10056_CONFIG_INCLUDE_LOGGING + { __x86_64_inventec_d10056_config_STRINGIFY_NAME(X86_64_INVENTEC_D10056_CONFIG_INCLUDE_LOGGING), __x86_64_inventec_d10056_config_STRINGIFY_VALUE(X86_64_INVENTEC_D10056_CONFIG_INCLUDE_LOGGING) }, #else -{ x86_64_inventec_d10056_CONFIG_INCLUDE_LOGGING(__x86_64_inventec_d10056_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D10056_CONFIG_INCLUDE_LOGGING(__x86_64_inventec_d10056_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d10056_CONFIG_LOG_OPTIONS_DEFAULT - { __x86_64_inventec_d10056_config_STRINGIFY_NAME(x86_64_inventec_d10056_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_inventec_d10056_config_STRINGIFY_VALUE(x86_64_inventec_d10056_CONFIG_LOG_OPTIONS_DEFAULT) }, +#ifdef X86_64_INVENTEC_D10056_CONFIG_LOG_OPTIONS_DEFAULT + { __x86_64_inventec_d10056_config_STRINGIFY_NAME(X86_64_INVENTEC_D10056_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_inventec_d10056_config_STRINGIFY_VALUE(X86_64_INVENTEC_D10056_CONFIG_LOG_OPTIONS_DEFAULT) }, #else -{ x86_64_inventec_d10056_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_inventec_d10056_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D10056_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_inventec_d10056_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d10056_CONFIG_LOG_BITS_DEFAULT - { __x86_64_inventec_d10056_config_STRINGIFY_NAME(x86_64_inventec_d10056_CONFIG_LOG_BITS_DEFAULT), __x86_64_inventec_d10056_config_STRINGIFY_VALUE(x86_64_inventec_d10056_CONFIG_LOG_BITS_DEFAULT) }, +#ifdef X86_64_INVENTEC_D10056_CONFIG_LOG_BITS_DEFAULT + { __x86_64_inventec_d10056_config_STRINGIFY_NAME(X86_64_INVENTEC_D10056_CONFIG_LOG_BITS_DEFAULT), __x86_64_inventec_d10056_config_STRINGIFY_VALUE(X86_64_INVENTEC_D10056_CONFIG_LOG_BITS_DEFAULT) }, #else -{ x86_64_inventec_d10056_CONFIG_LOG_BITS_DEFAULT(__x86_64_inventec_d10056_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D10056_CONFIG_LOG_BITS_DEFAULT(__x86_64_inventec_d10056_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d10056_CONFIG_LOG_CUSTOM_BITS_DEFAULT - { __x86_64_inventec_d10056_config_STRINGIFY_NAME(x86_64_inventec_d10056_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_inventec_d10056_config_STRINGIFY_VALUE(x86_64_inventec_d10056_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, +#ifdef X86_64_INVENTEC_D10056_CONFIG_LOG_CUSTOM_BITS_DEFAULT + { __x86_64_inventec_d10056_config_STRINGIFY_NAME(X86_64_INVENTEC_D10056_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_inventec_d10056_config_STRINGIFY_VALUE(X86_64_INVENTEC_D10056_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, #else -{ x86_64_inventec_d10056_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_inventec_d10056_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D10056_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_inventec_d10056_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d10056_CONFIG_PORTING_STDLIB - { __x86_64_inventec_d10056_config_STRINGIFY_NAME(x86_64_inventec_d10056_CONFIG_PORTING_STDLIB), __x86_64_inventec_d10056_config_STRINGIFY_VALUE(x86_64_inventec_d10056_CONFIG_PORTING_STDLIB) }, +#ifdef X86_64_INVENTEC_D10056_CONFIG_PORTING_STDLIB + { __x86_64_inventec_d10056_config_STRINGIFY_NAME(X86_64_INVENTEC_D10056_CONFIG_PORTING_STDLIB), __x86_64_inventec_d10056_config_STRINGIFY_VALUE(X86_64_INVENTEC_D10056_CONFIG_PORTING_STDLIB) }, #else -{ x86_64_inventec_d10056_CONFIG_PORTING_STDLIB(__x86_64_inventec_d10056_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D10056_CONFIG_PORTING_STDLIB(__x86_64_inventec_d10056_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d10056_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS - { __x86_64_inventec_d10056_config_STRINGIFY_NAME(x86_64_inventec_d10056_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_inventec_d10056_config_STRINGIFY_VALUE(x86_64_inventec_d10056_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, +#ifdef X86_64_INVENTEC_D10056_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + { __x86_64_inventec_d10056_config_STRINGIFY_NAME(X86_64_INVENTEC_D10056_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_inventec_d10056_config_STRINGIFY_VALUE(X86_64_INVENTEC_D10056_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, #else -{ x86_64_inventec_d10056_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_inventec_d10056_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D10056_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_inventec_d10056_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d10056_CONFIG_INCLUDE_UCLI - { __x86_64_inventec_d10056_config_STRINGIFY_NAME(x86_64_inventec_d10056_CONFIG_INCLUDE_UCLI), __x86_64_inventec_d10056_config_STRINGIFY_VALUE(x86_64_inventec_d10056_CONFIG_INCLUDE_UCLI) }, +#ifdef X86_64_INVENTEC_D10056_CONFIG_INCLUDE_UCLI + { __x86_64_inventec_d10056_config_STRINGIFY_NAME(X86_64_INVENTEC_D10056_CONFIG_INCLUDE_UCLI), __x86_64_inventec_d10056_config_STRINGIFY_VALUE(X86_64_INVENTEC_D10056_CONFIG_INCLUDE_UCLI) }, #else -{ x86_64_inventec_d10056_CONFIG_INCLUDE_UCLI(__x86_64_inventec_d10056_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D10056_CONFIG_INCLUDE_UCLI(__x86_64_inventec_d10056_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d10056_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION - { __x86_64_inventec_d10056_config_STRINGIFY_NAME(x86_64_inventec_d10056_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __x86_64_inventec_d10056_config_STRINGIFY_VALUE(x86_64_inventec_d10056_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, +#ifdef X86_64_INVENTEC_D10056_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION + { __x86_64_inventec_d10056_config_STRINGIFY_NAME(X86_64_INVENTEC_D10056_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __x86_64_inventec_d10056_config_STRINGIFY_VALUE(X86_64_INVENTEC_D10056_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, #else -{ x86_64_inventec_d10056_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__x86_64_inventec_d10056_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D10056_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__x86_64_inventec_d10056_config_STRINGIFY_NAME), "__undefined__" }, #endif { NULL, NULL } }; @@ -60,7 +60,7 @@ x86_64_inventec_d10056_config_lookup(const char* setting) { int i; for(i = 0; x86_64_inventec_d10056_config_settings[i].name; i++) { - if(strcmp(x86_64_inventec_d10056_config_settings[i].name, setting)) { + if(!strcmp(x86_64_inventec_d10056_config_settings[i].name, setting)) { return x86_64_inventec_d10056_config_settings[i].value; } } @@ -77,5 +77,5 @@ x86_64_inventec_d10056_config_show(struct aim_pvs_s* pvs) return i; } -/* */ +/* */ diff --git a/packages/platforms/inventec/x86-64/d10056/onlp/builds/x86_64_inventec_d10056/module/src/x86_64_inventec_d10056_log.c b/packages/platforms/inventec/x86-64/d10056/onlp/builds/x86_64_inventec_d10056/module/src/x86_64_inventec_d10056_log.c index 080f9661..9299b369 100644 --- a/packages/platforms/inventec/x86-64/d10056/onlp/builds/x86_64_inventec_d10056/module/src/x86_64_inventec_d10056_log.c +++ b/packages/platforms/inventec/x86-64/d10056/onlp/builds/x86_64_inventec_d10056/module/src/x86_64_inventec_d10056_log.c @@ -10,9 +10,9 @@ * x86_64_inventec_d10056 log struct. */ AIM_LOG_STRUCT_DEFINE( - x86_64_inventec_d10056_CONFIG_LOG_OPTIONS_DEFAULT, - x86_64_inventec_d10056_CONFIG_LOG_BITS_DEFAULT, + X86_64_INVENTEC_D10056_CONFIG_LOG_OPTIONS_DEFAULT, + X86_64_INVENTEC_D10056_CONFIG_LOG_BITS_DEFAULT, NULL, /* Custom log map */ - x86_64_inventec_d10056_CONFIG_LOG_CUSTOM_BITS_DEFAULT + X86_64_INVENTEC_D10056_CONFIG_LOG_CUSTOM_BITS_DEFAULT ); diff --git a/packages/platforms/inventec/x86-64/d10056/onlp/builds/x86_64_inventec_d10056/module/src/x86_64_inventec_d10056_ucli.c b/packages/platforms/inventec/x86-64/d10056/onlp/builds/x86_64_inventec_d10056/module/src/x86_64_inventec_d10056_ucli.c index e53a9c66..58306a66 100644 --- a/packages/platforms/inventec/x86-64/d10056/onlp/builds/x86_64_inventec_d10056/module/src/x86_64_inventec_d10056_ucli.c +++ b/packages/platforms/inventec/x86-64/d10056/onlp/builds/x86_64_inventec_d10056/module/src/x86_64_inventec_d10056_ucli.c @@ -5,7 +5,7 @@ *****************************************************************************/ #include -#if x86_64_inventec_d10056_CONFIG_INCLUDE_UCLI == 1 +#if X86_64_INVENTEC_D10056_CONFIG_INCLUDE_UCLI == 1 #include #include diff --git a/packages/platforms/inventec/x86-64/d10064/modules/Makefile b/packages/platforms/inventec/x86-64/d10064/modules/Makefile deleted file mode 120000 index ec172d65..00000000 --- a/packages/platforms/inventec/x86-64/d10064/modules/Makefile +++ /dev/null @@ -1 +0,0 @@ -../x86-64-inventec-d5264q28b/modules/Makefile \ No newline at end of file diff --git a/packages/platforms/inventec/x86-64/d10064/modules/Makefile b/packages/platforms/inventec/x86-64/d10064/modules/Makefile new file mode 100644 index 00000000..003238cf --- /dev/null +++ b/packages/platforms/inventec/x86-64/d10064/modules/Makefile @@ -0,0 +1 @@ +include $(ONL)/make/pkg.mk \ No newline at end of file diff --git a/packages/platforms/inventec/x86-64/d10064/onlp/Makefile b/packages/platforms/inventec/x86-64/d10064/onlp/Makefile deleted file mode 120000 index d70323e9..00000000 --- a/packages/platforms/inventec/x86-64/d10064/onlp/Makefile +++ /dev/null @@ -1 +0,0 @@ -../../x86-64-inventec-d5264q28b/onlp/Makefile \ No newline at end of file diff --git a/packages/platforms/inventec/x86-64/d10064/onlp/Makefile b/packages/platforms/inventec/x86-64/d10064/onlp/Makefile new file mode 100644 index 00000000..dc1e7b86 --- /dev/null +++ b/packages/platforms/inventec/x86-64/d10064/onlp/Makefile @@ -0,0 +1 @@ +include $(ONL)/make/pkg.mk diff --git a/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/Makefile b/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/Makefile index fdfc6566..f6c464d4 100644 --- a/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/Makefile +++ b/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/Makefile @@ -1,9 +1,9 @@ ############################################################################### # -# +# # ############################################################################### -include ../../init.mk +include $(ONL)/make/config.mk MODULE := x86_64_inventec_d10064 AUTOMODULE := x86_64_inventec_d10064 include $(BUILDER)/definemodule.mk diff --git a/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/auto/x86_64_inventec_d10064.yml b/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/auto/x86_64_inventec_d10064.yml index 6788797f..86fd7ab4 100644 --- a/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/auto/x86_64_inventec_d10064.yml +++ b/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/auto/x86_64_inventec_d10064.yml @@ -5,35 +5,35 @@ ############################################################################### cdefs: &cdefs -- x86_64_inventec_d10064_CONFIG_INCLUDE_LOGGING: +- X86_64_INVENTEC_D10064_CONFIG_INCLUDE_LOGGING: doc: "Include or exclude logging." default: 1 -- x86_64_inventec_d10064_CONFIG_LOG_OPTIONS_DEFAULT: +- X86_64_INVENTEC_D10064_CONFIG_LOG_OPTIONS_DEFAULT: doc: "Default enabled log options." default: AIM_LOG_OPTIONS_DEFAULT -- x86_64_inventec_d10064_CONFIG_LOG_BITS_DEFAULT: +- X86_64_INVENTEC_D10064_CONFIG_LOG_BITS_DEFAULT: doc: "Default enabled log bits." default: AIM_LOG_BITS_DEFAULT -- x86_64_inventec_d10064_CONFIG_LOG_CUSTOM_BITS_DEFAULT: +- X86_64_INVENTEC_D10064_CONFIG_LOG_CUSTOM_BITS_DEFAULT: doc: "Default enabled custom log bits." default: 0 -- x86_64_inventec_d10064_CONFIG_PORTING_STDLIB: +- X86_64_INVENTEC_D10064_CONFIG_PORTING_STDLIB: doc: "Default all porting macros to use the C standard libraries." default: 1 -- x86_64_inventec_d10064_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS: +- X86_64_INVENTEC_D10064_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS: doc: "Include standard library headers for stdlib porting macros." - default: x86_64_inventec_d10064_CONFIG_PORTING_STDLIB -- x86_64_inventec_d10064_CONFIG_INCLUDE_UCLI: + default: X86_64_INVENTEC_D10064_CONFIG_PORTING_STDLIB +- X86_64_INVENTEC_D10064_CONFIG_INCLUDE_UCLI: doc: "Include generic uCli support." default: 0 -- x86_64_inventec_d10064_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION: +- X86_64_INVENTEC_D10064_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION: doc: "Assume chassis fan direction is the same as the PSU fan direction." default: 0 definitions: cdefs: - x86_64_inventec_d10064_CONFIG_HEADER: + X86_64_INVENTEC_D10064_CONFIG_HEADER: defs: *cdefs basename: x86_64_inventec_d10064_config diff --git a/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/inc/x86_64_inventec_d10064/x86_64_inventec_d10064_config.h b/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/inc/x86_64_inventec_d10064/x86_64_inventec_d10064_config.h index fd72d20f..565e3b2f 100644 --- a/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/inc/x86_64_inventec_d10064/x86_64_inventec_d10064_config.h +++ b/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/inc/x86_64_inventec_d10064/x86_64_inventec_d10064_config.h @@ -7,8 +7,8 @@ * @{ * *****************************************************************************/ -#ifndef __x86_64_inventec_d10064_CONFIG_H__ -#define __x86_64_inventec_d10064_CONFIG_H__ +#ifndef __X86_64_INVENTEC_D10064_CONFIG_H__ +#define __X86_64_INVENTEC_D10064_CONFIG_H__ #ifdef GLOBAL_INCLUDE_CUSTOM_CONFIG #include @@ -17,86 +17,86 @@ #include #endif -/* */ +/* */ #include /** - * x86_64_inventec_d10064_CONFIG_INCLUDE_LOGGING + * X86_64_INVENTEC_D10064_CONFIG_INCLUDE_LOGGING * * Include or exclude logging. */ -#ifndef x86_64_inventec_d10064_CONFIG_INCLUDE_LOGGING -#define x86_64_inventec_d10064_CONFIG_INCLUDE_LOGGING 1 +#ifndef X86_64_INVENTEC_D10064_CONFIG_INCLUDE_LOGGING +#define X86_64_INVENTEC_D10064_CONFIG_INCLUDE_LOGGING 1 #endif /** - * x86_64_inventec_d10064_CONFIG_LOG_OPTIONS_DEFAULT + * X86_64_INVENTEC_D10064_CONFIG_LOG_OPTIONS_DEFAULT * * Default enabled log options. */ -#ifndef x86_64_inventec_d10064_CONFIG_LOG_OPTIONS_DEFAULT -#define x86_64_inventec_d10064_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT +#ifndef X86_64_INVENTEC_D10064_CONFIG_LOG_OPTIONS_DEFAULT +#define X86_64_INVENTEC_D10064_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT #endif /** - * x86_64_inventec_d10064_CONFIG_LOG_BITS_DEFAULT + * X86_64_INVENTEC_D10064_CONFIG_LOG_BITS_DEFAULT * * Default enabled log bits. */ -#ifndef x86_64_inventec_d10064_CONFIG_LOG_BITS_DEFAULT -#define x86_64_inventec_d10064_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT +#ifndef X86_64_INVENTEC_D10064_CONFIG_LOG_BITS_DEFAULT +#define X86_64_INVENTEC_D10064_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT #endif /** - * x86_64_inventec_d10064_CONFIG_LOG_CUSTOM_BITS_DEFAULT + * X86_64_INVENTEC_D10064_CONFIG_LOG_CUSTOM_BITS_DEFAULT * * Default enabled custom log bits. */ -#ifndef x86_64_inventec_d10064_CONFIG_LOG_CUSTOM_BITS_DEFAULT -#define x86_64_inventec_d10064_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 +#ifndef X86_64_INVENTEC_D10064_CONFIG_LOG_CUSTOM_BITS_DEFAULT +#define X86_64_INVENTEC_D10064_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 #endif /** - * x86_64_inventec_d10064_CONFIG_PORTING_STDLIB + * X86_64_INVENTEC_D10064_CONFIG_PORTING_STDLIB * * Default all porting macros to use the C standard libraries. */ -#ifndef x86_64_inventec_d10064_CONFIG_PORTING_STDLIB -#define x86_64_inventec_d10064_CONFIG_PORTING_STDLIB 1 +#ifndef X86_64_INVENTEC_D10064_CONFIG_PORTING_STDLIB +#define X86_64_INVENTEC_D10064_CONFIG_PORTING_STDLIB 1 #endif /** - * x86_64_inventec_d10064_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + * X86_64_INVENTEC_D10064_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS * * Include standard library headers for stdlib porting macros. */ -#ifndef x86_64_inventec_d10064_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS -#define x86_64_inventec_d10064_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS x86_64_inventec_d10064_CONFIG_PORTING_STDLIB +#ifndef X86_64_INVENTEC_D10064_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS +#define X86_64_INVENTEC_D10064_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS X86_64_INVENTEC_D10064_CONFIG_PORTING_STDLIB #endif /** - * x86_64_inventec_d10064_CONFIG_INCLUDE_UCLI + * X86_64_INVENTEC_D10064_CONFIG_INCLUDE_UCLI * * Include generic uCli support. */ -#ifndef x86_64_inventec_d10064_CONFIG_INCLUDE_UCLI -#define x86_64_inventec_d10064_CONFIG_INCLUDE_UCLI 0 +#ifndef X86_64_INVENTEC_D10064_CONFIG_INCLUDE_UCLI +#define X86_64_INVENTEC_D10064_CONFIG_INCLUDE_UCLI 0 #endif /** - * x86_64_inventec_d10064_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION + * X86_64_INVENTEC_D10064_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION * * Assume chassis fan direction is the same as the PSU fan direction. */ -#ifndef x86_64_inventec_d10064_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION -#define x86_64_inventec_d10064_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION 0 +#ifndef X86_64_INVENTEC_D10064_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION +#define X86_64_INVENTEC_D10064_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION 0 #endif @@ -129,9 +129,9 @@ const char* x86_64_inventec_d10064_config_lookup(const char* setting); */ int x86_64_inventec_d10064_config_show(struct aim_pvs_s* pvs); -/* */ +/* */ #include "x86_64_inventec_d10064_porting.h" -#endif /* __x86_64_inventec_d10064_CONFIG_H__ */ +#endif /* __X86_64_INVENTEC_D10064_CONFIG_H__ */ /* @} */ diff --git a/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/inc/x86_64_inventec_d10064/x86_64_inventec_d10064_porting.h b/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/inc/x86_64_inventec_d10064/x86_64_inventec_d10064_porting.h index 5f1fb0b6..35745548 100644 --- a/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/inc/x86_64_inventec_d10064/x86_64_inventec_d10064_porting.h +++ b/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/inc/x86_64_inventec_d10064/x86_64_inventec_d10064_porting.h @@ -12,7 +12,7 @@ /* */ -#if x86_64_inventec_d10064_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 +#if X86_64_INVENTEC_D10064_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 #include #include #include @@ -20,83 +20,83 @@ #include #endif -#ifndef x86_64_inventec_d10064_MALLOC +#ifndef X86_64_INVENTEC_D10064_MALLOC #if defined(GLOBAL_MALLOC) - #define x86_64_inventec_d10064_MALLOC GLOBAL_MALLOC - #elif x86_64_inventec_d10064_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d10064_MALLOC malloc + #define X86_64_INVENTEC_D10064_MALLOC GLOBAL_MALLOC + #elif X86_64_INVENTEC_D10064_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D10064_MALLOC malloc #else - #error The macro x86_64_inventec_d10064_MALLOC is required but cannot be defined. + #error The macro X86_64_INVENTEC_D10064_MALLOC is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d10064_FREE +#ifndef X86_64_INVENTEC_D10064_FREE #if defined(GLOBAL_FREE) - #define x86_64_inventec_d10064_FREE GLOBAL_FREE - #elif x86_64_inventec_d10064_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d10064_FREE free + #define X86_64_INVENTEC_D10064_FREE GLOBAL_FREE + #elif X86_64_INVENTEC_D10064_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D10064_FREE free #else - #error The macro x86_64_inventec_d10064_FREE is required but cannot be defined. + #error The macro X86_64_INVENTEC_D10064_FREE is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d10064_MEMSET +#ifndef X86_64_INVENTEC_D10064_MEMSET #if defined(GLOBAL_MEMSET) - #define x86_64_inventec_d10064_MEMSET GLOBAL_MEMSET - #elif x86_64_inventec_d10064_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d10064_MEMSET memset + #define X86_64_INVENTEC_D10064_MEMSET GLOBAL_MEMSET + #elif X86_64_INVENTEC_D10064_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D10064_MEMSET memset #else - #error The macro x86_64_inventec_d10064_MEMSET is required but cannot be defined. + #error The macro X86_64_INVENTEC_D10064_MEMSET is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d10064_MEMCPY +#ifndef X86_64_INVENTEC_D10064_MEMCPY #if defined(GLOBAL_MEMCPY) - #define x86_64_inventec_d10064_MEMCPY GLOBAL_MEMCPY - #elif x86_64_inventec_d10064_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d10064_MEMCPY memcpy + #define X86_64_INVENTEC_D10064_MEMCPY GLOBAL_MEMCPY + #elif X86_64_INVENTEC_D10064_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D10064_MEMCPY memcpy #else - #error The macro x86_64_inventec_d10064_MEMCPY is required but cannot be defined. + #error The macro X86_64_INVENTEC_D10064_MEMCPY is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d10064_STRNCPY +#ifndef X86_64_INVENTEC_D10064_STRNCPY #if defined(GLOBAL_STRNCPY) - #define x86_64_inventec_d10064_STRNCPY GLOBAL_STRNCPY - #elif x86_64_inventec_d10064_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d10064_STRNCPY strncpy + #define X86_64_INVENTEC_D10064_STRNCPY GLOBAL_STRNCPY + #elif X86_64_INVENTEC_D10064_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D10064_STRNCPY strncpy #else - #error The macro x86_64_inventec_d10064_STRNCPY is required but cannot be defined. + #error The macro X86_64_INVENTEC_D10064_STRNCPY is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d10064_VSNPRINTF +#ifndef X86_64_INVENTEC_D10064_VSNPRINTF #if defined(GLOBAL_VSNPRINTF) - #define x86_64_inventec_d10064_VSNPRINTF GLOBAL_VSNPRINTF - #elif x86_64_inventec_d10064_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d10064_VSNPRINTF vsnprintf + #define X86_64_INVENTEC_D10064_VSNPRINTF GLOBAL_VSNPRINTF + #elif X86_64_INVENTEC_D10064_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D10064_VSNPRINTF vsnprintf #else - #error The macro x86_64_inventec_d10064_VSNPRINTF is required but cannot be defined. + #error The macro X86_64_INVENTEC_D10064_VSNPRINTF is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d10064_SNPRINTF +#ifndef X86_64_INVENTEC_D10064_SNPRINTF #if defined(GLOBAL_SNPRINTF) - #define x86_64_inventec_d10064_SNPRINTF GLOBAL_SNPRINTF - #elif x86_64_inventec_d10064_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d10064_SNPRINTF snprintf + #define X86_64_INVENTEC_D10064_SNPRINTF GLOBAL_SNPRINTF + #elif X86_64_INVENTEC_D10064_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D10064_SNPRINTF snprintf #else - #error The macro x86_64_inventec_d10064_SNPRINTF is required but cannot be defined. + #error The macro X86_64_INVENTEC_D10064_SNPRINTF is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d10064_STRLEN +#ifndef X86_64_INVENTEC_D10064_STRLEN #if defined(GLOBAL_STRLEN) - #define x86_64_inventec_d10064_STRLEN GLOBAL_STRLEN - #elif x86_64_inventec_d10064_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d10064_STRLEN strlen + #define X86_64_INVENTEC_D10064_STRLEN GLOBAL_STRLEN + #elif X86_64_INVENTEC_D10064_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D10064_STRLEN strlen #else - #error The macro x86_64_inventec_d10064_STRLEN is required but cannot be defined. + #error The macro X86_64_INVENTEC_D10064_STRLEN is required but cannot be defined. #endif #endif diff --git a/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/src/debug.c b/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/src/debug.c index 1ead6543..86a17ea8 100644 --- a/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/src/debug.c +++ b/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/src/debug.c @@ -1,6 +1,6 @@ #include "x86_64_inventec_d10064_int.h" -#if x86_64_inventec_d10064_CONFIG_INCLUDE_DEBUG == 1 +#if X86_64_INVENTEC_D10064_CONFIG_INCLUDE_DEBUG == 1 #include diff --git a/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/src/psui.c b/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/src/psui.c deleted file mode 120000 index a822b389..00000000 --- a/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/src/psui.c +++ /dev/null @@ -1 +0,0 @@ -../../../../../../x86-64-inventec-d5264q28b/onlp/builds/src/module/src/psui.c \ No newline at end of file diff --git a/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/src/psui.c b/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/src/psui.c new file mode 100644 index 00000000..8c8e2245 --- /dev/null +++ b/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/src/psui.c @@ -0,0 +1,214 @@ +/************************************************************ + * + * + * Copyright 2014 Big Switch Networks, Inc. + * Copyright 2014 Accton Technology Corporation. + * + * Licensed under the Eclipse Public License, Version 1.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.eclipse.org/legal/epl-v10.html + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + * either express or implied. See the License for the specific + * language governing permissions and limitations under the + * License. + * + * + ************************************************************ + * + * + * + ***********************************************************/ +#include +#include +#include "platform_lib.h" +#include +#include + +#define VALIDATE(_id) \ + do { \ + if(!ONLP_OID_IS_PSU(_id)) { \ + return ONLP_STATUS_E_INVALID; \ + } \ + } while(0) + + +typedef enum hwmon_psu_state_e { + HWMON_PSU_NORMAL = 0, + HWMON_PSU_UNPOWERED = 2, //010 + HWMON_PSU_FAULT = 4, //100 + HWMON_PSU_NOT_INSTALLED = 7 //111 +} hwmon_psu_state_t; + +/* + * Get all information about the given PSU oid. + */ +#define MAKE_PSU_NODE_INFO(id) \ + { \ + { \ + ONLP_PSU_ID_CREATE(ONLP_PSU_##id), "PSU-"#id, 0, \ + { \ + ONLP_THERMAL_ID_CREATE(ONLP_THERMAL_1_ON_PSU##id), \ + ONLP_THERMAL_ID_CREATE(ONLP_THERMAL_2_ON_PSU##id), \ + ONLP_FAN_ID_CREATE(ONLP_FAN_PSU_##id) \ + } \ + }, \ + "","", 0, 0 \ + } + +static onlp_psu_info_t __onlp_psu_info[ONLP_PSU_COUNT] = { + MAKE_PSU_NODE_INFO(1), + MAKE_PSU_NODE_INFO(2) +}; + +int +onlp_psui_init(void) +{ + return ONLP_STATUS_OK; +} + + +int +onlp_psui_info_get(onlp_oid_t id, onlp_psu_info_t* info) +{ + int ret = ONLP_STATUS_OK; + int len; + int local_id = ONLP_OID_ID_GET(id); + uint8_t temp[ONLP_CONFIG_INFO_STR_MAX] = {0}; + + VALIDATE(id); + + if(local_id >= ONLP_PSU_MAX) { + return ONLP_STATUS_E_INVALID; + } + + *info = __onlp_psu_info[LOCAL_ID_TO_INFO_IDX(local_id)]; /* Set the onlp_oid_hdr_t */ + + ret = onlp_file_read(temp, ONLP_CONFIG_INFO_STR_MAX, &len, INV_HWMON_PREFIX"psoc_psu%d_vendor", local_id); + if(ret != ONLP_STATUS_OK){ return ret; } + /*remove the '\n'*/ + temp[strlen((char*)temp)-1] = 0; + snprintf(info->model, ONLP_CONFIG_INFO_STR_MAX, "%s", temp); + + + memset(temp, 0, ONLP_CONFIG_INFO_STR_MAX); + ret = onlp_file_read(temp, ONLP_CONFIG_INFO_STR_MAX, &len, INV_HWMON_PREFIX"psoc_psu%d_serial", local_id); + if(ret != ONLP_STATUS_OK){ return ret; } + /*remove the '\n'*/ + temp[strlen((char*)temp)-1] = 0; + snprintf(info->serial, ONLP_CONFIG_INFO_STR_MAX, "%s", temp); + + ret = onlp_psui_status_get(id, &info->status); + if(ret != ONLP_STATUS_OK){ return ret; } + + if(info->status & ONLP_PSU_STATUS_PRESENT){ + info->caps = ONLP_PSU_CAPS_AC; + /*millivolts*/ + ret = onlp_file_read_int(&info->mvin, INV_HWMON_PREFIX"psoc_psu%d_vin", local_id); + if(ret != ONLP_STATUS_OK){ return ret; } + if(info->mvin >= 0){ + info->caps |= ONLP_PSU_CAPS_VIN; + } + ret = onlp_file_read_int(&info->mvout, INV_HWMON_PREFIX"psoc_psu%d_vout", local_id); + if(ret != ONLP_STATUS_OK){ return ret; } + if(info->mvout >= 0){ + info->caps |= ONLP_PSU_CAPS_VOUT; + } + + /* milliamps */ + ret = onlp_file_read_int(&info->miin, INV_HWMON_PREFIX"psoc_psu%d_iin", local_id); + if(ret != ONLP_STATUS_OK){ return ret; } + if(info->miin >= 0){ + info->caps |= ONLP_PSU_CAPS_IIN; + } + ret = onlp_file_read_int(&info->miout, INV_HWMON_PREFIX"psoc_psu%d_iout", local_id); + if(ret != ONLP_STATUS_OK){ return ret; } + if(info->miout >= 0){ + info->caps |= ONLP_PSU_CAPS_IOUT; + } + + /* milliwatts */ + ret = onlp_file_read_int(&info->mpin, INV_HWMON_PREFIX"psoc_psu%d_pin", local_id); + if(ret != ONLP_STATUS_OK){ return ret; } + if(info->mpin >= 0){ + info->caps |= ONLP_PSU_CAPS_PIN; + } + ret = onlp_file_read_int(&info->mpout, INV_HWMON_PREFIX"psoc_psu%d_pout", local_id); + if(ret != ONLP_STATUS_OK){ return ret; } + if(info->mpout >= 0){ + info->caps |= ONLP_PSU_CAPS_POUT; + } + } + return ret; +} + + +/** + * @brief Get the PSU's operational status. + * @param id The PSU OID. + * @param rv [out] Receives the operational status. + */ +int onlp_psui_status_get(onlp_oid_t id, uint32_t* rv) +{ + int result = ONLP_STATUS_OK; + hwmon_psu_state_t psu_state; + int local_id; + VALIDATE(id); + int len; + char buf[ONLP_CONFIG_INFO_STR_MAX]; + + local_id = ONLP_OID_ID_GET(id); + if(local_id >= ONLP_PSU_MAX) { + result = ONLP_STATUS_E_INVALID; + } else { + result = onlp_file_read((uint8_t*)&buf, ONLP_CONFIG_INFO_STR_MAX, &len, "%s""psu%d", INV_HWMON_PREFIX, local_id); + if( result != ONLP_STATUS_OK ){return result;} + psu_state = (uint8_t)strtoul(buf, NULL, 0); + if( psu_state == HWMON_PSU_UNPOWERED) { + *rv = ONLP_PSU_STATUS_PRESENT|ONLP_PSU_STATUS_UNPLUGGED; + } else if ( psu_state == HWMON_PSU_NORMAL) { + *rv = ONLP_PSU_STATUS_PRESENT; + } else if( psu_state == HWMON_PSU_FAULT) { + *rv = ONLP_PSU_STATUS_PRESENT|ONLP_PSU_STATUS_FAILED; + } else if( psu_state == HWMON_PSU_NOT_INSTALLED){ + *rv = 0; + } else{ + result = ONLP_STATUS_E_INVALID; + } + } + return result; +} + +/** + * @brief Get the PSU's oid header. + * @param id The PSU OID. + * @param rv [out] Receives the header. + */ +int onlp_psui_hdr_get(onlp_oid_t id, onlp_oid_hdr_t* rv) +{ + int result = ONLP_STATUS_OK; + onlp_psu_info_t* info; + int local_id; + VALIDATE(id); + + local_id = ONLP_OID_ID_GET(id); + if(local_id >= ONLP_PSU_MAX) { + result = ONLP_STATUS_E_INVALID; + } else { + info = &__onlp_psu_info[LOCAL_ID_TO_INFO_IDX(local_id)]; + *rv = info->hdr; + } + return result; +} + + +int +onlp_psui_ioctl(onlp_oid_t pid, va_list vargs) +{ + return ONLP_STATUS_E_UNSUPPORTED; +} + diff --git a/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/src/sfpi.c b/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/src/sfpi.c deleted file mode 120000 index 95b5445a..00000000 --- a/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/src/sfpi.c +++ /dev/null @@ -1 +0,0 @@ -../../../../../../x86-64-inventec-d5264q28b/onlp/builds/src/module/src/sfpi.c \ No newline at end of file diff --git a/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/src/sfpi.c b/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/src/sfpi.c new file mode 100644 index 00000000..a632f769 --- /dev/null +++ b/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/src/sfpi.c @@ -0,0 +1,314 @@ +/************************************************************ + * + * + * Copyright 2014 Big Switch Networks, Inc. + * Copyright 2014 Accton Technology Corporation. + * + * Licensed under the Eclipse Public License, Version 1.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.eclipse.org/legal/epl-v10.html + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + * either express or implied. See the License for the specific + * language governing permissions and limitations under the + * License. + * + * + ************************************************************ + * + * + * + ***********************************************************/ + +#include +#include /* For O_RDWR && open */ +#include +#include +#include +#include +#include +#include "platform_lib.h" +#include +#include + +#define MAX_SFP_PATH 128 + +#define MUX_START_INDEX 17 +#define QSFP_DEV_ADDR 0x50 +#define NUM_OF_QSFP_PORT 64 +#define NUM_OF_ALL_PORT (NUM_OF_QSFP_PORT) + +#define FRONT_PORT_TO_MUX_INDEX(port) (port+MUX_START_INDEX) +#define VALIDATE_PORT(p) { if ((p < 0) || (p >= NUM_OF_ALL_PORT)) return ONLP_STATUS_E_PARAM; } +/************************************************************ + * + * SFPI Entry Points + * + ***********************************************************/ +int +onlp_sfpi_init(void) +{ + /* Called at initialization time */ + return ONLP_STATUS_OK; +} + +int onlp_sfpi_port_map(int port, int* rport) +{ + VALIDATE_PORT(port); + *rport = port; + return ONLP_STATUS_OK; +} + +int +onlp_sfpi_bitmap_get(onlp_sfp_bitmap_t* bmap) +{ + /* + * Ports {0, 63} + */ + int p; + AIM_BITMAP_CLR_ALL(bmap); + + for(p = 0; p < NUM_OF_ALL_PORT; p++) { + AIM_BITMAP_SET(bmap, p); + } + + return ONLP_STATUS_OK; +} + +int +onlp_sfpi_is_present(int port) +{ + /* + * Return 1 if present. + * Return 0 if not present. + * Return < 0 if error. + */ + VALIDATE_PORT(port); + int present; + int rv; + if(onlp_file_read_int(&present, INV_SFP_PREFIX"port%d/present", port) != ONLP_STATUS_OK){ + return ONLP_STATUS_E_INTERNAL; + } + if(present == 0){ + rv = 1; + } else if (present == 1){ + rv = 0; + } + else { + AIM_LOG_ERROR("Unvalid present status %d from port(%d)\r\n",present,port); + return ONLP_STATUS_E_INTERNAL; + } + return rv; +} + +int +onlp_sfpi_presence_bitmap_get(onlp_sfp_bitmap_t* dst) +{ + AIM_BITMAP_CLR_ALL(dst); + int port; + for(port = 0; port < NUM_OF_ALL_PORT; port++){ + if(onlp_sfpi_is_present(port) == 1){ + AIM_BITMAP_MOD(dst, port, 1); + }else if(onlp_sfpi_is_present(port) == 0){ + AIM_BITMAP_MOD(dst, port, 0); + }else{ + return ONLP_STATUS_E_INTERNAL; + } + } + return ONLP_STATUS_OK; +} + +int +onlp_sfpi_is_rx_los(int port) +{ + int rxlos; + int rv; + int len; + char buf[ONLP_CONFIG_INFO_STR_MAX]; + if(port > NUM_OF_ALL_PORT){ + return ONLP_STATUS_E_INVALID; + } + if(onlp_sfpi_is_present(port) == 0){ + return ONLP_STATUS_E_INVALID; + } + if(onlp_file_read((uint8_t*)buf, ONLP_CONFIG_INFO_STR_MAX, &len, INV_SFP_PREFIX"port%d/soft_rx_los", port) != ONLP_STATUS_OK){ + return ONLP_STATUS_E_INTERNAL; + } + if(sscanf( buf, "0x%x\n", &rxlos) != 1){ + AIM_LOG_ERROR("Unable to read rxlos from port(%d)\r\n", port); + return ONLP_STATUS_E_INTERNAL; + } + if(rxlos < 0 || rxlos > 0x0f){ + AIM_LOG_ERROR("Unable to read rxlos from port(%d)\r\n", port); + return ONLP_STATUS_E_INTERNAL; + }else if(rxlos == 0){ + rv = 1; + }else{ + rv = 0; + } + return rv; +} + +int +onlp_sfpi_rx_los_bitmap_get(onlp_sfp_bitmap_t* dst) +{ + AIM_BITMAP_CLR_ALL(dst); + int port; + int isrxlos; + for(port = 0; port < NUM_OF_ALL_PORT; port++){ + if(onlp_sfpi_is_present(port) == 1){ + isrxlos = onlp_sfpi_is_rx_los(port); + if(isrxlos == 1){ + AIM_BITMAP_MOD(dst, port, 1); + }else if(isrxlos == 0){ + AIM_BITMAP_MOD(dst, port, 0); + }else{ + return ONLP_STATUS_E_INTERNAL; + } + } + } + return ONLP_STATUS_OK; +} + +int +onlp_sfpi_dom_read(int port, uint8_t data[256]) +{ + return ONLP_STATUS_E_UNSUPPORTED; +} + +int +onlp_sfpi_post_insert(int port, sff_info_t* info) +{ + return ONLP_STATUS_E_UNSUPPORTED; +} + +int +onlp_sfpi_eeprom_read(int port, uint8_t data[256]) +{ + /* + * Read the SFP eeprom into data[] + * + * Return MISSING if SFP is missing. + * Return OK if eeprom is read + */ + memset(data, 0, 256); + + VALIDATE_PORT(port); + int sts; + int bus = FRONT_PORT_TO_MUX_INDEX(port); + sts = onlp_i2c_read(bus, QSFP_DEV_ADDR, 0, 256, data, ONLP_I2C_F_FORCE); + if(sts < 0){ + AIM_LOG_ERROR("Unable to read eeprom from port(%d)\r\n", port); + return ONLP_STATUS_E_MISSING; + } + return ONLP_STATUS_OK; +} + +int +onlp_sfpi_dev_readb(int port, uint8_t devaddr, uint8_t addr) +{ + VALIDATE_PORT(port); + int bus = FRONT_PORT_TO_MUX_INDEX(port); + return onlp_i2c_readb(bus, devaddr, addr, ONLP_I2C_F_FORCE); +} + +int +onlp_sfpi_dev_writeb(int port, uint8_t devaddr, uint8_t addr, uint8_t value) +{ + VALIDATE_PORT(port); + int bus = FRONT_PORT_TO_MUX_INDEX(port); + return onlp_i2c_writeb(bus, devaddr, addr, value, ONLP_I2C_F_FORCE); +} + +int +onlp_sfpi_dev_readw(int port, uint8_t devaddr, uint8_t addr) +{ + VALIDATE_PORT(port); + int bus = FRONT_PORT_TO_MUX_INDEX(port); + return onlp_i2c_readw(bus, devaddr, addr, ONLP_I2C_F_FORCE); +} + +int +onlp_sfpi_dev_writew(int port, uint8_t devaddr, uint8_t addr, uint16_t value) +{ + VALIDATE_PORT(port); + int bus = FRONT_PORT_TO_MUX_INDEX(port); + return onlp_i2c_writew(bus, devaddr, addr, value, ONLP_I2C_F_FORCE); +} + +int +onlp_sfpi_control_supported(int port, onlp_sfp_control_t control, int* rv) +{ + *rv = 0; + if(port >= 0 && port < NUM_OF_QSFP_PORT){ + switch (control) { + case ONLP_SFP_CONTROL_RESET_STATE: + case ONLP_SFP_CONTROL_LP_MODE: + *rv = 1; + break; + default: + break; + } + } + return ONLP_STATUS_OK; +} + +int +onlp_sfpi_control_set(int port, onlp_sfp_control_t control, int value) +{ + int ret = ONLP_STATUS_E_UNSUPPORTED; + if(port >= 0 && port < NUM_OF_QSFP_PORT){ + switch (control) { + case ONLP_SFP_CONTROL_RESET_STATE: + ret = onlp_file_write_int(value, INV_SFP_PREFIX"port%d/reset", port); + break; + case ONLP_SFP_CONTROL_LP_MODE: + ret = onlp_file_write_int(value, INV_SFP_PREFIX"port%d/lpmod", port); + break; + default: + break; + } + } + return ret; +} + +int +onlp_sfpi_control_get(int port, onlp_sfp_control_t control, int* value) +{ + int ret = ONLP_STATUS_E_UNSUPPORTED; + if(port >= 0 && port < NUM_OF_QSFP_PORT){ + switch (control) { + case ONLP_SFP_CONTROL_RESET_STATE: + ret = onlp_file_read_int(value, INV_SFP_PREFIX"port%d/reset", port); + break; + case ONLP_SFP_CONTROL_LP_MODE: + ret = onlp_file_read_int(value, INV_SFP_PREFIX"port%d/lpmod", port); + break; + default: + break; + } + } + return ret; +} + +int +onlp_sfpi_denit(void) +{ + return ONLP_STATUS_OK; +} + +void +onlp_sfpi_debug(int port, aim_pvs_t* pvs) +{ + aim_printf(pvs, "Debug data for port %d goes here.", port); +} + +int +onlp_sfpi_ioctl(int port, va_list vargs) +{ + return ONLP_STATUS_E_UNSUPPORTED; +} diff --git a/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/src/thermali.c b/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/src/thermali.c deleted file mode 120000 index 01d2126a..00000000 --- a/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/src/thermali.c +++ /dev/null @@ -1 +0,0 @@ -../../../../../../x86-64-inventec-d5264q28b/onlp/builds/src/module/src/thermali.c \ No newline at end of file diff --git a/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/src/thermali.c b/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/src/thermali.c new file mode 100644 index 00000000..1bbb0528 --- /dev/null +++ b/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/src/thermali.c @@ -0,0 +1,215 @@ +/************************************************************ + * + * + * Copyright 2014 Big Switch Networks, Inc. + * Copyright 2014 Accton Technology Corporation. + * + * Licensed under the Eclipse Public License, Version 1.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.eclipse.org/legal/epl-v10.html + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + * either express or implied. See the License for the specific + * language governing permissions and limitations under the + * License. + * + * + ************************************************************ + * + * Thermal Sensor Platform Implementation. + * + ***********************************************************/ +#include +#include +#include +#include +#include +#include "platform_lib.h" + +#define VALIDATE(_id) \ + do { \ + if(!ONLP_OID_IS_THERMAL(_id)) { \ + return ONLP_STATUS_E_INVALID; \ + } \ + } while(0) + + +typedef struct thermali_path_s { + char file[ONLP_CONFIG_INFO_STR_MAX]; +} thermali_path_t; + +#define MAKE_THERMAL_PATH_ON_CPU(id) { INV_CTMP_PREFIX"temp"#id"_input"} +#define MAKE_THERMAL_PATH_ON_MAIN_BROAD(id) { INV_HWMON_PREFIX"temp"#id"_input"} +#define MAKE_THERMAL1_PATH_ON_PSU(psu_id) { INV_HWMON_PREFIX"thermal_psu"#psu_id} +#define MAKE_THERMAL2_PATH_ON_PSU(psu_id) { INV_HWMON_PREFIX"thermal2_psu"#psu_id} + +static thermali_path_t __path_list[ONLP_THERMAL_COUNT] = { + MAKE_THERMAL_PATH_ON_CPU(1), + MAKE_THERMAL_PATH_ON_CPU(2), + MAKE_THERMAL_PATH_ON_CPU(3), + MAKE_THERMAL_PATH_ON_CPU(4), + MAKE_THERMAL_PATH_ON_CPU(5), + MAKE_THERMAL_PATH_ON_MAIN_BROAD(1), + MAKE_THERMAL_PATH_ON_MAIN_BROAD(2), + MAKE_THERMAL_PATH_ON_MAIN_BROAD(3), + MAKE_THERMAL_PATH_ON_MAIN_BROAD(4), + MAKE_THERMAL_PATH_ON_MAIN_BROAD(5), + MAKE_THERMAL1_PATH_ON_PSU(1), + MAKE_THERMAL2_PATH_ON_PSU(1), + MAKE_THERMAL1_PATH_ON_PSU(2), + MAKE_THERMAL2_PATH_ON_PSU(2) +}; + +#define MAKE_THERMAL_INFO_NODE_ON_CPU_PHY \ + { { ONLP_THERMAL_ID_CREATE(ONLP_THERMAL_CPU_PHY), "CPU Physical", 0}, \ + ONLP_THERMAL_STATUS_PRESENT, \ + ONLP_THERMAL_CAPS_GET_TEMPERATURE, 0, ONLP_THERMAL_THRESHOLD_INIT_DEFAULTS \ + } +#define MAKE_THERMAL_INFO_NODE_ON_CPU_CORE(id) \ + { { ONLP_THERMAL_ID_CREATE(ONLP_THERMAL_CPU_CORE##id), "CPU Core "#id, 0},\ + ONLP_THERMAL_STATUS_PRESENT, \ + ONLP_THERMAL_CAPS_GET_TEMPERATURE, 0, ONLP_THERMAL_THRESHOLD_INIT_DEFAULTS \ + } +#define MAKE_THERMAL_INFO_NODE_ON_MAIN_BROAD(id) \ + { { ONLP_THERMAL_ID_CREATE(ONLP_THERMAL_##id##_ON_MAIN_BROAD), "Thermal Sensor "#id, 0}, \ + ONLP_THERMAL_STATUS_PRESENT, \ + ONLP_THERMAL_CAPS_GET_TEMPERATURE, 0, ONLP_THERMAL_THRESHOLD_INIT_DEFAULTS \ + } +#define MAKE_THERMAL_INFO_NODE_ON_PSU(thermal_id, psu_id) \ + { { \ + ONLP_THERMAL_ID_CREATE(ONLP_THERMAL_##thermal_id##_ON_PSU##psu_id), \ + "PSU-"#psu_id" Thermal Sensor "#thermal_id, \ + ONLP_PSU_ID_CREATE(ONLP_PSU_##psu_id) \ + }, \ + ONLP_THERMAL_CAPS_GET_TEMPERATURE, 0, 0, ONLP_THERMAL_THRESHOLD_INIT_DEFAULTS \ + } + +/* Static values */ +static onlp_thermal_info_t __onlp_thermal_info[ONLP_THERMAL_COUNT] = { + MAKE_THERMAL_INFO_NODE_ON_CPU_PHY, + MAKE_THERMAL_INFO_NODE_ON_CPU_CORE(0), + MAKE_THERMAL_INFO_NODE_ON_CPU_CORE(1), + MAKE_THERMAL_INFO_NODE_ON_CPU_CORE(2), + MAKE_THERMAL_INFO_NODE_ON_CPU_CORE(3), + MAKE_THERMAL_INFO_NODE_ON_MAIN_BROAD(1), + MAKE_THERMAL_INFO_NODE_ON_MAIN_BROAD(2), + MAKE_THERMAL_INFO_NODE_ON_MAIN_BROAD(3), + MAKE_THERMAL_INFO_NODE_ON_MAIN_BROAD(4), + MAKE_THERMAL_INFO_NODE_ON_MAIN_BROAD(5), + MAKE_THERMAL_INFO_NODE_ON_PSU(1,1), + MAKE_THERMAL_INFO_NODE_ON_PSU(2,1), + MAKE_THERMAL_INFO_NODE_ON_PSU(1,2), + MAKE_THERMAL_INFO_NODE_ON_PSU(2,2) +}; + +/* + * This will be called to intiialize the thermali subsystem. + */ +int +onlp_thermali_init(void) +{ + return ONLP_STATUS_OK; +} + +/* + * Retrieve the information structure for the given thermal OID. + * + * If the OID is invalid, return ONLP_E_STATUS_INVALID. + * If an unexpected error occurs, return ONLP_E_STATUS_INTERNAL. + * Otherwise, return ONLP_STATUS_OK with the OID's information. + * + * Note -- it is expected that you fill out the information + * structure even if the sensor described by the OID is not present. + */ +int +onlp_thermali_info_get(onlp_oid_t id, onlp_thermal_info_t* info) +{ + int local_id; + VALIDATE(id); + int ret; + + local_id = ONLP_OID_ID_GET(id); + if(local_id >= ONLP_THERMAL_MAX) { + return ONLP_STATUS_E_INVALID; + } + + /* Set the onlp_oid_hdr_t and capabilities */ + *info = __onlp_thermal_info[LOCAL_ID_TO_INFO_IDX(local_id)]; + ret = onlp_thermali_status_get(id, &info->status); + if( ret != ONLP_STATUS_OK ){ return ret; } + + if(info->status & ONLP_THERMAL_STATUS_PRESENT){ + ret = onlp_file_read_int(&info->mcelsius, __path_list[LOCAL_ID_TO_INFO_IDX(local_id)].file); + } + + return ret; +} + + +/** + * @brief Retrieve the thermal's operational status. + * @param id The thermal oid. + * @param rv [out] Receives the operational status. + */ +int onlp_thermali_status_get(onlp_oid_t id, uint32_t* rv) +{ + int local_id; + int ret = ONLP_STATUS_OK; + onlp_thermal_info_t* info; + VALIDATE(id); + uint32_t psu_status; + + local_id = ONLP_OID_ID_GET(id); + if(local_id >= ONLP_THERMAL_MAX) { + return ONLP_STATUS_E_INVALID; + } + info = &__onlp_thermal_info[LOCAL_ID_TO_INFO_IDX(local_id)]; + + switch(local_id){ + case ONLP_THERMAL_1_ON_PSU1: + case ONLP_THERMAL_2_ON_PSU1: + case ONLP_THERMAL_1_ON_PSU2: + case ONLP_THERMAL_2_ON_PSU2: + ret = onlp_psui_status_get((&info->hdr)->poid, &psu_status); + if(ret != ONLP_STATUS_OK){return ret;} + + if(psu_status & ONLP_PSU_STATUS_PRESENT){ + info->status |= ONLP_THERMAL_STATUS_PRESENT; + }else{ + info->status = 0; + } + break; + default: + break; + } + + *rv = info->status; + + return ret; +} + +/** + * @brief Retrieve the thermal's oid header. + * @param id The thermal oid. + * @param rv [out] Receives the header. + */ +int onlp_thermali_hdr_get(onlp_oid_t id, onlp_oid_hdr_t* rv) +{ + int local_id; + onlp_thermal_info_t* info; + VALIDATE(id); + + local_id = ONLP_OID_ID_GET(id); + if(local_id >= ONLP_THERMAL_MAX) { + return ONLP_STATUS_E_INVALID; + } + info = &__onlp_thermal_info[LOCAL_ID_TO_INFO_IDX(local_id)]; + + *rv = info->hdr; + + return ONLP_STATUS_OK; +} diff --git a/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/src/x86_64_inventec_d10064_config.c b/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/src/x86_64_inventec_d10064_config.c index a5d88764..91d2d8c0 100644 --- a/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/src/x86_64_inventec_d10064_config.c +++ b/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/src/x86_64_inventec_d10064_config.c @@ -5,50 +5,50 @@ *****************************************************************************/ #include -/* */ +/* */ #define __x86_64_inventec_d10064_config_STRINGIFY_NAME(_x) #_x #define __x86_64_inventec_d10064_config_STRINGIFY_VALUE(_x) __x86_64_inventec_d10064_config_STRINGIFY_NAME(_x) x86_64_inventec_d10064_config_settings_t x86_64_inventec_d10064_config_settings[] = { -#ifdef x86_64_inventec_d10064_CONFIG_INCLUDE_LOGGING - { __x86_64_inventec_d10064_config_STRINGIFY_NAME(x86_64_inventec_d10064_CONFIG_INCLUDE_LOGGING), __x86_64_inventec_d10064_config_STRINGIFY_VALUE(x86_64_inventec_d10064_CONFIG_INCLUDE_LOGGING) }, +#ifdef X86_64_INVENTEC_D10064_CONFIG_INCLUDE_LOGGING + { __x86_64_inventec_d10064_config_STRINGIFY_NAME(X86_64_INVENTEC_D10064_CONFIG_INCLUDE_LOGGING), __x86_64_inventec_d10064_config_STRINGIFY_VALUE(X86_64_INVENTEC_D10064_CONFIG_INCLUDE_LOGGING) }, #else -{ x86_64_inventec_d10064_CONFIG_INCLUDE_LOGGING(__x86_64_inventec_d10064_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D10064_CONFIG_INCLUDE_LOGGING(__x86_64_inventec_d10064_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d10064_CONFIG_LOG_OPTIONS_DEFAULT - { __x86_64_inventec_d10064_config_STRINGIFY_NAME(x86_64_inventec_d10064_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_inventec_d10064_config_STRINGIFY_VALUE(x86_64_inventec_d10064_CONFIG_LOG_OPTIONS_DEFAULT) }, +#ifdef X86_64_INVENTEC_D10064_CONFIG_LOG_OPTIONS_DEFAULT + { __x86_64_inventec_d10064_config_STRINGIFY_NAME(X86_64_INVENTEC_D10064_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_inventec_d10064_config_STRINGIFY_VALUE(X86_64_INVENTEC_D10064_CONFIG_LOG_OPTIONS_DEFAULT) }, #else -{ x86_64_inventec_d10064_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_inventec_d10064_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D10064_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_inventec_d10064_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d10064_CONFIG_LOG_BITS_DEFAULT - { __x86_64_inventec_d10064_config_STRINGIFY_NAME(x86_64_inventec_d10064_CONFIG_LOG_BITS_DEFAULT), __x86_64_inventec_d10064_config_STRINGIFY_VALUE(x86_64_inventec_d10064_CONFIG_LOG_BITS_DEFAULT) }, +#ifdef X86_64_INVENTEC_D10064_CONFIG_LOG_BITS_DEFAULT + { __x86_64_inventec_d10064_config_STRINGIFY_NAME(X86_64_INVENTEC_D10064_CONFIG_LOG_BITS_DEFAULT), __x86_64_inventec_d10064_config_STRINGIFY_VALUE(X86_64_INVENTEC_D10064_CONFIG_LOG_BITS_DEFAULT) }, #else -{ x86_64_inventec_d10064_CONFIG_LOG_BITS_DEFAULT(__x86_64_inventec_d10064_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D10064_CONFIG_LOG_BITS_DEFAULT(__x86_64_inventec_d10064_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d10064_CONFIG_LOG_CUSTOM_BITS_DEFAULT - { __x86_64_inventec_d10064_config_STRINGIFY_NAME(x86_64_inventec_d10064_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_inventec_d10064_config_STRINGIFY_VALUE(x86_64_inventec_d10064_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, +#ifdef X86_64_INVENTEC_D10064_CONFIG_LOG_CUSTOM_BITS_DEFAULT + { __x86_64_inventec_d10064_config_STRINGIFY_NAME(X86_64_INVENTEC_D10064_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_inventec_d10064_config_STRINGIFY_VALUE(X86_64_INVENTEC_D10064_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, #else -{ x86_64_inventec_d10064_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_inventec_d10064_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D10064_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_inventec_d10064_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d10064_CONFIG_PORTING_STDLIB - { __x86_64_inventec_d10064_config_STRINGIFY_NAME(x86_64_inventec_d10064_CONFIG_PORTING_STDLIB), __x86_64_inventec_d10064_config_STRINGIFY_VALUE(x86_64_inventec_d10064_CONFIG_PORTING_STDLIB) }, +#ifdef X86_64_INVENTEC_D10064_CONFIG_PORTING_STDLIB + { __x86_64_inventec_d10064_config_STRINGIFY_NAME(X86_64_INVENTEC_D10064_CONFIG_PORTING_STDLIB), __x86_64_inventec_d10064_config_STRINGIFY_VALUE(X86_64_INVENTEC_D10064_CONFIG_PORTING_STDLIB) }, #else -{ x86_64_inventec_d10064_CONFIG_PORTING_STDLIB(__x86_64_inventec_d10064_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D10064_CONFIG_PORTING_STDLIB(__x86_64_inventec_d10064_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d10064_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS - { __x86_64_inventec_d10064_config_STRINGIFY_NAME(x86_64_inventec_d10064_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_inventec_d10064_config_STRINGIFY_VALUE(x86_64_inventec_d10064_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, +#ifdef X86_64_INVENTEC_D10064_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + { __x86_64_inventec_d10064_config_STRINGIFY_NAME(X86_64_INVENTEC_D10064_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_inventec_d10064_config_STRINGIFY_VALUE(X86_64_INVENTEC_D10064_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, #else -{ x86_64_inventec_d10064_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_inventec_d10064_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D10064_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_inventec_d10064_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d10064_CONFIG_INCLUDE_UCLI - { __x86_64_inventec_d10064_config_STRINGIFY_NAME(x86_64_inventec_d10064_CONFIG_INCLUDE_UCLI), __x86_64_inventec_d10064_config_STRINGIFY_VALUE(x86_64_inventec_d10064_CONFIG_INCLUDE_UCLI) }, +#ifdef X86_64_INVENTEC_D10064_CONFIG_INCLUDE_UCLI + { __x86_64_inventec_d10064_config_STRINGIFY_NAME(X86_64_INVENTEC_D10064_CONFIG_INCLUDE_UCLI), __x86_64_inventec_d10064_config_STRINGIFY_VALUE(X86_64_INVENTEC_D10064_CONFIG_INCLUDE_UCLI) }, #else -{ x86_64_inventec_d10064_CONFIG_INCLUDE_UCLI(__x86_64_inventec_d10064_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D10064_CONFIG_INCLUDE_UCLI(__x86_64_inventec_d10064_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d10064_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION - { __x86_64_inventec_d10064_config_STRINGIFY_NAME(x86_64_inventec_d10064_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __x86_64_inventec_d10064_config_STRINGIFY_VALUE(x86_64_inventec_d10064_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, +#ifdef X86_64_INVENTEC_D10064_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION + { __x86_64_inventec_d10064_config_STRINGIFY_NAME(X86_64_INVENTEC_D10064_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __x86_64_inventec_d10064_config_STRINGIFY_VALUE(X86_64_INVENTEC_D10064_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, #else -{ x86_64_inventec_d10064_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__x86_64_inventec_d10064_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D10064_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__x86_64_inventec_d10064_config_STRINGIFY_NAME), "__undefined__" }, #endif { NULL, NULL } }; @@ -60,7 +60,7 @@ x86_64_inventec_d10064_config_lookup(const char* setting) { int i; for(i = 0; x86_64_inventec_d10064_config_settings[i].name; i++) { - if(strcmp(x86_64_inventec_d10064_config_settings[i].name, setting)) { + if(!strcmp(x86_64_inventec_d10064_config_settings[i].name, setting)) { return x86_64_inventec_d10064_config_settings[i].value; } } @@ -77,5 +77,5 @@ x86_64_inventec_d10064_config_show(struct aim_pvs_s* pvs) return i; } -/* */ +/* */ diff --git a/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/src/x86_64_inventec_d10064_log.c b/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/src/x86_64_inventec_d10064_log.c index 3a2865e5..d4327ea4 100644 --- a/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/src/x86_64_inventec_d10064_log.c +++ b/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/src/x86_64_inventec_d10064_log.c @@ -10,9 +10,9 @@ * x86_64_inventec_d10064 log struct. */ AIM_LOG_STRUCT_DEFINE( - x86_64_inventec_d10064_CONFIG_LOG_OPTIONS_DEFAULT, - x86_64_inventec_d10064_CONFIG_LOG_BITS_DEFAULT, + X86_64_INVENTEC_D10064_CONFIG_LOG_OPTIONS_DEFAULT, + X86_64_INVENTEC_D10064_CONFIG_LOG_BITS_DEFAULT, NULL, /* Custom log map */ - x86_64_inventec_d10064_CONFIG_LOG_CUSTOM_BITS_DEFAULT + X86_64_INVENTEC_D10064_CONFIG_LOG_CUSTOM_BITS_DEFAULT ); diff --git a/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/src/x86_64_inventec_d10064_ucli.c b/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/src/x86_64_inventec_d10064_ucli.c index fe70213c..a29193e1 100644 --- a/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/src/x86_64_inventec_d10064_ucli.c +++ b/packages/platforms/inventec/x86-64/d10064/onlp/builds/x86_64_inventec_d10064/module/src/x86_64_inventec_d10064_ucli.c @@ -5,7 +5,7 @@ *****************************************************************************/ #include -#if x86_64_inventec_d10064_CONFIG_INCLUDE_UCLI == 1 +#if X86_64_INVENTEC_D10064_CONFIG_INCLUDE_UCLI == 1 #include #include diff --git a/packages/platforms/inventec/x86-64/d10064/platform-config/r0/src/lib/healthstatus.sh b/packages/platforms/inventec/x86-64/d10064/platform-config/r0/src/lib/healthstatus.sh deleted file mode 120000 index 1d26c292..00000000 --- a/packages/platforms/inventec/x86-64/d10064/platform-config/r0/src/lib/healthstatus.sh +++ /dev/null @@ -1 +0,0 @@ -../../../../../d5264q28b/platform-config/r0/src/lib/healthstatus.sh \ No newline at end of file diff --git a/packages/platforms/inventec/x86-64/d10064/platform-config/r0/src/lib/healthstatus.sh b/packages/platforms/inventec/x86-64/d10064/platform-config/r0/src/lib/healthstatus.sh new file mode 100755 index 00000000..00955174 --- /dev/null +++ b/packages/platforms/inventec/x86-64/d10064/platform-config/r0/src/lib/healthstatus.sh @@ -0,0 +1,113 @@ +#!/bin/bash +normal='0 : normal' +unpowered='2 : unpowered' +fault='4 : fault' +notinstalled='7 : not installed' +FAN_UNPLUG_NUM=0 +FAN_LED_RED='fan_led_red' +NUM=1 +FAN_NUM=5 +FIRST_READ=0 +SECOND_READ=0 + +PSOC_PATH="" +CPLD_ADDR="/sys/bus/i2c/devices/i2c-0/0-0055" +ROUTE="/sys/class/hwmon/" +for KEY in $(ls ${ROUTE}) +do + KEY=${ROUTE}${KEY} + if [ -f $KEY"/name" ]; then + if [ $(cat $KEY"/name") == "inv_psoc" ]; then + PSOC_PATH=$KEY + fi + fi +done +if [[ $PSOC_PATH == "" ]]; then + echo "ERROR! Unable to find inv_psoc!" + exit +fi + + +#PSU_STAUS='000' +#switch is ready , transfer control of cpld to cpu +echo 1 > $CPLD_ADDR/ctl + +while true +do + +#monitor how many fan modules are unplugged + + +#first check +FAN_UNPLUG_NUM=0 +FAN_ARR=$(cat $PSOC_PATH/$FAN_LED_RED?) + +while read -r line; do + fan_led_red_check=$(echo "$line") + if [ $fan_led_red_check -eq 1 ] + then + let FAN_UNPLUG_NUM=FAN_UNPLUG_NUM+1 + fi +done <<< "$FAN_ARR" +FIRST_READ=$FAN_UNPLUG_NUM + +#second check +FAN_UNPLUG_NUM=0 +FAN_ARR=$(cat $PSOC_PATH/$FAN_LED_RED?) + +while read -r line; do + fan_led_red_check=$(echo "$line") + if [ $fan_led_red_check -eq 1 ] + then + let FAN_UNPLUG_NUM=FAN_UNPLUG_NUM+1 + fi +done <<< "$FAN_ARR" +SECOND_READ=$FAN_UNPLUG_NUM + +if [ $FIRST_READ -ne $SECOND_READ ] +then + #echo "not equl:$FIRST_READ != $SECOND_READ" + continue +fi + +if [ $FAN_UNPLUG_NUM -ge 2 ] +then + #echo "red @2Hz" + echo 7 > $CPLD_ADDR/red_led + echo 0 > $CPLD_ADDR/grn_led + sleep 1 + continue +elif [ $FAN_UNPLUG_NUM -eq 1 ] +then + #echo "solid red" + echo 3 > $CPLD_ADDR/red_led + echo 0 > $CPLD_ADDR/grn_led + sleep 1 + continue +fi + + #echo "normal" + psu0var=$(cat $CPLD_ADDR/psu0) # bottom PSU + psu1var=$(cat $CPLD_ADDR/psu1) # top PSU + + if [ "$psu0var" = "$normal" ] && + [ "$psu1var" = "$normal" ] # PSU normal operatio + then + #echo "solid green" + echo 7 > $CPLD_ADDR/grn_led + echo 0 > $CPLD_ADDR/red_led + else + if [ "$psu0var" = "$unpowered" ] || + [ "$psu1var" = "$unpowered" ] + then + #echo "grn @2Hz" + echo 3 > $CPLD_ADDR/grn_led + echo 0 > $CPLD_ADDR/red_led + fi + + fi + + +sleep 1 +done + diff --git a/packages/platforms/inventec/x86-64/d5254/onlp/builds/x86_64_inventec_d5254/Makefile b/packages/platforms/inventec/x86-64/d5254/onlp/builds/x86_64_inventec_d5254/Makefile index 52dce600..df3e6cea 100644 --- a/packages/platforms/inventec/x86-64/d5254/onlp/builds/x86_64_inventec_d5254/Makefile +++ b/packages/platforms/inventec/x86-64/d5254/onlp/builds/x86_64_inventec_d5254/Makefile @@ -1,9 +1,9 @@ ############################################################################### # -# +# # ############################################################################### -include ../../init.mk +include $(ONL)/make/config.mk MODULE := x86_64_inventec_d5254 AUTOMODULE := x86_64_inventec_d5254 include $(BUILDER)/definemodule.mk diff --git a/packages/platforms/inventec/x86-64/d5254/onlp/builds/x86_64_inventec_d5254/module/auto/x86_64_inventec_d5254.yml b/packages/platforms/inventec/x86-64/d5254/onlp/builds/x86_64_inventec_d5254/module/auto/x86_64_inventec_d5254.yml index 7d8bcc54..0db0e723 100644 --- a/packages/platforms/inventec/x86-64/d5254/onlp/builds/x86_64_inventec_d5254/module/auto/x86_64_inventec_d5254.yml +++ b/packages/platforms/inventec/x86-64/d5254/onlp/builds/x86_64_inventec_d5254/module/auto/x86_64_inventec_d5254.yml @@ -5,35 +5,35 @@ ############################################################################### cdefs: &cdefs -- x86_64_inventec_d5254_CONFIG_INCLUDE_LOGGING: +- X86_64_INVENTEC_D5254_CONFIG_INCLUDE_LOGGING: doc: "Include or exclude logging." default: 1 -- x86_64_inventec_d5254_CONFIG_LOG_OPTIONS_DEFAULT: +- X86_64_INVENTEC_D5254_CONFIG_LOG_OPTIONS_DEFAULT: doc: "Default enabled log options." default: AIM_LOG_OPTIONS_DEFAULT -- x86_64_inventec_d5254_CONFIG_LOG_BITS_DEFAULT: +- X86_64_INVENTEC_D5254_CONFIG_LOG_BITS_DEFAULT: doc: "Default enabled log bits." default: AIM_LOG_BITS_DEFAULT -- x86_64_inventec_d5254_CONFIG_LOG_CUSTOM_BITS_DEFAULT: +- X86_64_INVENTEC_D5254_CONFIG_LOG_CUSTOM_BITS_DEFAULT: doc: "Default enabled custom log bits." default: 0 -- x86_64_inventec_d5254_CONFIG_PORTING_STDLIB: +- X86_64_INVENTEC_D5254_CONFIG_PORTING_STDLIB: doc: "Default all porting macros to use the C standard libraries." default: 1 -- x86_64_inventec_d5254_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS: +- X86_64_INVENTEC_D5254_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS: doc: "Include standard library headers for stdlib porting macros." - default: x86_64_inventec_d5254_CONFIG_PORTING_STDLIB -- x86_64_inventec_d5254_CONFIG_INCLUDE_UCLI: + default: X86_64_INVENTEC_D5254_CONFIG_PORTING_STDLIB +- X86_64_INVENTEC_D5254_CONFIG_INCLUDE_UCLI: doc: "Include generic uCli support." default: 0 -- x86_64_inventec_d5254_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION: +- X86_64_INVENTEC_D5254_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION: doc: "Assume chassis fan direction is the same as the PSU fan direction." default: 0 definitions: cdefs: - x86_64_inventec_d5254_CONFIG_HEADER: + X86_64_INVENTEC_D5254_CONFIG_HEADER: defs: *cdefs basename: x86_64_inventec_d5254_config diff --git a/packages/platforms/inventec/x86-64/d5254/onlp/builds/x86_64_inventec_d5254/module/inc/x86_64_inventec_d5254/x86_64_inventec_d5254_config.h b/packages/platforms/inventec/x86-64/d5254/onlp/builds/x86_64_inventec_d5254/module/inc/x86_64_inventec_d5254/x86_64_inventec_d5254_config.h index a1d81794..041e76a2 100644 --- a/packages/platforms/inventec/x86-64/d5254/onlp/builds/x86_64_inventec_d5254/module/inc/x86_64_inventec_d5254/x86_64_inventec_d5254_config.h +++ b/packages/platforms/inventec/x86-64/d5254/onlp/builds/x86_64_inventec_d5254/module/inc/x86_64_inventec_d5254/x86_64_inventec_d5254_config.h @@ -7,8 +7,8 @@ * @{ * *****************************************************************************/ -#ifndef __x86_64_inventec_d5254_CONFIG_H__ -#define __x86_64_inventec_d5254_CONFIG_H__ +#ifndef __X86_64_INVENTEC_D5254_CONFIG_H__ +#define __X86_64_INVENTEC_D5254_CONFIG_H__ #ifdef GLOBAL_INCLUDE_CUSTOM_CONFIG #include @@ -17,86 +17,86 @@ #include #endif -/* */ +/* */ #include /** - * x86_64_inventec_d5254_CONFIG_INCLUDE_LOGGING + * X86_64_INVENTEC_D5254_CONFIG_INCLUDE_LOGGING * * Include or exclude logging. */ -#ifndef x86_64_inventec_d5254_CONFIG_INCLUDE_LOGGING -#define x86_64_inventec_d5254_CONFIG_INCLUDE_LOGGING 1 +#ifndef X86_64_INVENTEC_D5254_CONFIG_INCLUDE_LOGGING +#define X86_64_INVENTEC_D5254_CONFIG_INCLUDE_LOGGING 1 #endif /** - * x86_64_inventec_d5254_CONFIG_LOG_OPTIONS_DEFAULT + * X86_64_INVENTEC_D5254_CONFIG_LOG_OPTIONS_DEFAULT * * Default enabled log options. */ -#ifndef x86_64_inventec_d5254_CONFIG_LOG_OPTIONS_DEFAULT -#define x86_64_inventec_d5254_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT +#ifndef X86_64_INVENTEC_D5254_CONFIG_LOG_OPTIONS_DEFAULT +#define X86_64_INVENTEC_D5254_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT #endif /** - * x86_64_inventec_d5254_CONFIG_LOG_BITS_DEFAULT + * X86_64_INVENTEC_D5254_CONFIG_LOG_BITS_DEFAULT * * Default enabled log bits. */ -#ifndef x86_64_inventec_d5254_CONFIG_LOG_BITS_DEFAULT -#define x86_64_inventec_d5254_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT +#ifndef X86_64_INVENTEC_D5254_CONFIG_LOG_BITS_DEFAULT +#define X86_64_INVENTEC_D5254_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT #endif /** - * x86_64_inventec_d5254_CONFIG_LOG_CUSTOM_BITS_DEFAULT + * X86_64_INVENTEC_D5254_CONFIG_LOG_CUSTOM_BITS_DEFAULT * * Default enabled custom log bits. */ -#ifndef x86_64_inventec_d5254_CONFIG_LOG_CUSTOM_BITS_DEFAULT -#define x86_64_inventec_d5254_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 +#ifndef X86_64_INVENTEC_D5254_CONFIG_LOG_CUSTOM_BITS_DEFAULT +#define X86_64_INVENTEC_D5254_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 #endif /** - * x86_64_inventec_d5254_CONFIG_PORTING_STDLIB + * X86_64_INVENTEC_D5254_CONFIG_PORTING_STDLIB * * Default all porting macros to use the C standard libraries. */ -#ifndef x86_64_inventec_d5254_CONFIG_PORTING_STDLIB -#define x86_64_inventec_d5254_CONFIG_PORTING_STDLIB 1 +#ifndef X86_64_INVENTEC_D5254_CONFIG_PORTING_STDLIB +#define X86_64_INVENTEC_D5254_CONFIG_PORTING_STDLIB 1 #endif /** - * x86_64_inventec_d5254_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + * X86_64_INVENTEC_D5254_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS * * Include standard library headers for stdlib porting macros. */ -#ifndef x86_64_inventec_d5254_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS -#define x86_64_inventec_d5254_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS x86_64_inventec_d5254_CONFIG_PORTING_STDLIB +#ifndef X86_64_INVENTEC_D5254_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS +#define X86_64_INVENTEC_D5254_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS X86_64_INVENTEC_D5254_CONFIG_PORTING_STDLIB #endif /** - * x86_64_inventec_d5254_CONFIG_INCLUDE_UCLI + * X86_64_INVENTEC_D5254_CONFIG_INCLUDE_UCLI * * Include generic uCli support. */ -#ifndef x86_64_inventec_d5254_CONFIG_INCLUDE_UCLI -#define x86_64_inventec_d5254_CONFIG_INCLUDE_UCLI 0 +#ifndef X86_64_INVENTEC_D5254_CONFIG_INCLUDE_UCLI +#define X86_64_INVENTEC_D5254_CONFIG_INCLUDE_UCLI 0 #endif /** - * x86_64_inventec_d5254_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION + * X86_64_INVENTEC_D5254_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION * * Assume chassis fan direction is the same as the PSU fan direction. */ -#ifndef x86_64_inventec_d5254_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION -#define x86_64_inventec_d5254_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION 0 +#ifndef X86_64_INVENTEC_D5254_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION +#define X86_64_INVENTEC_D5254_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION 0 #endif @@ -129,9 +129,9 @@ const char* x86_64_inventec_d5254_config_lookup(const char* setting); */ int x86_64_inventec_d5254_config_show(struct aim_pvs_s* pvs); -/* */ +/* */ #include "x86_64_inventec_d5254_porting.h" -#endif /* __x86_64_inventec_d5254_CONFIG_H__ */ +#endif /* __X86_64_INVENTEC_D5254_CONFIG_H__ */ /* @} */ diff --git a/packages/platforms/inventec/x86-64/d5254/onlp/builds/x86_64_inventec_d5254/module/inc/x86_64_inventec_d5254/x86_64_inventec_d5254_porting.h b/packages/platforms/inventec/x86-64/d5254/onlp/builds/x86_64_inventec_d5254/module/inc/x86_64_inventec_d5254/x86_64_inventec_d5254_porting.h index ad6146b7..d549880c 100644 --- a/packages/platforms/inventec/x86-64/d5254/onlp/builds/x86_64_inventec_d5254/module/inc/x86_64_inventec_d5254/x86_64_inventec_d5254_porting.h +++ b/packages/platforms/inventec/x86-64/d5254/onlp/builds/x86_64_inventec_d5254/module/inc/x86_64_inventec_d5254/x86_64_inventec_d5254_porting.h @@ -12,7 +12,7 @@ /* */ -#if x86_64_inventec_d5254_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 +#if X86_64_INVENTEC_D5254_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 #include #include #include @@ -20,83 +20,83 @@ #include #endif -#ifndef x86_64_inventec_d5254_MALLOC +#ifndef X86_64_INVENTEC_D5254_MALLOC #if defined(GLOBAL_MALLOC) - #define x86_64_inventec_d5254_MALLOC GLOBAL_MALLOC - #elif x86_64_inventec_d5254_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d5254_MALLOC malloc + #define X86_64_INVENTEC_D5254_MALLOC GLOBAL_MALLOC + #elif X86_64_INVENTEC_D5254_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D5254_MALLOC malloc #else - #error The macro x86_64_inventec_d5254_MALLOC is required but cannot be defined. + #error The macro X86_64_INVENTEC_D5254_MALLOC is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d5254_FREE +#ifndef X86_64_INVENTEC_D5254_FREE #if defined(GLOBAL_FREE) - #define x86_64_inventec_d5254_FREE GLOBAL_FREE - #elif x86_64_inventec_d5254_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d5254_FREE free + #define X86_64_INVENTEC_D5254_FREE GLOBAL_FREE + #elif X86_64_INVENTEC_D5254_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D5254_FREE free #else - #error The macro x86_64_inventec_d5254_FREE is required but cannot be defined. + #error The macro X86_64_INVENTEC_D5254_FREE is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d5254_MEMSET +#ifndef X86_64_INVENTEC_D5254_MEMSET #if defined(GLOBAL_MEMSET) - #define x86_64_inventec_d5254_MEMSET GLOBAL_MEMSET - #elif x86_64_inventec_d5254_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d5254_MEMSET memset + #define X86_64_INVENTEC_D5254_MEMSET GLOBAL_MEMSET + #elif X86_64_INVENTEC_D5254_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D5254_MEMSET memset #else - #error The macro x86_64_inventec_d5254_MEMSET is required but cannot be defined. + #error The macro X86_64_INVENTEC_D5254_MEMSET is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d5254_MEMCPY +#ifndef X86_64_INVENTEC_D5254_MEMCPY #if defined(GLOBAL_MEMCPY) - #define x86_64_inventec_d5254_MEMCPY GLOBAL_MEMCPY - #elif x86_64_inventec_d5254_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d5254_MEMCPY memcpy + #define X86_64_INVENTEC_D5254_MEMCPY GLOBAL_MEMCPY + #elif X86_64_INVENTEC_D5254_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D5254_MEMCPY memcpy #else - #error The macro x86_64_inventec_d5254_MEMCPY is required but cannot be defined. + #error The macro X86_64_INVENTEC_D5254_MEMCPY is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d5254_STRNCPY +#ifndef X86_64_INVENTEC_D5254_STRNCPY #if defined(GLOBAL_STRNCPY) - #define x86_64_inventec_d5254_STRNCPY GLOBAL_STRNCPY - #elif x86_64_inventec_d5254_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d5254_STRNCPY strncpy + #define X86_64_INVENTEC_D5254_STRNCPY GLOBAL_STRNCPY + #elif X86_64_INVENTEC_D5254_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D5254_STRNCPY strncpy #else - #error The macro x86_64_inventec_d5254_STRNCPY is required but cannot be defined. + #error The macro X86_64_INVENTEC_D5254_STRNCPY is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d5254_VSNPRINTF +#ifndef X86_64_INVENTEC_D5254_VSNPRINTF #if defined(GLOBAL_VSNPRINTF) - #define x86_64_inventec_d5254_VSNPRINTF GLOBAL_VSNPRINTF - #elif x86_64_inventec_d5254_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d5254_VSNPRINTF vsnprintf + #define X86_64_INVENTEC_D5254_VSNPRINTF GLOBAL_VSNPRINTF + #elif X86_64_INVENTEC_D5254_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D5254_VSNPRINTF vsnprintf #else - #error The macro x86_64_inventec_d5254_VSNPRINTF is required but cannot be defined. + #error The macro X86_64_INVENTEC_D5254_VSNPRINTF is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d5254_SNPRINTF +#ifndef X86_64_INVENTEC_D5254_SNPRINTF #if defined(GLOBAL_SNPRINTF) - #define x86_64_inventec_d5254_SNPRINTF GLOBAL_SNPRINTF - #elif x86_64_inventec_d5254_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d5254_SNPRINTF snprintf + #define X86_64_INVENTEC_D5254_SNPRINTF GLOBAL_SNPRINTF + #elif X86_64_INVENTEC_D5254_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D5254_SNPRINTF snprintf #else - #error The macro x86_64_inventec_d5254_SNPRINTF is required but cannot be defined. + #error The macro X86_64_INVENTEC_D5254_SNPRINTF is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d5254_STRLEN +#ifndef X86_64_INVENTEC_D5254_STRLEN #if defined(GLOBAL_STRLEN) - #define x86_64_inventec_d5254_STRLEN GLOBAL_STRLEN - #elif x86_64_inventec_d5254_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d5254_STRLEN strlen + #define X86_64_INVENTEC_D5254_STRLEN GLOBAL_STRLEN + #elif X86_64_INVENTEC_D5254_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D5254_STRLEN strlen #else - #error The macro x86_64_inventec_d5254_STRLEN is required but cannot be defined. + #error The macro X86_64_INVENTEC_D5254_STRLEN is required but cannot be defined. #endif #endif diff --git a/packages/platforms/inventec/x86-64/d5254/onlp/builds/x86_64_inventec_d5254/module/src/debug.c b/packages/platforms/inventec/x86-64/d5254/onlp/builds/x86_64_inventec_d5254/module/src/debug.c index 9664a4fe..8cc872e6 100644 --- a/packages/platforms/inventec/x86-64/d5254/onlp/builds/x86_64_inventec_d5254/module/src/debug.c +++ b/packages/platforms/inventec/x86-64/d5254/onlp/builds/x86_64_inventec_d5254/module/src/debug.c @@ -1,6 +1,6 @@ #include "x86_64_inventec_d5254_int.h" -#if x86_64_inventec_d5254_CONFIG_INCLUDE_DEBUG == 1 +#if X86_64_INVENTEC_D5254_CONFIG_INCLUDE_DEBUG == 1 #include diff --git a/packages/platforms/inventec/x86-64/d5254/onlp/builds/x86_64_inventec_d5254/module/src/x86_64_inventec_d5254_config.c b/packages/platforms/inventec/x86-64/d5254/onlp/builds/x86_64_inventec_d5254/module/src/x86_64_inventec_d5254_config.c index f19d52c8..694c95af 100644 --- a/packages/platforms/inventec/x86-64/d5254/onlp/builds/x86_64_inventec_d5254/module/src/x86_64_inventec_d5254_config.c +++ b/packages/platforms/inventec/x86-64/d5254/onlp/builds/x86_64_inventec_d5254/module/src/x86_64_inventec_d5254_config.c @@ -5,50 +5,50 @@ *****************************************************************************/ #include -/* */ +/* */ #define __x86_64_inventec_d5254_config_STRINGIFY_NAME(_x) #_x #define __x86_64_inventec_d5254_config_STRINGIFY_VALUE(_x) __x86_64_inventec_d5254_config_STRINGIFY_NAME(_x) x86_64_inventec_d5254_config_settings_t x86_64_inventec_d5254_config_settings[] = { -#ifdef x86_64_inventec_d5254_CONFIG_INCLUDE_LOGGING - { __x86_64_inventec_d5254_config_STRINGIFY_NAME(x86_64_inventec_d5254_CONFIG_INCLUDE_LOGGING), __x86_64_inventec_d5254_config_STRINGIFY_VALUE(x86_64_inventec_d5254_CONFIG_INCLUDE_LOGGING) }, +#ifdef X86_64_INVENTEC_D5254_CONFIG_INCLUDE_LOGGING + { __x86_64_inventec_d5254_config_STRINGIFY_NAME(X86_64_INVENTEC_D5254_CONFIG_INCLUDE_LOGGING), __x86_64_inventec_d5254_config_STRINGIFY_VALUE(X86_64_INVENTEC_D5254_CONFIG_INCLUDE_LOGGING) }, #else -{ x86_64_inventec_d5254_CONFIG_INCLUDE_LOGGING(__x86_64_inventec_d5254_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D5254_CONFIG_INCLUDE_LOGGING(__x86_64_inventec_d5254_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d5254_CONFIG_LOG_OPTIONS_DEFAULT - { __x86_64_inventec_d5254_config_STRINGIFY_NAME(x86_64_inventec_d5254_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_inventec_d5254_config_STRINGIFY_VALUE(x86_64_inventec_d5254_CONFIG_LOG_OPTIONS_DEFAULT) }, +#ifdef X86_64_INVENTEC_D5254_CONFIG_LOG_OPTIONS_DEFAULT + { __x86_64_inventec_d5254_config_STRINGIFY_NAME(X86_64_INVENTEC_D5254_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_inventec_d5254_config_STRINGIFY_VALUE(X86_64_INVENTEC_D5254_CONFIG_LOG_OPTIONS_DEFAULT) }, #else -{ x86_64_inventec_d5254_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_inventec_d5254_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D5254_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_inventec_d5254_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d5254_CONFIG_LOG_BITS_DEFAULT - { __x86_64_inventec_d5254_config_STRINGIFY_NAME(x86_64_inventec_d5254_CONFIG_LOG_BITS_DEFAULT), __x86_64_inventec_d5254_config_STRINGIFY_VALUE(x86_64_inventec_d5254_CONFIG_LOG_BITS_DEFAULT) }, +#ifdef X86_64_INVENTEC_D5254_CONFIG_LOG_BITS_DEFAULT + { __x86_64_inventec_d5254_config_STRINGIFY_NAME(X86_64_INVENTEC_D5254_CONFIG_LOG_BITS_DEFAULT), __x86_64_inventec_d5254_config_STRINGIFY_VALUE(X86_64_INVENTEC_D5254_CONFIG_LOG_BITS_DEFAULT) }, #else -{ x86_64_inventec_d5254_CONFIG_LOG_BITS_DEFAULT(__x86_64_inventec_d5254_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D5254_CONFIG_LOG_BITS_DEFAULT(__x86_64_inventec_d5254_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d5254_CONFIG_LOG_CUSTOM_BITS_DEFAULT - { __x86_64_inventec_d5254_config_STRINGIFY_NAME(x86_64_inventec_d5254_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_inventec_d5254_config_STRINGIFY_VALUE(x86_64_inventec_d5254_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, +#ifdef X86_64_INVENTEC_D5254_CONFIG_LOG_CUSTOM_BITS_DEFAULT + { __x86_64_inventec_d5254_config_STRINGIFY_NAME(X86_64_INVENTEC_D5254_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_inventec_d5254_config_STRINGIFY_VALUE(X86_64_INVENTEC_D5254_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, #else -{ x86_64_inventec_d5254_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_inventec_d5254_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D5254_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_inventec_d5254_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d5254_CONFIG_PORTING_STDLIB - { __x86_64_inventec_d5254_config_STRINGIFY_NAME(x86_64_inventec_d5254_CONFIG_PORTING_STDLIB), __x86_64_inventec_d5254_config_STRINGIFY_VALUE(x86_64_inventec_d5254_CONFIG_PORTING_STDLIB) }, +#ifdef X86_64_INVENTEC_D5254_CONFIG_PORTING_STDLIB + { __x86_64_inventec_d5254_config_STRINGIFY_NAME(X86_64_INVENTEC_D5254_CONFIG_PORTING_STDLIB), __x86_64_inventec_d5254_config_STRINGIFY_VALUE(X86_64_INVENTEC_D5254_CONFIG_PORTING_STDLIB) }, #else -{ x86_64_inventec_d5254_CONFIG_PORTING_STDLIB(__x86_64_inventec_d5254_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D5254_CONFIG_PORTING_STDLIB(__x86_64_inventec_d5254_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d5254_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS - { __x86_64_inventec_d5254_config_STRINGIFY_NAME(x86_64_inventec_d5254_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_inventec_d5254_config_STRINGIFY_VALUE(x86_64_inventec_d5254_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, +#ifdef X86_64_INVENTEC_D5254_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + { __x86_64_inventec_d5254_config_STRINGIFY_NAME(X86_64_INVENTEC_D5254_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_inventec_d5254_config_STRINGIFY_VALUE(X86_64_INVENTEC_D5254_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, #else -{ x86_64_inventec_d5254_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_inventec_d5254_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D5254_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_inventec_d5254_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d5254_CONFIG_INCLUDE_UCLI - { __x86_64_inventec_d5254_config_STRINGIFY_NAME(x86_64_inventec_d5254_CONFIG_INCLUDE_UCLI), __x86_64_inventec_d5254_config_STRINGIFY_VALUE(x86_64_inventec_d5254_CONFIG_INCLUDE_UCLI) }, +#ifdef X86_64_INVENTEC_D5254_CONFIG_INCLUDE_UCLI + { __x86_64_inventec_d5254_config_STRINGIFY_NAME(X86_64_INVENTEC_D5254_CONFIG_INCLUDE_UCLI), __x86_64_inventec_d5254_config_STRINGIFY_VALUE(X86_64_INVENTEC_D5254_CONFIG_INCLUDE_UCLI) }, #else -{ x86_64_inventec_d5254_CONFIG_INCLUDE_UCLI(__x86_64_inventec_d5254_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D5254_CONFIG_INCLUDE_UCLI(__x86_64_inventec_d5254_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d5254_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION - { __x86_64_inventec_d5254_config_STRINGIFY_NAME(x86_64_inventec_d5254_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __x86_64_inventec_d5254_config_STRINGIFY_VALUE(x86_64_inventec_d5254_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, +#ifdef X86_64_INVENTEC_D5254_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION + { __x86_64_inventec_d5254_config_STRINGIFY_NAME(X86_64_INVENTEC_D5254_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __x86_64_inventec_d5254_config_STRINGIFY_VALUE(X86_64_INVENTEC_D5254_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, #else -{ x86_64_inventec_d5254_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__x86_64_inventec_d5254_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D5254_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__x86_64_inventec_d5254_config_STRINGIFY_NAME), "__undefined__" }, #endif { NULL, NULL } }; @@ -60,7 +60,7 @@ x86_64_inventec_d5254_config_lookup(const char* setting) { int i; for(i = 0; x86_64_inventec_d5254_config_settings[i].name; i++) { - if(strcmp(x86_64_inventec_d5254_config_settings[i].name, setting)) { + if(!strcmp(x86_64_inventec_d5254_config_settings[i].name, setting)) { return x86_64_inventec_d5254_config_settings[i].value; } } @@ -77,5 +77,5 @@ x86_64_inventec_d5254_config_show(struct aim_pvs_s* pvs) return i; } -/* */ +/* */ diff --git a/packages/platforms/inventec/x86-64/d5254/onlp/builds/x86_64_inventec_d5254/module/src/x86_64_inventec_d5254_log.c b/packages/platforms/inventec/x86-64/d5254/onlp/builds/x86_64_inventec_d5254/module/src/x86_64_inventec_d5254_log.c index 0436c9c2..7f261017 100644 --- a/packages/platforms/inventec/x86-64/d5254/onlp/builds/x86_64_inventec_d5254/module/src/x86_64_inventec_d5254_log.c +++ b/packages/platforms/inventec/x86-64/d5254/onlp/builds/x86_64_inventec_d5254/module/src/x86_64_inventec_d5254_log.c @@ -10,9 +10,9 @@ * x86_64_inventec_d5254 log struct. */ AIM_LOG_STRUCT_DEFINE( - x86_64_inventec_d5254_CONFIG_LOG_OPTIONS_DEFAULT, - x86_64_inventec_d5254_CONFIG_LOG_BITS_DEFAULT, + X86_64_INVENTEC_D5254_CONFIG_LOG_OPTIONS_DEFAULT, + X86_64_INVENTEC_D5254_CONFIG_LOG_BITS_DEFAULT, NULL, /* Custom log map */ - x86_64_inventec_d5254_CONFIG_LOG_CUSTOM_BITS_DEFAULT + X86_64_INVENTEC_D5254_CONFIG_LOG_CUSTOM_BITS_DEFAULT ); diff --git a/packages/platforms/inventec/x86-64/d5254/onlp/builds/x86_64_inventec_d5254/module/src/x86_64_inventec_d5254_ucli.c b/packages/platforms/inventec/x86-64/d5254/onlp/builds/x86_64_inventec_d5254/module/src/x86_64_inventec_d5254_ucli.c index 296932d9..bfde22ea 100644 --- a/packages/platforms/inventec/x86-64/d5254/onlp/builds/x86_64_inventec_d5254/module/src/x86_64_inventec_d5254_ucli.c +++ b/packages/platforms/inventec/x86-64/d5254/onlp/builds/x86_64_inventec_d5254/module/src/x86_64_inventec_d5254_ucli.c @@ -5,7 +5,7 @@ *****************************************************************************/ #include -#if x86_64_inventec_d5254_CONFIG_INCLUDE_UCLI == 1 +#if X86_64_INVENTEC_D5254_CONFIG_INCLUDE_UCLI == 1 #include #include diff --git a/packages/platforms/inventec/x86-64/d5264q28b/onlp/builds/x86_64_inventec_d5264q28b/Makefile b/packages/platforms/inventec/x86-64/d5264q28b/onlp/builds/x86_64_inventec_d5264q28b/Makefile index 7d78a253..8725c690 100644 --- a/packages/platforms/inventec/x86-64/d5264q28b/onlp/builds/x86_64_inventec_d5264q28b/Makefile +++ b/packages/platforms/inventec/x86-64/d5264q28b/onlp/builds/x86_64_inventec_d5264q28b/Makefile @@ -1,9 +1,9 @@ ############################################################################### # -# +# # ############################################################################### -include ../../init.mk +include $(ONL)/make/config.mk MODULE := x86_64_inventec_d5264q28b AUTOMODULE := x86_64_inventec_d5264q28b include $(BUILDER)/definemodule.mk diff --git a/packages/platforms/inventec/x86-64/d5264q28b/onlp/builds/x86_64_inventec_d5264q28b/module/auto/x86_64_inventec_d5264q28b.yml b/packages/platforms/inventec/x86-64/d5264q28b/onlp/builds/x86_64_inventec_d5264q28b/module/auto/x86_64_inventec_d5264q28b.yml index c1466116..0178e586 100644 --- a/packages/platforms/inventec/x86-64/d5264q28b/onlp/builds/x86_64_inventec_d5264q28b/module/auto/x86_64_inventec_d5264q28b.yml +++ b/packages/platforms/inventec/x86-64/d5264q28b/onlp/builds/x86_64_inventec_d5264q28b/module/auto/x86_64_inventec_d5264q28b.yml @@ -5,35 +5,35 @@ ############################################################################### cdefs: &cdefs -- x86_64_inventec_d5264q28b_CONFIG_INCLUDE_LOGGING: +- X86_64_INVENTEC_D5264Q28B_CONFIG_INCLUDE_LOGGING: doc: "Include or exclude logging." default: 1 -- x86_64_inventec_d5264q28b_CONFIG_LOG_OPTIONS_DEFAULT: +- X86_64_INVENTEC_D5264Q28B_CONFIG_LOG_OPTIONS_DEFAULT: doc: "Default enabled log options." default: AIM_LOG_OPTIONS_DEFAULT -- x86_64_inventec_d5264q28b_CONFIG_LOG_BITS_DEFAULT: +- X86_64_INVENTEC_D5264Q28B_CONFIG_LOG_BITS_DEFAULT: doc: "Default enabled log bits." default: AIM_LOG_BITS_DEFAULT -- x86_64_inventec_d5264q28b_CONFIG_LOG_CUSTOM_BITS_DEFAULT: +- X86_64_INVENTEC_D5264Q28B_CONFIG_LOG_CUSTOM_BITS_DEFAULT: doc: "Default enabled custom log bits." default: 0 -- x86_64_inventec_d5264q28b_CONFIG_PORTING_STDLIB: +- X86_64_INVENTEC_D5264Q28B_CONFIG_PORTING_STDLIB: doc: "Default all porting macros to use the C standard libraries." default: 1 -- x86_64_inventec_d5264q28b_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS: +- X86_64_INVENTEC_D5264Q28B_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS: doc: "Include standard library headers for stdlib porting macros." - default: x86_64_inventec_d5264q28b_CONFIG_PORTING_STDLIB -- x86_64_inventec_d5264q28b_CONFIG_INCLUDE_UCLI: + default: X86_64_INVENTEC_D5264Q28B_CONFIG_PORTING_STDLIB +- X86_64_INVENTEC_D5264Q28B_CONFIG_INCLUDE_UCLI: doc: "Include generic uCli support." default: 0 -- x86_64_inventec_d5264q28b_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION: +- X86_64_INVENTEC_D5264Q28B_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION: doc: "Assume chassis fan direction is the same as the PSU fan direction." default: 0 definitions: cdefs: - x86_64_inventec_d5264q28b_CONFIG_HEADER: + X86_64_INVENTEC_D5264Q28B_CONFIG_HEADER: defs: *cdefs basename: x86_64_inventec_d5264q28b_config diff --git a/packages/platforms/inventec/x86-64/d5264q28b/onlp/builds/x86_64_inventec_d5264q28b/module/inc/x86_64_inventec_d5264q28b/x86_64_inventec_d5264q28b_config.h b/packages/platforms/inventec/x86-64/d5264q28b/onlp/builds/x86_64_inventec_d5264q28b/module/inc/x86_64_inventec_d5264q28b/x86_64_inventec_d5264q28b_config.h index a3ee091f..4a856282 100644 --- a/packages/platforms/inventec/x86-64/d5264q28b/onlp/builds/x86_64_inventec_d5264q28b/module/inc/x86_64_inventec_d5264q28b/x86_64_inventec_d5264q28b_config.h +++ b/packages/platforms/inventec/x86-64/d5264q28b/onlp/builds/x86_64_inventec_d5264q28b/module/inc/x86_64_inventec_d5264q28b/x86_64_inventec_d5264q28b_config.h @@ -7,8 +7,8 @@ * @{ * *****************************************************************************/ -#ifndef __x86_64_inventec_d5264q28b_CONFIG_H__ -#define __x86_64_inventec_d5264q28b_CONFIG_H__ +#ifndef __X86_64_INVENTEC_D5264Q28B_CONFIG_H__ +#define __X86_64_INVENTEC_D5264Q28B_CONFIG_H__ #ifdef GLOBAL_INCLUDE_CUSTOM_CONFIG #include @@ -17,86 +17,86 @@ #include #endif -/* */ +/* */ #include /** - * x86_64_inventec_d5264q28b_CONFIG_INCLUDE_LOGGING + * X86_64_INVENTEC_D5264Q28B_CONFIG_INCLUDE_LOGGING * * Include or exclude logging. */ -#ifndef x86_64_inventec_d5264q28b_CONFIG_INCLUDE_LOGGING -#define x86_64_inventec_d5264q28b_CONFIG_INCLUDE_LOGGING 1 +#ifndef X86_64_INVENTEC_D5264Q28B_CONFIG_INCLUDE_LOGGING +#define X86_64_INVENTEC_D5264Q28B_CONFIG_INCLUDE_LOGGING 1 #endif /** - * x86_64_inventec_d5264q28b_CONFIG_LOG_OPTIONS_DEFAULT + * X86_64_INVENTEC_D5264Q28B_CONFIG_LOG_OPTIONS_DEFAULT * * Default enabled log options. */ -#ifndef x86_64_inventec_d5264q28b_CONFIG_LOG_OPTIONS_DEFAULT -#define x86_64_inventec_d5264q28b_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT +#ifndef X86_64_INVENTEC_D5264Q28B_CONFIG_LOG_OPTIONS_DEFAULT +#define X86_64_INVENTEC_D5264Q28B_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT #endif /** - * x86_64_inventec_d5264q28b_CONFIG_LOG_BITS_DEFAULT + * X86_64_INVENTEC_D5264Q28B_CONFIG_LOG_BITS_DEFAULT * * Default enabled log bits. */ -#ifndef x86_64_inventec_d5264q28b_CONFIG_LOG_BITS_DEFAULT -#define x86_64_inventec_d5264q28b_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT +#ifndef X86_64_INVENTEC_D5264Q28B_CONFIG_LOG_BITS_DEFAULT +#define X86_64_INVENTEC_D5264Q28B_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT #endif /** - * x86_64_inventec_d5264q28b_CONFIG_LOG_CUSTOM_BITS_DEFAULT + * X86_64_INVENTEC_D5264Q28B_CONFIG_LOG_CUSTOM_BITS_DEFAULT * * Default enabled custom log bits. */ -#ifndef x86_64_inventec_d5264q28b_CONFIG_LOG_CUSTOM_BITS_DEFAULT -#define x86_64_inventec_d5264q28b_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 +#ifndef X86_64_INVENTEC_D5264Q28B_CONFIG_LOG_CUSTOM_BITS_DEFAULT +#define X86_64_INVENTEC_D5264Q28B_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 #endif /** - * x86_64_inventec_d5264q28b_CONFIG_PORTING_STDLIB + * X86_64_INVENTEC_D5264Q28B_CONFIG_PORTING_STDLIB * * Default all porting macros to use the C standard libraries. */ -#ifndef x86_64_inventec_d5264q28b_CONFIG_PORTING_STDLIB -#define x86_64_inventec_d5264q28b_CONFIG_PORTING_STDLIB 1 +#ifndef X86_64_INVENTEC_D5264Q28B_CONFIG_PORTING_STDLIB +#define X86_64_INVENTEC_D5264Q28B_CONFIG_PORTING_STDLIB 1 #endif /** - * x86_64_inventec_d5264q28b_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + * X86_64_INVENTEC_D5264Q28B_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS * * Include standard library headers for stdlib porting macros. */ -#ifndef x86_64_inventec_d5264q28b_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS -#define x86_64_inventec_d5264q28b_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS x86_64_inventec_d5264q28b_CONFIG_PORTING_STDLIB +#ifndef X86_64_INVENTEC_D5264Q28B_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS +#define X86_64_INVENTEC_D5264Q28B_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS X86_64_INVENTEC_D5264Q28B_CONFIG_PORTING_STDLIB #endif /** - * x86_64_inventec_d5264q28b_CONFIG_INCLUDE_UCLI + * X86_64_INVENTEC_D5264Q28B_CONFIG_INCLUDE_UCLI * * Include generic uCli support. */ -#ifndef x86_64_inventec_d5264q28b_CONFIG_INCLUDE_UCLI -#define x86_64_inventec_d5264q28b_CONFIG_INCLUDE_UCLI 0 +#ifndef X86_64_INVENTEC_D5264Q28B_CONFIG_INCLUDE_UCLI +#define X86_64_INVENTEC_D5264Q28B_CONFIG_INCLUDE_UCLI 0 #endif /** - * x86_64_inventec_d5264q28b_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION + * X86_64_INVENTEC_D5264Q28B_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION * * Assume chassis fan direction is the same as the PSU fan direction. */ -#ifndef x86_64_inventec_d5264q28b_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION -#define x86_64_inventec_d5264q28b_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION 0 +#ifndef X86_64_INVENTEC_D5264Q28B_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION +#define X86_64_INVENTEC_D5264Q28B_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION 0 #endif @@ -129,9 +129,9 @@ const char* x86_64_inventec_d5264q28b_config_lookup(const char* setting); */ int x86_64_inventec_d5264q28b_config_show(struct aim_pvs_s* pvs); -/* */ +/* */ #include "x86_64_inventec_d5264q28b_porting.h" -#endif /* __x86_64_inventec_d5264q28b_CONFIG_H__ */ +#endif /* __X86_64_INVENTEC_D5264Q28B_CONFIG_H__ */ /* @} */ diff --git a/packages/platforms/inventec/x86-64/d5264q28b/onlp/builds/x86_64_inventec_d5264q28b/module/inc/x86_64_inventec_d5264q28b/x86_64_inventec_d5264q28b_porting.h b/packages/platforms/inventec/x86-64/d5264q28b/onlp/builds/x86_64_inventec_d5264q28b/module/inc/x86_64_inventec_d5264q28b/x86_64_inventec_d5264q28b_porting.h index d243b89f..1a9d34f3 100644 --- a/packages/platforms/inventec/x86-64/d5264q28b/onlp/builds/x86_64_inventec_d5264q28b/module/inc/x86_64_inventec_d5264q28b/x86_64_inventec_d5264q28b_porting.h +++ b/packages/platforms/inventec/x86-64/d5264q28b/onlp/builds/x86_64_inventec_d5264q28b/module/inc/x86_64_inventec_d5264q28b/x86_64_inventec_d5264q28b_porting.h @@ -12,7 +12,7 @@ /* */ -#if x86_64_inventec_d5264q28b_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 +#if X86_64_INVENTEC_D5264Q28B_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 #include #include #include @@ -20,83 +20,83 @@ #include #endif -#ifndef x86_64_inventec_d5264q28b_MALLOC +#ifndef X86_64_INVENTEC_D5264Q28B_MALLOC #if defined(GLOBAL_MALLOC) - #define x86_64_inventec_d5264q28b_MALLOC GLOBAL_MALLOC - #elif x86_64_inventec_d5264q28b_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d5264q28b_MALLOC malloc + #define X86_64_INVENTEC_D5264Q28B_MALLOC GLOBAL_MALLOC + #elif X86_64_INVENTEC_D5264Q28B_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D5264Q28B_MALLOC malloc #else - #error The macro x86_64_inventec_d5264q28b_MALLOC is required but cannot be defined. + #error The macro X86_64_INVENTEC_D5264Q28B_MALLOC is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d5264q28b_FREE +#ifndef X86_64_INVENTEC_D5264Q28B_FREE #if defined(GLOBAL_FREE) - #define x86_64_inventec_d5264q28b_FREE GLOBAL_FREE - #elif x86_64_inventec_d5264q28b_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d5264q28b_FREE free + #define X86_64_INVENTEC_D5264Q28B_FREE GLOBAL_FREE + #elif X86_64_INVENTEC_D5264Q28B_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D5264Q28B_FREE free #else - #error The macro x86_64_inventec_d5264q28b_FREE is required but cannot be defined. + #error The macro X86_64_INVENTEC_D5264Q28B_FREE is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d5264q28b_MEMSET +#ifndef X86_64_INVENTEC_D5264Q28B_MEMSET #if defined(GLOBAL_MEMSET) - #define x86_64_inventec_d5264q28b_MEMSET GLOBAL_MEMSET - #elif x86_64_inventec_d5264q28b_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d5264q28b_MEMSET memset + #define X86_64_INVENTEC_D5264Q28B_MEMSET GLOBAL_MEMSET + #elif X86_64_INVENTEC_D5264Q28B_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D5264Q28B_MEMSET memset #else - #error The macro x86_64_inventec_d5264q28b_MEMSET is required but cannot be defined. + #error The macro X86_64_INVENTEC_D5264Q28B_MEMSET is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d5264q28b_MEMCPY +#ifndef X86_64_INVENTEC_D5264Q28B_MEMCPY #if defined(GLOBAL_MEMCPY) - #define x86_64_inventec_d5264q28b_MEMCPY GLOBAL_MEMCPY - #elif x86_64_inventec_d5264q28b_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d5264q28b_MEMCPY memcpy + #define X86_64_INVENTEC_D5264Q28B_MEMCPY GLOBAL_MEMCPY + #elif X86_64_INVENTEC_D5264Q28B_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D5264Q28B_MEMCPY memcpy #else - #error The macro x86_64_inventec_d5264q28b_MEMCPY is required but cannot be defined. + #error The macro X86_64_INVENTEC_D5264Q28B_MEMCPY is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d5264q28b_STRNCPY +#ifndef X86_64_INVENTEC_D5264Q28B_STRNCPY #if defined(GLOBAL_STRNCPY) - #define x86_64_inventec_d5264q28b_STRNCPY GLOBAL_STRNCPY - #elif x86_64_inventec_d5264q28b_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d5264q28b_STRNCPY strncpy + #define X86_64_INVENTEC_D5264Q28B_STRNCPY GLOBAL_STRNCPY + #elif X86_64_INVENTEC_D5264Q28B_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D5264Q28B_STRNCPY strncpy #else - #error The macro x86_64_inventec_d5264q28b_STRNCPY is required but cannot be defined. + #error The macro X86_64_INVENTEC_D5264Q28B_STRNCPY is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d5264q28b_VSNPRINTF +#ifndef X86_64_INVENTEC_D5264Q28B_VSNPRINTF #if defined(GLOBAL_VSNPRINTF) - #define x86_64_inventec_d5264q28b_VSNPRINTF GLOBAL_VSNPRINTF - #elif x86_64_inventec_d5264q28b_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d5264q28b_VSNPRINTF vsnprintf + #define X86_64_INVENTEC_D5264Q28B_VSNPRINTF GLOBAL_VSNPRINTF + #elif X86_64_INVENTEC_D5264Q28B_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D5264Q28B_VSNPRINTF vsnprintf #else - #error The macro x86_64_inventec_d5264q28b_VSNPRINTF is required but cannot be defined. + #error The macro X86_64_INVENTEC_D5264Q28B_VSNPRINTF is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d5264q28b_SNPRINTF +#ifndef X86_64_INVENTEC_D5264Q28B_SNPRINTF #if defined(GLOBAL_SNPRINTF) - #define x86_64_inventec_d5264q28b_SNPRINTF GLOBAL_SNPRINTF - #elif x86_64_inventec_d5264q28b_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d5264q28b_SNPRINTF snprintf + #define X86_64_INVENTEC_D5264Q28B_SNPRINTF GLOBAL_SNPRINTF + #elif X86_64_INVENTEC_D5264Q28B_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D5264Q28B_SNPRINTF snprintf #else - #error The macro x86_64_inventec_d5264q28b_SNPRINTF is required but cannot be defined. + #error The macro X86_64_INVENTEC_D5264Q28B_SNPRINTF is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d5264q28b_STRLEN +#ifndef X86_64_INVENTEC_D5264Q28B_STRLEN #if defined(GLOBAL_STRLEN) - #define x86_64_inventec_d5264q28b_STRLEN GLOBAL_STRLEN - #elif x86_64_inventec_d5264q28b_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d5264q28b_STRLEN strlen + #define X86_64_INVENTEC_D5264Q28B_STRLEN GLOBAL_STRLEN + #elif X86_64_INVENTEC_D5264Q28B_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D5264Q28B_STRLEN strlen #else - #error The macro x86_64_inventec_d5264q28b_STRLEN is required but cannot be defined. + #error The macro X86_64_INVENTEC_D5264Q28B_STRLEN is required but cannot be defined. #endif #endif diff --git a/packages/platforms/inventec/x86-64/d5264q28b/onlp/builds/x86_64_inventec_d5264q28b/module/src/debug.c b/packages/platforms/inventec/x86-64/d5264q28b/onlp/builds/x86_64_inventec_d5264q28b/module/src/debug.c index e72ef0b6..bc551ffc 100644 --- a/packages/platforms/inventec/x86-64/d5264q28b/onlp/builds/x86_64_inventec_d5264q28b/module/src/debug.c +++ b/packages/platforms/inventec/x86-64/d5264q28b/onlp/builds/x86_64_inventec_d5264q28b/module/src/debug.c @@ -1,6 +1,6 @@ #include "x86_64_inventec_d5264q28b_int.h" -#if x86_64_inventec_d5264q28b_CONFIG_INCLUDE_DEBUG == 1 +#if X86_64_INVENTEC_D5264Q28B_CONFIG_INCLUDE_DEBUG == 1 #include diff --git a/packages/platforms/inventec/x86-64/d5264q28b/onlp/builds/x86_64_inventec_d5264q28b/module/src/x86_64_inventec_d5264q28b_config.c b/packages/platforms/inventec/x86-64/d5264q28b/onlp/builds/x86_64_inventec_d5264q28b/module/src/x86_64_inventec_d5264q28b_config.c index bfff2079..a686e463 100644 --- a/packages/platforms/inventec/x86-64/d5264q28b/onlp/builds/x86_64_inventec_d5264q28b/module/src/x86_64_inventec_d5264q28b_config.c +++ b/packages/platforms/inventec/x86-64/d5264q28b/onlp/builds/x86_64_inventec_d5264q28b/module/src/x86_64_inventec_d5264q28b_config.c @@ -5,50 +5,50 @@ *****************************************************************************/ #include -/* */ +/* */ #define __x86_64_inventec_d5264q28b_config_STRINGIFY_NAME(_x) #_x #define __x86_64_inventec_d5264q28b_config_STRINGIFY_VALUE(_x) __x86_64_inventec_d5264q28b_config_STRINGIFY_NAME(_x) x86_64_inventec_d5264q28b_config_settings_t x86_64_inventec_d5264q28b_config_settings[] = { -#ifdef x86_64_inventec_d5264q28b_CONFIG_INCLUDE_LOGGING - { __x86_64_inventec_d5264q28b_config_STRINGIFY_NAME(x86_64_inventec_d5264q28b_CONFIG_INCLUDE_LOGGING), __x86_64_inventec_d5264q28b_config_STRINGIFY_VALUE(x86_64_inventec_d5264q28b_CONFIG_INCLUDE_LOGGING) }, +#ifdef X86_64_INVENTEC_D5264Q28B_CONFIG_INCLUDE_LOGGING + { __x86_64_inventec_d5264q28b_config_STRINGIFY_NAME(X86_64_INVENTEC_D5264Q28B_CONFIG_INCLUDE_LOGGING), __x86_64_inventec_d5264q28b_config_STRINGIFY_VALUE(X86_64_INVENTEC_D5264Q28B_CONFIG_INCLUDE_LOGGING) }, #else -{ x86_64_inventec_d5264q28b_CONFIG_INCLUDE_LOGGING(__x86_64_inventec_d5264q28b_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D5264Q28B_CONFIG_INCLUDE_LOGGING(__x86_64_inventec_d5264q28b_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d5264q28b_CONFIG_LOG_OPTIONS_DEFAULT - { __x86_64_inventec_d5264q28b_config_STRINGIFY_NAME(x86_64_inventec_d5264q28b_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_inventec_d5264q28b_config_STRINGIFY_VALUE(x86_64_inventec_d5264q28b_CONFIG_LOG_OPTIONS_DEFAULT) }, +#ifdef X86_64_INVENTEC_D5264Q28B_CONFIG_LOG_OPTIONS_DEFAULT + { __x86_64_inventec_d5264q28b_config_STRINGIFY_NAME(X86_64_INVENTEC_D5264Q28B_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_inventec_d5264q28b_config_STRINGIFY_VALUE(X86_64_INVENTEC_D5264Q28B_CONFIG_LOG_OPTIONS_DEFAULT) }, #else -{ x86_64_inventec_d5264q28b_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_inventec_d5264q28b_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D5264Q28B_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_inventec_d5264q28b_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d5264q28b_CONFIG_LOG_BITS_DEFAULT - { __x86_64_inventec_d5264q28b_config_STRINGIFY_NAME(x86_64_inventec_d5264q28b_CONFIG_LOG_BITS_DEFAULT), __x86_64_inventec_d5264q28b_config_STRINGIFY_VALUE(x86_64_inventec_d5264q28b_CONFIG_LOG_BITS_DEFAULT) }, +#ifdef X86_64_INVENTEC_D5264Q28B_CONFIG_LOG_BITS_DEFAULT + { __x86_64_inventec_d5264q28b_config_STRINGIFY_NAME(X86_64_INVENTEC_D5264Q28B_CONFIG_LOG_BITS_DEFAULT), __x86_64_inventec_d5264q28b_config_STRINGIFY_VALUE(X86_64_INVENTEC_D5264Q28B_CONFIG_LOG_BITS_DEFAULT) }, #else -{ x86_64_inventec_d5264q28b_CONFIG_LOG_BITS_DEFAULT(__x86_64_inventec_d5264q28b_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D5264Q28B_CONFIG_LOG_BITS_DEFAULT(__x86_64_inventec_d5264q28b_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d5264q28b_CONFIG_LOG_CUSTOM_BITS_DEFAULT - { __x86_64_inventec_d5264q28b_config_STRINGIFY_NAME(x86_64_inventec_d5264q28b_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_inventec_d5264q28b_config_STRINGIFY_VALUE(x86_64_inventec_d5264q28b_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, +#ifdef X86_64_INVENTEC_D5264Q28B_CONFIG_LOG_CUSTOM_BITS_DEFAULT + { __x86_64_inventec_d5264q28b_config_STRINGIFY_NAME(X86_64_INVENTEC_D5264Q28B_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_inventec_d5264q28b_config_STRINGIFY_VALUE(X86_64_INVENTEC_D5264Q28B_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, #else -{ x86_64_inventec_d5264q28b_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_inventec_d5264q28b_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D5264Q28B_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_inventec_d5264q28b_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d5264q28b_CONFIG_PORTING_STDLIB - { __x86_64_inventec_d5264q28b_config_STRINGIFY_NAME(x86_64_inventec_d5264q28b_CONFIG_PORTING_STDLIB), __x86_64_inventec_d5264q28b_config_STRINGIFY_VALUE(x86_64_inventec_d5264q28b_CONFIG_PORTING_STDLIB) }, +#ifdef X86_64_INVENTEC_D5264Q28B_CONFIG_PORTING_STDLIB + { __x86_64_inventec_d5264q28b_config_STRINGIFY_NAME(X86_64_INVENTEC_D5264Q28B_CONFIG_PORTING_STDLIB), __x86_64_inventec_d5264q28b_config_STRINGIFY_VALUE(X86_64_INVENTEC_D5264Q28B_CONFIG_PORTING_STDLIB) }, #else -{ x86_64_inventec_d5264q28b_CONFIG_PORTING_STDLIB(__x86_64_inventec_d5264q28b_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D5264Q28B_CONFIG_PORTING_STDLIB(__x86_64_inventec_d5264q28b_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d5264q28b_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS - { __x86_64_inventec_d5264q28b_config_STRINGIFY_NAME(x86_64_inventec_d5264q28b_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_inventec_d5264q28b_config_STRINGIFY_VALUE(x86_64_inventec_d5264q28b_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, +#ifdef X86_64_INVENTEC_D5264Q28B_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + { __x86_64_inventec_d5264q28b_config_STRINGIFY_NAME(X86_64_INVENTEC_D5264Q28B_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_inventec_d5264q28b_config_STRINGIFY_VALUE(X86_64_INVENTEC_D5264Q28B_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, #else -{ x86_64_inventec_d5264q28b_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_inventec_d5264q28b_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D5264Q28B_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_inventec_d5264q28b_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d5264q28b_CONFIG_INCLUDE_UCLI - { __x86_64_inventec_d5264q28b_config_STRINGIFY_NAME(x86_64_inventec_d5264q28b_CONFIG_INCLUDE_UCLI), __x86_64_inventec_d5264q28b_config_STRINGIFY_VALUE(x86_64_inventec_d5264q28b_CONFIG_INCLUDE_UCLI) }, +#ifdef X86_64_INVENTEC_D5264Q28B_CONFIG_INCLUDE_UCLI + { __x86_64_inventec_d5264q28b_config_STRINGIFY_NAME(X86_64_INVENTEC_D5264Q28B_CONFIG_INCLUDE_UCLI), __x86_64_inventec_d5264q28b_config_STRINGIFY_VALUE(X86_64_INVENTEC_D5264Q28B_CONFIG_INCLUDE_UCLI) }, #else -{ x86_64_inventec_d5264q28b_CONFIG_INCLUDE_UCLI(__x86_64_inventec_d5264q28b_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D5264Q28B_CONFIG_INCLUDE_UCLI(__x86_64_inventec_d5264q28b_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d5264q28b_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION - { __x86_64_inventec_d5264q28b_config_STRINGIFY_NAME(x86_64_inventec_d5264q28b_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __x86_64_inventec_d5264q28b_config_STRINGIFY_VALUE(x86_64_inventec_d5264q28b_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, +#ifdef X86_64_INVENTEC_D5264Q28B_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION + { __x86_64_inventec_d5264q28b_config_STRINGIFY_NAME(X86_64_INVENTEC_D5264Q28B_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __x86_64_inventec_d5264q28b_config_STRINGIFY_VALUE(X86_64_INVENTEC_D5264Q28B_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, #else -{ x86_64_inventec_d5264q28b_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__x86_64_inventec_d5264q28b_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D5264Q28B_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__x86_64_inventec_d5264q28b_config_STRINGIFY_NAME), "__undefined__" }, #endif { NULL, NULL } }; @@ -60,7 +60,7 @@ x86_64_inventec_d5264q28b_config_lookup(const char* setting) { int i; for(i = 0; x86_64_inventec_d5264q28b_config_settings[i].name; i++) { - if(strcmp(x86_64_inventec_d5264q28b_config_settings[i].name, setting)) { + if(!strcmp(x86_64_inventec_d5264q28b_config_settings[i].name, setting)) { return x86_64_inventec_d5264q28b_config_settings[i].value; } } @@ -77,5 +77,5 @@ x86_64_inventec_d5264q28b_config_show(struct aim_pvs_s* pvs) return i; } -/* */ +/* */ diff --git a/packages/platforms/inventec/x86-64/d5264q28b/onlp/builds/x86_64_inventec_d5264q28b/module/src/x86_64_inventec_d5264q28b_log.c b/packages/platforms/inventec/x86-64/d5264q28b/onlp/builds/x86_64_inventec_d5264q28b/module/src/x86_64_inventec_d5264q28b_log.c index d2c6fca5..75663c69 100644 --- a/packages/platforms/inventec/x86-64/d5264q28b/onlp/builds/x86_64_inventec_d5264q28b/module/src/x86_64_inventec_d5264q28b_log.c +++ b/packages/platforms/inventec/x86-64/d5264q28b/onlp/builds/x86_64_inventec_d5264q28b/module/src/x86_64_inventec_d5264q28b_log.c @@ -10,9 +10,9 @@ * x86_64_inventec_d5264q28b log struct. */ AIM_LOG_STRUCT_DEFINE( - x86_64_inventec_d5264q28b_CONFIG_LOG_OPTIONS_DEFAULT, - x86_64_inventec_d5264q28b_CONFIG_LOG_BITS_DEFAULT, + X86_64_INVENTEC_D5264Q28B_CONFIG_LOG_OPTIONS_DEFAULT, + X86_64_INVENTEC_D5264Q28B_CONFIG_LOG_BITS_DEFAULT, NULL, /* Custom log map */ - x86_64_inventec_d5264q28b_CONFIG_LOG_CUSTOM_BITS_DEFAULT + X86_64_INVENTEC_D5264Q28B_CONFIG_LOG_CUSTOM_BITS_DEFAULT ); diff --git a/packages/platforms/inventec/x86-64/d5264q28b/onlp/builds/x86_64_inventec_d5264q28b/module/src/x86_64_inventec_d5264q28b_ucli.c b/packages/platforms/inventec/x86-64/d5264q28b/onlp/builds/x86_64_inventec_d5264q28b/module/src/x86_64_inventec_d5264q28b_ucli.c index 43a4f3c2..9b4314a0 100644 --- a/packages/platforms/inventec/x86-64/d5264q28b/onlp/builds/x86_64_inventec_d5264q28b/module/src/x86_64_inventec_d5264q28b_ucli.c +++ b/packages/platforms/inventec/x86-64/d5264q28b/onlp/builds/x86_64_inventec_d5264q28b/module/src/x86_64_inventec_d5264q28b_ucli.c @@ -5,7 +5,7 @@ *****************************************************************************/ #include -#if x86_64_inventec_d5264q28b_CONFIG_INCLUDE_UCLI == 1 +#if X86_64_INVENTEC_D5264Q28B_CONFIG_INCLUDE_UCLI == 1 #include #include diff --git a/packages/platforms/inventec/x86-64/d6254qs/onlp/builds/x86_64_inventec_d6254qs/Makefile b/packages/platforms/inventec/x86-64/d6254qs/onlp/builds/x86_64_inventec_d6254qs/Makefile index 5df565a9..71b48a78 100644 --- a/packages/platforms/inventec/x86-64/d6254qs/onlp/builds/x86_64_inventec_d6254qs/Makefile +++ b/packages/platforms/inventec/x86-64/d6254qs/onlp/builds/x86_64_inventec_d6254qs/Makefile @@ -1,9 +1,9 @@ ############################################################################### # -# +# # ############################################################################### -include ../../init.mk +include $(ONL)/make/config.mk MODULE := x86_64_inventec_d6254qs AUTOMODULE := x86_64_inventec_d6254qs include $(BUILDER)/definemodule.mk diff --git a/packages/platforms/inventec/x86-64/d6254qs/onlp/builds/x86_64_inventec_d6254qs/module/auto/x86_64_inventec_d6254qs.yml b/packages/platforms/inventec/x86-64/d6254qs/onlp/builds/x86_64_inventec_d6254qs/module/auto/x86_64_inventec_d6254qs.yml index 27ca30f2..aa2e3e09 100644 --- a/packages/platforms/inventec/x86-64/d6254qs/onlp/builds/x86_64_inventec_d6254qs/module/auto/x86_64_inventec_d6254qs.yml +++ b/packages/platforms/inventec/x86-64/d6254qs/onlp/builds/x86_64_inventec_d6254qs/module/auto/x86_64_inventec_d6254qs.yml @@ -5,40 +5,40 @@ ############################################################################### cdefs: &cdefs -- X86_64_INVENTEC_D7032Q28B_CONFIG_INCLUDE_LOGGING: +- X86_64_INVENTEC_D6254QS_CONFIG_INCLUDE_LOGGING: doc: "Include or exclude logging." default: 1 -- X86_64_INVENTEC_D7032Q28B_CONFIG_LOG_OPTIONS_DEFAULT: +- X86_64_INVENTEC_D6254QS_CONFIG_LOG_OPTIONS_DEFAULT: doc: "Default enabled log options." default: AIM_LOG_OPTIONS_DEFAULT -- X86_64_INVENTEC_D7032Q28B_CONFIG_LOG_BITS_DEFAULT: +- X86_64_INVENTEC_D6254QS_CONFIG_LOG_BITS_DEFAULT: doc: "Default enabled log bits." default: AIM_LOG_BITS_DEFAULT -- X86_64_INVENTEC_D7032Q28B_CONFIG_LOG_CUSTOM_BITS_DEFAULT: +- X86_64_INVENTEC_D6254QS_CONFIG_LOG_CUSTOM_BITS_DEFAULT: doc: "Default enabled custom log bits." default: 0 -- X86_64_INVENTEC_D7032Q28B_CONFIG_PORTING_STDLIB: +- X86_64_INVENTEC_D6254QS_CONFIG_PORTING_STDLIB: doc: "Default all porting macros to use the C standard libraries." default: 1 -- X86_64_INVENTEC_D7032Q28B_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS: +- X86_64_INVENTEC_D6254QS_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS: doc: "Include standard library headers for stdlib porting macros." - default: X86_64_INVENTEC_D7032Q28B_CONFIG_PORTING_STDLIB -- X86_64_INVENTEC_D7032Q28B_CONFIG_INCLUDE_UCLI: + default: X86_64_INVENTEC_D6254QS_CONFIG_PORTING_STDLIB +- X86_64_INVENTEC_D6254QS_CONFIG_INCLUDE_UCLI: doc: "Include generic uCli support." default: 0 -- X86_64_INVENTEC_D7032Q28B_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION: +- X86_64_INVENTEC_D6254QS_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION: doc: "Assume chassis fan direction is the same as the PSU fan direction." default: 0 definitions: cdefs: - X86_64_INVENTEC_D7032Q28B_CONFIG_HEADER: + X86_64_INVENTEC_D6254QS_CONFIG_HEADER: defs: *cdefs basename: x86_64_inventec_d6254qs_config portingmacro: - X86_64_INVENTEC_D7032Q28B: + X86_64_INVENTEC_D6254QS: macros: - malloc - free diff --git a/packages/platforms/inventec/x86-64/d6254qs/onlp/builds/x86_64_inventec_d6254qs/module/inc/x86_64_inventec_d6254qs/x86_64_inventec_d6254qs_config.h b/packages/platforms/inventec/x86-64/d6254qs/onlp/builds/x86_64_inventec_d6254qs/module/inc/x86_64_inventec_d6254qs/x86_64_inventec_d6254qs_config.h index 647081d3..2584daaf 100644 --- a/packages/platforms/inventec/x86-64/d6254qs/onlp/builds/x86_64_inventec_d6254qs/module/inc/x86_64_inventec_d6254qs/x86_64_inventec_d6254qs_config.h +++ b/packages/platforms/inventec/x86-64/d6254qs/onlp/builds/x86_64_inventec_d6254qs/module/inc/x86_64_inventec_d6254qs/x86_64_inventec_d6254qs_config.h @@ -17,86 +17,86 @@ #include #endif -/* */ +/* */ #include /** - * x86_64_inventec_d6254qs_CONFIG_INCLUDE_LOGGING + * X86_64_INVENTEC_D6254QS_CONFIG_INCLUDE_LOGGING * * Include or exclude logging. */ -#ifndef x86_64_inventec_d6254qs_CONFIG_INCLUDE_LOGGING -#define x86_64_inventec_d6254qs_CONFIG_INCLUDE_LOGGING 1 +#ifndef X86_64_INVENTEC_D6254QS_CONFIG_INCLUDE_LOGGING +#define X86_64_INVENTEC_D6254QS_CONFIG_INCLUDE_LOGGING 1 #endif /** - * x86_64_inventec_d6254qs_CONFIG_LOG_OPTIONS_DEFAULT + * X86_64_INVENTEC_D6254QS_CONFIG_LOG_OPTIONS_DEFAULT * * Default enabled log options. */ -#ifndef x86_64_inventec_d6254qs_CONFIG_LOG_OPTIONS_DEFAULT -#define x86_64_inventec_d6254qs_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT +#ifndef X86_64_INVENTEC_D6254QS_CONFIG_LOG_OPTIONS_DEFAULT +#define X86_64_INVENTEC_D6254QS_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT #endif /** - * x86_64_inventec_d6254qs_CONFIG_LOG_BITS_DEFAULT + * X86_64_INVENTEC_D6254QS_CONFIG_LOG_BITS_DEFAULT * * Default enabled log bits. */ -#ifndef x86_64_inventec_d6254qs_CONFIG_LOG_BITS_DEFAULT -#define x86_64_inventec_d6254qs_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT +#ifndef X86_64_INVENTEC_D6254QS_CONFIG_LOG_BITS_DEFAULT +#define X86_64_INVENTEC_D6254QS_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT #endif /** - * x86_64_inventec_d6254qs_CONFIG_LOG_CUSTOM_BITS_DEFAULT + * X86_64_INVENTEC_D6254QS_CONFIG_LOG_CUSTOM_BITS_DEFAULT * * Default enabled custom log bits. */ -#ifndef x86_64_inventec_d6254qs_CONFIG_LOG_CUSTOM_BITS_DEFAULT -#define x86_64_inventec_d6254qs_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 +#ifndef X86_64_INVENTEC_D6254QS_CONFIG_LOG_CUSTOM_BITS_DEFAULT +#define X86_64_INVENTEC_D6254QS_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 #endif /** - * x86_64_inventec_d6254qs_CONFIG_PORTING_STDLIB + * X86_64_INVENTEC_D6254QS_CONFIG_PORTING_STDLIB * * Default all porting macros to use the C standard libraries. */ -#ifndef x86_64_inventec_d6254qs_CONFIG_PORTING_STDLIB -#define x86_64_inventec_d6254qs_CONFIG_PORTING_STDLIB 1 +#ifndef X86_64_INVENTEC_D6254QS_CONFIG_PORTING_STDLIB +#define X86_64_INVENTEC_D6254QS_CONFIG_PORTING_STDLIB 1 #endif /** - * x86_64_inventec_d6254qs_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + * X86_64_INVENTEC_D6254QS_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS * * Include standard library headers for stdlib porting macros. */ -#ifndef x86_64_inventec_d6254qs_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS -#define x86_64_inventec_d6254qs_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS x86_64_inventec_d6254qs_CONFIG_PORTING_STDLIB +#ifndef X86_64_INVENTEC_D6254QS_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS +#define X86_64_INVENTEC_D6254QS_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS X86_64_INVENTEC_D6254QS_CONFIG_PORTING_STDLIB #endif /** - * x86_64_inventec_d6254qs_CONFIG_INCLUDE_UCLI + * X86_64_INVENTEC_D6254QS_CONFIG_INCLUDE_UCLI * * Include generic uCli support. */ -#ifndef x86_64_inventec_d6254qs_CONFIG_INCLUDE_UCLI -#define x86_64_inventec_d6254qs_CONFIG_INCLUDE_UCLI 0 +#ifndef X86_64_INVENTEC_D6254QS_CONFIG_INCLUDE_UCLI +#define X86_64_INVENTEC_D6254QS_CONFIG_INCLUDE_UCLI 0 #endif /** - * x86_64_inventec_d6254qs_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION + * X86_64_INVENTEC_D6254QS_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION * * Assume chassis fan direction is the same as the PSU fan direction. */ -#ifndef x86_64_inventec_d6254qs_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION -#define x86_64_inventec_d6254qs_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION 0 +#ifndef X86_64_INVENTEC_D6254QS_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION +#define X86_64_INVENTEC_D6254QS_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION 0 #endif @@ -129,7 +129,7 @@ const char* x86_64_inventec_d6254qs_config_lookup(const char* setting); */ int x86_64_inventec_d6254qs_config_show(struct aim_pvs_s* pvs); -/* */ +/* */ #include "x86_64_inventec_d6254qs_porting.h" diff --git a/packages/platforms/inventec/x86-64/d6254qs/onlp/builds/x86_64_inventec_d6254qs/module/inc/x86_64_inventec_d6254qs/x86_64_inventec_d6254qs_porting.h b/packages/platforms/inventec/x86-64/d6254qs/onlp/builds/x86_64_inventec_d6254qs/module/inc/x86_64_inventec_d6254qs/x86_64_inventec_d6254qs_porting.h index 66f0981e..8f4b9007 100644 --- a/packages/platforms/inventec/x86-64/d6254qs/onlp/builds/x86_64_inventec_d6254qs/module/inc/x86_64_inventec_d6254qs/x86_64_inventec_d6254qs_porting.h +++ b/packages/platforms/inventec/x86-64/d6254qs/onlp/builds/x86_64_inventec_d6254qs/module/inc/x86_64_inventec_d6254qs/x86_64_inventec_d6254qs_porting.h @@ -12,7 +12,7 @@ /* */ -#if x86_64_inventec_d6254qs_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 +#if X86_64_INVENTEC_D6254QS_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 #include #include #include @@ -20,83 +20,83 @@ #include #endif -#ifndef x86_64_inventec_d6254qs_MALLOC +#ifndef X86_64_INVENTEC_D6254QS_MALLOC #if defined(GLOBAL_MALLOC) - #define x86_64_inventec_d6254qs_MALLOC GLOBAL_MALLOC - #elif x86_64_inventec_d6254qs_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d6254qs_MALLOC malloc + #define X86_64_INVENTEC_D6254QS_MALLOC GLOBAL_MALLOC + #elif X86_64_INVENTEC_D6254QS_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D6254QS_MALLOC malloc #else - #error The macro x86_64_inventec_d6254qs_MALLOC is required but cannot be defined. + #error The macro X86_64_INVENTEC_D6254QS_MALLOC is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d6254qs_FREE +#ifndef X86_64_INVENTEC_D6254QS_FREE #if defined(GLOBAL_FREE) - #define x86_64_inventec_d6254qs_FREE GLOBAL_FREE - #elif x86_64_inventec_d6254qs_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d6254qs_FREE free + #define X86_64_INVENTEC_D6254QS_FREE GLOBAL_FREE + #elif X86_64_INVENTEC_D6254QS_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D6254QS_FREE free #else - #error The macro x86_64_inventec_d6254qs_FREE is required but cannot be defined. + #error The macro X86_64_INVENTEC_D6254QS_FREE is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d6254qs_MEMSET +#ifndef X86_64_INVENTEC_D6254QS_MEMSET #if defined(GLOBAL_MEMSET) - #define x86_64_inventec_d6254qs_MEMSET GLOBAL_MEMSET - #elif x86_64_inventec_d6254qs_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d6254qs_MEMSET memset + #define X86_64_INVENTEC_D6254QS_MEMSET GLOBAL_MEMSET + #elif X86_64_INVENTEC_D6254QS_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D6254QS_MEMSET memset #else - #error The macro x86_64_inventec_d6254qs_MEMSET is required but cannot be defined. + #error The macro X86_64_INVENTEC_D6254QS_MEMSET is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d6254qs_MEMCPY +#ifndef X86_64_INVENTEC_D6254QS_MEMCPY #if defined(GLOBAL_MEMCPY) - #define x86_64_inventec_d6254qs_MEMCPY GLOBAL_MEMCPY - #elif x86_64_inventec_d6254qs_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d6254qs_MEMCPY memcpy + #define X86_64_INVENTEC_D6254QS_MEMCPY GLOBAL_MEMCPY + #elif X86_64_INVENTEC_D6254QS_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D6254QS_MEMCPY memcpy #else - #error The macro x86_64_inventec_d6254qs_MEMCPY is required but cannot be defined. + #error The macro X86_64_INVENTEC_D6254QS_MEMCPY is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d6254qs_STRNCPY +#ifndef X86_64_INVENTEC_D6254QS_STRNCPY #if defined(GLOBAL_STRNCPY) - #define x86_64_inventec_d6254qs_STRNCPY GLOBAL_STRNCPY - #elif x86_64_inventec_d6254qs_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d6254qs_STRNCPY strncpy + #define X86_64_INVENTEC_D6254QS_STRNCPY GLOBAL_STRNCPY + #elif X86_64_INVENTEC_D6254QS_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D6254QS_STRNCPY strncpy #else - #error The macro x86_64_inventec_d6254qs_STRNCPY is required but cannot be defined. + #error The macro X86_64_INVENTEC_D6254QS_STRNCPY is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d6254qs_VSNPRINTF +#ifndef X86_64_INVENTEC_D6254QS_VSNPRINTF #if defined(GLOBAL_VSNPRINTF) - #define x86_64_inventec_d6254qs_VSNPRINTF GLOBAL_VSNPRINTF - #elif x86_64_inventec_d6254qs_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d6254qs_VSNPRINTF vsnprintf + #define X86_64_INVENTEC_D6254QS_VSNPRINTF GLOBAL_VSNPRINTF + #elif X86_64_INVENTEC_D6254QS_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D6254QS_VSNPRINTF vsnprintf #else - #error The macro x86_64_inventec_d6254qs_VSNPRINTF is required but cannot be defined. + #error The macro X86_64_INVENTEC_D6254QS_VSNPRINTF is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d6254qs_SNPRINTF +#ifndef X86_64_INVENTEC_D6254QS_SNPRINTF #if defined(GLOBAL_SNPRINTF) - #define x86_64_inventec_d6254qs_SNPRINTF GLOBAL_SNPRINTF - #elif x86_64_inventec_d6254qs_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d6254qs_SNPRINTF snprintf + #define X86_64_INVENTEC_D6254QS_SNPRINTF GLOBAL_SNPRINTF + #elif X86_64_INVENTEC_D6254QS_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D6254QS_SNPRINTF snprintf #else - #error The macro x86_64_inventec_d6254qs_SNPRINTF is required but cannot be defined. + #error The macro X86_64_INVENTEC_D6254QS_SNPRINTF is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d6254qs_STRLEN +#ifndef X86_64_INVENTEC_D6254QS_STRLEN #if defined(GLOBAL_STRLEN) - #define x86_64_inventec_d6254qs_STRLEN GLOBAL_STRLEN - #elif x86_64_inventec_d6254qs_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d6254qs_STRLEN strlen + #define X86_64_INVENTEC_D6254QS_STRLEN GLOBAL_STRLEN + #elif X86_64_INVENTEC_D6254QS_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D6254QS_STRLEN strlen #else - #error The macro x86_64_inventec_d6254qs_STRLEN is required but cannot be defined. + #error The macro X86_64_INVENTEC_D6254QS_STRLEN is required but cannot be defined. #endif #endif diff --git a/packages/platforms/inventec/x86-64/d6254qs/onlp/builds/x86_64_inventec_d6254qs/module/src/x86_64_inventec_d6254qs_config.c b/packages/platforms/inventec/x86-64/d6254qs/onlp/builds/x86_64_inventec_d6254qs/module/src/x86_64_inventec_d6254qs_config.c index 146c25c0..58e94e40 100644 --- a/packages/platforms/inventec/x86-64/d6254qs/onlp/builds/x86_64_inventec_d6254qs/module/src/x86_64_inventec_d6254qs_config.c +++ b/packages/platforms/inventec/x86-64/d6254qs/onlp/builds/x86_64_inventec_d6254qs/module/src/x86_64_inventec_d6254qs_config.c @@ -5,50 +5,50 @@ *****************************************************************************/ #include -/* */ +/* */ #define __x86_64_inventec_d6254qs_config_STRINGIFY_NAME(_x) #_x #define __x86_64_inventec_d6254qs_config_STRINGIFY_VALUE(_x) __x86_64_inventec_d6254qs_config_STRINGIFY_NAME(_x) x86_64_inventec_d6254qs_config_settings_t x86_64_inventec_d6254qs_config_settings[] = { -#ifdef x86_64_inventec_d6254qs_CONFIG_INCLUDE_LOGGING - { __x86_64_inventec_d6254qs_config_STRINGIFY_NAME(x86_64_inventec_d6254qs_CONFIG_INCLUDE_LOGGING), __x86_64_inventec_d6254qs_config_STRINGIFY_VALUE(x86_64_inventec_d6254qs_CONFIG_INCLUDE_LOGGING) }, +#ifdef X86_64_INVENTEC_D6254QS_CONFIG_INCLUDE_LOGGING + { __x86_64_inventec_d6254qs_config_STRINGIFY_NAME(X86_64_INVENTEC_D6254QS_CONFIG_INCLUDE_LOGGING), __x86_64_inventec_d6254qs_config_STRINGIFY_VALUE(X86_64_INVENTEC_D6254QS_CONFIG_INCLUDE_LOGGING) }, #else -{ x86_64_inventec_d6254qs_CONFIG_INCLUDE_LOGGING(__x86_64_inventec_d6254qs_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D6254QS_CONFIG_INCLUDE_LOGGING(__x86_64_inventec_d6254qs_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d6254qs_CONFIG_LOG_OPTIONS_DEFAULT - { __x86_64_inventec_d6254qs_config_STRINGIFY_NAME(x86_64_inventec_d6254qs_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_inventec_d6254qs_config_STRINGIFY_VALUE(x86_64_inventec_d6254qs_CONFIG_LOG_OPTIONS_DEFAULT) }, +#ifdef X86_64_INVENTEC_D6254QS_CONFIG_LOG_OPTIONS_DEFAULT + { __x86_64_inventec_d6254qs_config_STRINGIFY_NAME(X86_64_INVENTEC_D6254QS_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_inventec_d6254qs_config_STRINGIFY_VALUE(X86_64_INVENTEC_D6254QS_CONFIG_LOG_OPTIONS_DEFAULT) }, #else -{ x86_64_inventec_d6254qs_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_inventec_d6254qs_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D6254QS_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_inventec_d6254qs_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d6254qs_CONFIG_LOG_BITS_DEFAULT - { __x86_64_inventec_d6254qs_config_STRINGIFY_NAME(x86_64_inventec_d6254qs_CONFIG_LOG_BITS_DEFAULT), __x86_64_inventec_d6254qs_config_STRINGIFY_VALUE(x86_64_inventec_d6254qs_CONFIG_LOG_BITS_DEFAULT) }, +#ifdef X86_64_INVENTEC_D6254QS_CONFIG_LOG_BITS_DEFAULT + { __x86_64_inventec_d6254qs_config_STRINGIFY_NAME(X86_64_INVENTEC_D6254QS_CONFIG_LOG_BITS_DEFAULT), __x86_64_inventec_d6254qs_config_STRINGIFY_VALUE(X86_64_INVENTEC_D6254QS_CONFIG_LOG_BITS_DEFAULT) }, #else -{ x86_64_inventec_d6254qs_CONFIG_LOG_BITS_DEFAULT(__x86_64_inventec_d6254qs_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D6254QS_CONFIG_LOG_BITS_DEFAULT(__x86_64_inventec_d6254qs_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d6254qs_CONFIG_LOG_CUSTOM_BITS_DEFAULT - { __x86_64_inventec_d6254qs_config_STRINGIFY_NAME(x86_64_inventec_d6254qs_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_inventec_d6254qs_config_STRINGIFY_VALUE(x86_64_inventec_d6254qs_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, +#ifdef X86_64_INVENTEC_D6254QS_CONFIG_LOG_CUSTOM_BITS_DEFAULT + { __x86_64_inventec_d6254qs_config_STRINGIFY_NAME(X86_64_INVENTEC_D6254QS_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_inventec_d6254qs_config_STRINGIFY_VALUE(X86_64_INVENTEC_D6254QS_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, #else -{ x86_64_inventec_d6254qs_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_inventec_d6254qs_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D6254QS_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_inventec_d6254qs_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d6254qs_CONFIG_PORTING_STDLIB - { __x86_64_inventec_d6254qs_config_STRINGIFY_NAME(x86_64_inventec_d6254qs_CONFIG_PORTING_STDLIB), __x86_64_inventec_d6254qs_config_STRINGIFY_VALUE(x86_64_inventec_d6254qs_CONFIG_PORTING_STDLIB) }, +#ifdef X86_64_INVENTEC_D6254QS_CONFIG_PORTING_STDLIB + { __x86_64_inventec_d6254qs_config_STRINGIFY_NAME(X86_64_INVENTEC_D6254QS_CONFIG_PORTING_STDLIB), __x86_64_inventec_d6254qs_config_STRINGIFY_VALUE(X86_64_INVENTEC_D6254QS_CONFIG_PORTING_STDLIB) }, #else -{ x86_64_inventec_d6254qs_CONFIG_PORTING_STDLIB(__x86_64_inventec_d6254qs_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D6254QS_CONFIG_PORTING_STDLIB(__x86_64_inventec_d6254qs_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d6254qs_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS - { __x86_64_inventec_d6254qs_config_STRINGIFY_NAME(x86_64_inventec_d6254qs_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_inventec_d6254qs_config_STRINGIFY_VALUE(x86_64_inventec_d6254qs_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, +#ifdef X86_64_INVENTEC_D6254QS_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + { __x86_64_inventec_d6254qs_config_STRINGIFY_NAME(X86_64_INVENTEC_D6254QS_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_inventec_d6254qs_config_STRINGIFY_VALUE(X86_64_INVENTEC_D6254QS_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, #else -{ x86_64_inventec_d6254qs_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_inventec_d6254qs_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D6254QS_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_inventec_d6254qs_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d6254qs_CONFIG_INCLUDE_UCLI - { __x86_64_inventec_d6254qs_config_STRINGIFY_NAME(x86_64_inventec_d6254qs_CONFIG_INCLUDE_UCLI), __x86_64_inventec_d6254qs_config_STRINGIFY_VALUE(x86_64_inventec_d6254qs_CONFIG_INCLUDE_UCLI) }, +#ifdef X86_64_INVENTEC_D6254QS_CONFIG_INCLUDE_UCLI + { __x86_64_inventec_d6254qs_config_STRINGIFY_NAME(X86_64_INVENTEC_D6254QS_CONFIG_INCLUDE_UCLI), __x86_64_inventec_d6254qs_config_STRINGIFY_VALUE(X86_64_INVENTEC_D6254QS_CONFIG_INCLUDE_UCLI) }, #else -{ x86_64_inventec_d6254qs_CONFIG_INCLUDE_UCLI(__x86_64_inventec_d6254qs_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D6254QS_CONFIG_INCLUDE_UCLI(__x86_64_inventec_d6254qs_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d6254qs_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION - { __x86_64_inventec_d6254qs_config_STRINGIFY_NAME(x86_64_inventec_d6254qs_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __x86_64_inventec_d6254qs_config_STRINGIFY_VALUE(x86_64_inventec_d6254qs_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, +#ifdef X86_64_INVENTEC_D6254QS_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION + { __x86_64_inventec_d6254qs_config_STRINGIFY_NAME(X86_64_INVENTEC_D6254QS_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __x86_64_inventec_d6254qs_config_STRINGIFY_VALUE(X86_64_INVENTEC_D6254QS_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, #else -{ x86_64_inventec_d6254qs_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__x86_64_inventec_d6254qs_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D6254QS_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__x86_64_inventec_d6254qs_config_STRINGIFY_NAME), "__undefined__" }, #endif { NULL, NULL } }; @@ -60,7 +60,7 @@ x86_64_inventec_d6254qs_config_lookup(const char* setting) { int i; for(i = 0; x86_64_inventec_d6254qs_config_settings[i].name; i++) { - if(strcmp(x86_64_inventec_d6254qs_config_settings[i].name, setting)) { + if(!strcmp(x86_64_inventec_d6254qs_config_settings[i].name, setting)) { return x86_64_inventec_d6254qs_config_settings[i].value; } } @@ -77,5 +77,5 @@ x86_64_inventec_d6254qs_config_show(struct aim_pvs_s* pvs) return i; } -/* */ +/* */ diff --git a/packages/platforms/inventec/x86-64/d6254qs/onlp/builds/x86_64_inventec_d6254qs/module/src/x86_64_inventec_d6254qs_log.c b/packages/platforms/inventec/x86-64/d6254qs/onlp/builds/x86_64_inventec_d6254qs/module/src/x86_64_inventec_d6254qs_log.c index 368a0420..f96d74ee 100644 --- a/packages/platforms/inventec/x86-64/d6254qs/onlp/builds/x86_64_inventec_d6254qs/module/src/x86_64_inventec_d6254qs_log.c +++ b/packages/platforms/inventec/x86-64/d6254qs/onlp/builds/x86_64_inventec_d6254qs/module/src/x86_64_inventec_d6254qs_log.c @@ -10,9 +10,8 @@ * x86_64_inventec_d6254qs log struct. */ AIM_LOG_STRUCT_DEFINE( - x86_64_inventec_d6254qs_CONFIG_LOG_OPTIONS_DEFAULT, - x86_64_inventec_d6254qs_CONFIG_LOG_BITS_DEFAULT, + X86_64_INVENTEC_D6254QS_CONFIG_LOG_OPTIONS_DEFAULT, + X86_64_INVENTEC_D6254QS_CONFIG_LOG_BITS_DEFAULT, NULL, /* Custom log map */ - x86_64_inventec_d6254qs_CONFIG_LOG_CUSTOM_BITS_DEFAULT + X86_64_INVENTEC_D6254QS_CONFIG_LOG_CUSTOM_BITS_DEFAULT ); - diff --git a/packages/platforms/inventec/x86-64/d6556/onlp/builds/x86_64_inventec_d6556/Makefile b/packages/platforms/inventec/x86-64/d6556/onlp/builds/x86_64_inventec_d6556/Makefile index 820243bf..fa1a27aa 100644 --- a/packages/platforms/inventec/x86-64/d6556/onlp/builds/x86_64_inventec_d6556/Makefile +++ b/packages/platforms/inventec/x86-64/d6556/onlp/builds/x86_64_inventec_d6556/Makefile @@ -1,9 +1,9 @@ ############################################################################### # -# +# # ############################################################################### -include ../../init.mk +include $(ONL)/make/config.mk MODULE := x86_64_inventec_d6556 AUTOMODULE := x86_64_inventec_d6556 include $(BUILDER)/definemodule.mk diff --git a/packages/platforms/inventec/x86-64/d6556/onlp/builds/x86_64_inventec_d6556/module/auto/x86_64_inventec_d6556.yml b/packages/platforms/inventec/x86-64/d6556/onlp/builds/x86_64_inventec_d6556/module/auto/x86_64_inventec_d6556.yml index 9fde9db5..850847d9 100644 --- a/packages/platforms/inventec/x86-64/d6556/onlp/builds/x86_64_inventec_d6556/module/auto/x86_64_inventec_d6556.yml +++ b/packages/platforms/inventec/x86-64/d6556/onlp/builds/x86_64_inventec_d6556/module/auto/x86_64_inventec_d6556.yml @@ -5,40 +5,40 @@ ############################################################################### cdefs: &cdefs -- x86_64_inventec_d6556_CONFIG_INCLUDE_LOGGING: +- X86_64_INVENTEC_D6556_CONFIG_INCLUDE_LOGGING: doc: "Include or exclude logging." default: 1 -- x86_64_inventec_d6556_CONFIG_LOG_OPTIONS_DEFAULT: +- X86_64_INVENTEC_D6556_CONFIG_LOG_OPTIONS_DEFAULT: doc: "Default enabled log options." default: AIM_LOG_OPTIONS_DEFAULT -- x86_64_inventec_d6556_CONFIG_LOG_BITS_DEFAULT: +- X86_64_INVENTEC_D6556_CONFIG_LOG_BITS_DEFAULT: doc: "Default enabled log bits." default: AIM_LOG_BITS_DEFAULT -- x86_64_inventec_d6556_CONFIG_LOG_CUSTOM_BITS_DEFAULT: +- X86_64_INVENTEC_D6556_CONFIG_LOG_CUSTOM_BITS_DEFAULT: doc: "Default enabled custom log bits." default: 0 -- x86_64_inventec_d6556_CONFIG_PORTING_STDLIB: +- X86_64_INVENTEC_D6556_CONFIG_PORTING_STDLIB: doc: "Default all porting macros to use the C standard libraries." default: 1 -- x86_64_inventec_d6556_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS: +- X86_64_INVENTEC_D6556_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS: doc: "Include standard library headers for stdlib porting macros." - default: x86_64_inventec_d6556_CONFIG_PORTING_STDLIB -- x86_64_inventec_d6556_CONFIG_INCLUDE_UCLI: + default: X86_64_INVENTEC_D6556_CONFIG_PORTING_STDLIB +- X86_64_INVENTEC_D6556_CONFIG_INCLUDE_UCLI: doc: "Include generic uCli support." default: 0 -- x86_64_inventec_d6556_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION: +- X86_64_INVENTEC_D6556_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION: doc: "Assume chassis fan direction is the same as the PSU fan direction." default: 0 definitions: cdefs: - x86_64_inventec_d6556_CONFIG_HEADER: + X86_64_INVENTEC_D6556_CONFIG_HEADER: defs: *cdefs - basename: x86_64_inventec_d6556_config + basename: X86_64_INVENTEC_D6556_config portingmacro: - x86_64_inventec_d6556: + X86_64_INVENTEC_d6556: macros: - malloc - free diff --git a/packages/platforms/inventec/x86-64/d6556/onlp/builds/x86_64_inventec_d6556/module/inc/x86_64_inventec_d6556/x86_64_inventec_d6556_config.h b/packages/platforms/inventec/x86-64/d6556/onlp/builds/x86_64_inventec_d6556/module/inc/x86_64_inventec_d6556/x86_64_inventec_d6556_config.h index 83f3c163..4f71b165 100644 --- a/packages/platforms/inventec/x86-64/d6556/onlp/builds/x86_64_inventec_d6556/module/inc/x86_64_inventec_d6556/x86_64_inventec_d6556_config.h +++ b/packages/platforms/inventec/x86-64/d6556/onlp/builds/x86_64_inventec_d6556/module/inc/x86_64_inventec_d6556/x86_64_inventec_d6556_config.h @@ -17,86 +17,86 @@ #include #endif -/* */ +/* */ #include /** - * x86_64_inventec_d6556_CONFIG_INCLUDE_LOGGING + * X86_64_INVENTEC_D6556_CONFIG_INCLUDE_LOGGING * * Include or exclude logging. */ -#ifndef x86_64_inventec_d6556_CONFIG_INCLUDE_LOGGING -#define x86_64_inventec_d6556_CONFIG_INCLUDE_LOGGING 1 +#ifndef X86_64_INVENTEC_D6556_CONFIG_INCLUDE_LOGGING +#define X86_64_INVENTEC_D6556_CONFIG_INCLUDE_LOGGING 1 #endif /** - * x86_64_inventec_d6556_CONFIG_LOG_OPTIONS_DEFAULT + * X86_64_INVENTEC_D6556_CONFIG_LOG_OPTIONS_DEFAULT * * Default enabled log options. */ -#ifndef x86_64_inventec_d6556_CONFIG_LOG_OPTIONS_DEFAULT -#define x86_64_inventec_d6556_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT +#ifndef X86_64_INVENTEC_D6556_CONFIG_LOG_OPTIONS_DEFAULT +#define X86_64_INVENTEC_D6556_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT #endif /** - * x86_64_inventec_d6556_CONFIG_LOG_BITS_DEFAULT + * X86_64_INVENTEC_D6556_CONFIG_LOG_BITS_DEFAULT * * Default enabled log bits. */ -#ifndef x86_64_inventec_d6556_CONFIG_LOG_BITS_DEFAULT -#define x86_64_inventec_d6556_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT +#ifndef X86_64_INVENTEC_D6556_CONFIG_LOG_BITS_DEFAULT +#define X86_64_INVENTEC_D6556_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT #endif /** - * x86_64_inventec_d6556_CONFIG_LOG_CUSTOM_BITS_DEFAULT + * X86_64_INVENTEC_D6556_CONFIG_LOG_CUSTOM_BITS_DEFAULT * * Default enabled custom log bits. */ -#ifndef x86_64_inventec_d6556_CONFIG_LOG_CUSTOM_BITS_DEFAULT -#define x86_64_inventec_d6556_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 +#ifndef X86_64_INVENTEC_D6556_CONFIG_LOG_CUSTOM_BITS_DEFAULT +#define X86_64_INVENTEC_D6556_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 #endif /** - * x86_64_inventec_d6556_CONFIG_PORTING_STDLIB + * X86_64_INVENTEC_D6556_CONFIG_PORTING_STDLIB * * Default all porting macros to use the C standard libraries. */ -#ifndef x86_64_inventec_d6556_CONFIG_PORTING_STDLIB -#define x86_64_inventec_d6556_CONFIG_PORTING_STDLIB 1 +#ifndef X86_64_INVENTEC_D6556_CONFIG_PORTING_STDLIB +#define X86_64_INVENTEC_D6556_CONFIG_PORTING_STDLIB 1 #endif /** - * x86_64_inventec_d6556_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + * X86_64_INVENTEC_D6556_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS * * Include standard library headers for stdlib porting macros. */ -#ifndef x86_64_inventec_d6556_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS -#define x86_64_inventec_d6556_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS x86_64_inventec_d6556_CONFIG_PORTING_STDLIB +#ifndef X86_64_INVENTEC_D6556_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS +#define X86_64_INVENTEC_D6556_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS X86_64_INVENTEC_D6556_CONFIG_PORTING_STDLIB #endif /** - * x86_64_inventec_d6556_CONFIG_INCLUDE_UCLI + * X86_64_INVENTEC_D6556_CONFIG_INCLUDE_UCLI * * Include generic uCli support. */ -#ifndef x86_64_inventec_d6556_CONFIG_INCLUDE_UCLI -#define x86_64_inventec_d6556_CONFIG_INCLUDE_UCLI 0 +#ifndef X86_64_INVENTEC_D6556_CONFIG_INCLUDE_UCLI +#define X86_64_INVENTEC_D6556_CONFIG_INCLUDE_UCLI 0 #endif /** - * x86_64_inventec_d6556_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION + * X86_64_INVENTEC_D6556_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION * * Assume chassis fan direction is the same as the PSU fan direction. */ -#ifndef x86_64_inventec_d6556_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION -#define x86_64_inventec_d6556_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION 0 +#ifndef X86_64_INVENTEC_D6556_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION +#define X86_64_INVENTEC_D6556_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION 0 #endif @@ -106,30 +106,30 @@ */ /** Configuration settings structure. */ -typedef struct x86_64_inventec_d6556_config_settings_s { +typedef struct X86_64_INVENTEC_D6556_config_settings_s { /** name */ const char* name; /** value */ const char* value; -} x86_64_inventec_d6556_config_settings_t; +} X86_64_INVENTEC_D6556_config_settings_t; /** Configuration settings table. */ -/** x86_64_inventec_d6556_config_settings table. */ -extern x86_64_inventec_d6556_config_settings_t x86_64_inventec_d6556_config_settings[]; +/** X86_64_INVENTEC_D6556_config_settings table. */ +extern X86_64_INVENTEC_D6556_config_settings_t X86_64_INVENTEC_D6556_config_settings[]; /** * @brief Lookup a configuration setting. * @param setting The name of the configuration option to lookup. */ -const char* x86_64_inventec_d6556_config_lookup(const char* setting); +const char* _x86_64__i_n_v_e_n_t_e_c__d6556_config_lookup(const char* setting); /** * @brief Show the compile-time configuration. * @param pvs The output stream. */ -int x86_64_inventec_d6556_config_show(struct aim_pvs_s* pvs); +int _x86_64__i_n_v_e_n_t_e_c__d6556_config_show(struct aim_pvs_s* pvs); -/* */ +/* */ #include "x86_64_inventec_d6556_porting.h" diff --git a/packages/platforms/inventec/x86-64/d6556/onlp/builds/x86_64_inventec_d6556/module/inc/x86_64_inventec_d6556/x86_64_inventec_d6556_porting.h b/packages/platforms/inventec/x86-64/d6556/onlp/builds/x86_64_inventec_d6556/module/inc/x86_64_inventec_d6556/x86_64_inventec_d6556_porting.h index 36a3ac83..7cd9583e 100644 --- a/packages/platforms/inventec/x86-64/d6556/onlp/builds/x86_64_inventec_d6556/module/inc/x86_64_inventec_d6556/x86_64_inventec_d6556_porting.h +++ b/packages/platforms/inventec/x86-64/d6556/onlp/builds/x86_64_inventec_d6556/module/inc/x86_64_inventec_d6556/x86_64_inventec_d6556_porting.h @@ -12,7 +12,7 @@ /* */ -#if x86_64_inventec_d6556_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 +#if X86_64_INVENTEC_D6556_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 #include #include #include @@ -20,83 +20,83 @@ #include #endif -#ifndef x86_64_inventec_d6556_MALLOC +#ifndef X86_64_INVENTEC_D6556_MALLOC #if defined(GLOBAL_MALLOC) - #define x86_64_inventec_d6556_MALLOC GLOBAL_MALLOC - #elif x86_64_inventec_d6556_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d6556_MALLOC malloc + #define X86_64_INVENTEC_D6556_MALLOC GLOBAL_MALLOC + #elif X86_64_INVENTEC_D6556_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D6556_MALLOC malloc #else - #error The macro x86_64_inventec_d6556_MALLOC is required but cannot be defined. + #error The macro X86_64_INVENTEC_D6556_MALLOC is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d6556_FREE +#ifndef X86_64_INVENTEC_D6556_FREE #if defined(GLOBAL_FREE) - #define x86_64_inventec_d6556_FREE GLOBAL_FREE - #elif x86_64_inventec_d6556_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d6556_FREE free + #define X86_64_INVENTEC_D6556_FREE GLOBAL_FREE + #elif X86_64_INVENTEC_D6556_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D6556_FREE free #else - #error The macro x86_64_inventec_d6556_FREE is required but cannot be defined. + #error The macro X86_64_INVENTEC_D6556_FREE is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d6556_MEMSET +#ifndef X86_64_INVENTEC_D6556_MEMSET #if defined(GLOBAL_MEMSET) - #define x86_64_inventec_d6556_MEMSET GLOBAL_MEMSET - #elif x86_64_inventec_d6556_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d6556_MEMSET memset + #define X86_64_INVENTEC_D6556_MEMSET GLOBAL_MEMSET + #elif X86_64_INVENTEC_D6556_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D6556_MEMSET memset #else - #error The macro x86_64_inventec_d6556_MEMSET is required but cannot be defined. + #error The macro X86_64_INVENTEC_D6556_MEMSET is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d6556_MEMCPY +#ifndef X86_64_INVENTEC_D6556_MEMCPY #if defined(GLOBAL_MEMCPY) - #define x86_64_inventec_d6556_MEMCPY GLOBAL_MEMCPY - #elif x86_64_inventec_d6556_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d6556_MEMCPY memcpy + #define X86_64_INVENTEC_D6556_MEMCPY GLOBAL_MEMCPY + #elif X86_64_INVENTEC_D6556_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D6556_MEMCPY memcpy #else - #error The macro x86_64_inventec_d6556_MEMCPY is required but cannot be defined. + #error The macro X86_64_INVENTEC_D6556_MEMCPY is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d6556_STRNCPY +#ifndef X86_64_INVENTEC_D6556_STRNCPY #if defined(GLOBAL_STRNCPY) - #define x86_64_inventec_d6556_STRNCPY GLOBAL_STRNCPY - #elif x86_64_inventec_d6556_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d6556_STRNCPY strncpy + #define X86_64_INVENTEC_D6556_STRNCPY GLOBAL_STRNCPY + #elif X86_64_INVENTEC_D6556_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D6556_STRNCPY strncpy #else - #error The macro x86_64_inventec_d6556_STRNCPY is required but cannot be defined. + #error The macro X86_64_INVENTEC_D6556_STRNCPY is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d6556_VSNPRINTF +#ifndef X86_64_INVENTEC_D6556_VSNPRINTF #if defined(GLOBAL_VSNPRINTF) - #define x86_64_inventec_d6556_VSNPRINTF GLOBAL_VSNPRINTF - #elif x86_64_inventec_d6556_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d6556_VSNPRINTF vsnprintf + #define X86_64_INVENTEC_D6556_VSNPRINTF GLOBAL_VSNPRINTF + #elif X86_64_INVENTEC_D6556_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D6556_VSNPRINTF vsnprintf #else - #error The macro x86_64_inventec_d6556_VSNPRINTF is required but cannot be defined. + #error The macro X86_64_INVENTEC_D6556_VSNPRINTF is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d6556_SNPRINTF +#ifndef X86_64_INVENTEC_D6556_SNPRINTF #if defined(GLOBAL_SNPRINTF) - #define x86_64_inventec_d6556_SNPRINTF GLOBAL_SNPRINTF - #elif x86_64_inventec_d6556_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d6556_SNPRINTF snprintf + #define X86_64_INVENTEC_D6556_SNPRINTF GLOBAL_SNPRINTF + #elif X86_64_INVENTEC_D6556_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D6556_SNPRINTF snprintf #else - #error The macro x86_64_inventec_d6556_SNPRINTF is required but cannot be defined. + #error The macro X86_64_INVENTEC_D6556_SNPRINTF is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d6556_STRLEN +#ifndef X86_64_INVENTEC_D6556_STRLEN #if defined(GLOBAL_STRLEN) - #define x86_64_inventec_d6556_STRLEN GLOBAL_STRLEN - #elif x86_64_inventec_d6556_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d6556_STRLEN strlen + #define X86_64_INVENTEC_D6556_STRLEN GLOBAL_STRLEN + #elif X86_64_INVENTEC_D6556_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D6556_STRLEN strlen #else - #error The macro x86_64_inventec_d6556_STRLEN is required but cannot be defined. + #error The macro X86_64_INVENTEC_D6556_STRLEN is required but cannot be defined. #endif #endif diff --git a/packages/platforms/inventec/x86-64/d6556/onlp/builds/x86_64_inventec_d6556/module/src/x86_64_inventec_d6556_config.c b/packages/platforms/inventec/x86-64/d6556/onlp/builds/x86_64_inventec_d6556/module/src/x86_64_inventec_d6556_config.c index 042d15c4..15cd1028 100644 --- a/packages/platforms/inventec/x86-64/d6556/onlp/builds/x86_64_inventec_d6556/module/src/x86_64_inventec_d6556_config.c +++ b/packages/platforms/inventec/x86-64/d6556/onlp/builds/x86_64_inventec_d6556/module/src/x86_64_inventec_d6556_config.c @@ -5,77 +5,77 @@ *****************************************************************************/ #include -/* */ -#define __x86_64_inventec_d6556_config_STRINGIFY_NAME(_x) #_x -#define __x86_64_inventec_d6556_config_STRINGIFY_VALUE(_x) __x86_64_inventec_d6556_config_STRINGIFY_NAME(_x) -x86_64_inventec_d6556_config_settings_t x86_64_inventec_d6556_config_settings[] = +/* */ +#define __X86_64_INVENTEC_D6556_config_STRINGIFY_NAME(_x) #_x +#define __X86_64_INVENTEC_D6556_config_STRINGIFY_VALUE(_x) __X86_64_INVENTEC_D6556_config_STRINGIFY_NAME(_x) +X86_64_INVENTEC_D6556_config_settings_t X86_64_INVENTEC_D6556_config_settings[] = { -#ifdef x86_64_inventec_d6556_CONFIG_INCLUDE_LOGGING - { __x86_64_inventec_d6556_config_STRINGIFY_NAME(x86_64_inventec_d6556_CONFIG_INCLUDE_LOGGING), __x86_64_inventec_d6556_config_STRINGIFY_VALUE(x86_64_inventec_d6556_CONFIG_INCLUDE_LOGGING) }, +#ifdef X86_64_INVENTEC_D6556_CONFIG_INCLUDE_LOGGING + { __X86_64_INVENTEC_D6556_config_STRINGIFY_NAME(X86_64_INVENTEC_D6556_CONFIG_INCLUDE_LOGGING), __X86_64_INVENTEC_D6556_config_STRINGIFY_VALUE(X86_64_INVENTEC_D6556_CONFIG_INCLUDE_LOGGING) }, #else -{ x86_64_inventec_d6556_CONFIG_INCLUDE_LOGGING(__x86_64_inventec_d6556_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D6556_CONFIG_INCLUDE_LOGGING(__X86_64_INVENTEC_D6556_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d6556_CONFIG_LOG_OPTIONS_DEFAULT - { __x86_64_inventec_d6556_config_STRINGIFY_NAME(x86_64_inventec_d6556_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_inventec_d6556_config_STRINGIFY_VALUE(x86_64_inventec_d6556_CONFIG_LOG_OPTIONS_DEFAULT) }, +#ifdef X86_64_INVENTEC_D6556_CONFIG_LOG_OPTIONS_DEFAULT + { __X86_64_INVENTEC_D6556_config_STRINGIFY_NAME(X86_64_INVENTEC_D6556_CONFIG_LOG_OPTIONS_DEFAULT), __X86_64_INVENTEC_D6556_config_STRINGIFY_VALUE(X86_64_INVENTEC_D6556_CONFIG_LOG_OPTIONS_DEFAULT) }, #else -{ x86_64_inventec_d6556_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_inventec_d6556_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D6556_CONFIG_LOG_OPTIONS_DEFAULT(__X86_64_INVENTEC_D6556_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d6556_CONFIG_LOG_BITS_DEFAULT - { __x86_64_inventec_d6556_config_STRINGIFY_NAME(x86_64_inventec_d6556_CONFIG_LOG_BITS_DEFAULT), __x86_64_inventec_d6556_config_STRINGIFY_VALUE(x86_64_inventec_d6556_CONFIG_LOG_BITS_DEFAULT) }, +#ifdef X86_64_INVENTEC_D6556_CONFIG_LOG_BITS_DEFAULT + { __X86_64_INVENTEC_D6556_config_STRINGIFY_NAME(X86_64_INVENTEC_D6556_CONFIG_LOG_BITS_DEFAULT), __X86_64_INVENTEC_D6556_config_STRINGIFY_VALUE(X86_64_INVENTEC_D6556_CONFIG_LOG_BITS_DEFAULT) }, #else -{ x86_64_inventec_d6556_CONFIG_LOG_BITS_DEFAULT(__x86_64_inventec_d6556_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D6556_CONFIG_LOG_BITS_DEFAULT(__X86_64_INVENTEC_D6556_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d6556_CONFIG_LOG_CUSTOM_BITS_DEFAULT - { __x86_64_inventec_d6556_config_STRINGIFY_NAME(x86_64_inventec_d6556_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_inventec_d6556_config_STRINGIFY_VALUE(x86_64_inventec_d6556_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, +#ifdef X86_64_INVENTEC_D6556_CONFIG_LOG_CUSTOM_BITS_DEFAULT + { __X86_64_INVENTEC_D6556_config_STRINGIFY_NAME(X86_64_INVENTEC_D6556_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __X86_64_INVENTEC_D6556_config_STRINGIFY_VALUE(X86_64_INVENTEC_D6556_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, #else -{ x86_64_inventec_d6556_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_inventec_d6556_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D6556_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__X86_64_INVENTEC_D6556_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d6556_CONFIG_PORTING_STDLIB - { __x86_64_inventec_d6556_config_STRINGIFY_NAME(x86_64_inventec_d6556_CONFIG_PORTING_STDLIB), __x86_64_inventec_d6556_config_STRINGIFY_VALUE(x86_64_inventec_d6556_CONFIG_PORTING_STDLIB) }, +#ifdef X86_64_INVENTEC_D6556_CONFIG_PORTING_STDLIB + { __X86_64_INVENTEC_D6556_config_STRINGIFY_NAME(X86_64_INVENTEC_D6556_CONFIG_PORTING_STDLIB), __X86_64_INVENTEC_D6556_config_STRINGIFY_VALUE(X86_64_INVENTEC_D6556_CONFIG_PORTING_STDLIB) }, #else -{ x86_64_inventec_d6556_CONFIG_PORTING_STDLIB(__x86_64_inventec_d6556_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D6556_CONFIG_PORTING_STDLIB(__X86_64_INVENTEC_D6556_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d6556_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS - { __x86_64_inventec_d6556_config_STRINGIFY_NAME(x86_64_inventec_d6556_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_inventec_d6556_config_STRINGIFY_VALUE(x86_64_inventec_d6556_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, +#ifdef X86_64_INVENTEC_D6556_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + { __X86_64_INVENTEC_D6556_config_STRINGIFY_NAME(X86_64_INVENTEC_D6556_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __X86_64_INVENTEC_D6556_config_STRINGIFY_VALUE(X86_64_INVENTEC_D6556_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, #else -{ x86_64_inventec_d6556_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_inventec_d6556_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D6556_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__X86_64_INVENTEC_D6556_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d6556_CONFIG_INCLUDE_UCLI - { __x86_64_inventec_d6556_config_STRINGIFY_NAME(x86_64_inventec_d6556_CONFIG_INCLUDE_UCLI), __x86_64_inventec_d6556_config_STRINGIFY_VALUE(x86_64_inventec_d6556_CONFIG_INCLUDE_UCLI) }, +#ifdef X86_64_INVENTEC_D6556_CONFIG_INCLUDE_UCLI + { __X86_64_INVENTEC_D6556_config_STRINGIFY_NAME(X86_64_INVENTEC_D6556_CONFIG_INCLUDE_UCLI), __X86_64_INVENTEC_D6556_config_STRINGIFY_VALUE(X86_64_INVENTEC_D6556_CONFIG_INCLUDE_UCLI) }, #else -{ x86_64_inventec_d6556_CONFIG_INCLUDE_UCLI(__x86_64_inventec_d6556_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D6556_CONFIG_INCLUDE_UCLI(__X86_64_INVENTEC_D6556_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d6556_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION - { __x86_64_inventec_d6556_config_STRINGIFY_NAME(x86_64_inventec_d6556_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __x86_64_inventec_d6556_config_STRINGIFY_VALUE(x86_64_inventec_d6556_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, +#ifdef X86_64_INVENTEC_D6556_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION + { __X86_64_INVENTEC_D6556_config_STRINGIFY_NAME(X86_64_INVENTEC_D6556_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __X86_64_INVENTEC_D6556_config_STRINGIFY_VALUE(X86_64_INVENTEC_D6556_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, #else -{ x86_64_inventec_d6556_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__x86_64_inventec_d6556_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D6556_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__X86_64_INVENTEC_D6556_config_STRINGIFY_NAME), "__undefined__" }, #endif { NULL, NULL } }; -#undef __x86_64_inventec_d6556_config_STRINGIFY_VALUE -#undef __x86_64_inventec_d6556_config_STRINGIFY_NAME +#undef __X86_64_INVENTEC_D6556_config_STRINGIFY_VALUE +#undef __X86_64_INVENTEC_D6556_config_STRINGIFY_NAME const char* -x86_64_inventec_d6556_config_lookup(const char* setting) +_x86_64__i_n_v_e_n_t_e_c__d6556_config_lookup(const char* setting) { int i; - for(i = 0; x86_64_inventec_d6556_config_settings[i].name; i++) { - if(strcmp(x86_64_inventec_d6556_config_settings[i].name, setting)) { - return x86_64_inventec_d6556_config_settings[i].value; + for(i = 0; X86_64_INVENTEC_D6556_config_settings[i].name; i++) { + if(!strcmp(X86_64_INVENTEC_D6556_config_settings[i].name, setting)) { + return X86_64_INVENTEC_D6556_config_settings[i].value; } } return NULL; } int -x86_64_inventec_d6556_config_show(struct aim_pvs_s* pvs) +_x86_64__i_n_v_e_n_t_e_c__d6556_config_show(struct aim_pvs_s* pvs) { int i; - for(i = 0; x86_64_inventec_d6556_config_settings[i].name; i++) { - aim_printf(pvs, "%s = %s\n", x86_64_inventec_d6556_config_settings[i].name, x86_64_inventec_d6556_config_settings[i].value); + for(i = 0; X86_64_INVENTEC_D6556_config_settings[i].name; i++) { + aim_printf(pvs, "%s = %s\n", X86_64_INVENTEC_D6556_config_settings[i].name, X86_64_INVENTEC_D6556_config_settings[i].value); } return i; } -/* */ +/* */ diff --git a/packages/platforms/inventec/x86-64/d6556/onlp/builds/x86_64_inventec_d6556/module/src/x86_64_inventec_d6556_log.c b/packages/platforms/inventec/x86-64/d6556/onlp/builds/x86_64_inventec_d6556/module/src/x86_64_inventec_d6556_log.c index 7eb13c1c..37dc4935 100644 --- a/packages/platforms/inventec/x86-64/d6556/onlp/builds/x86_64_inventec_d6556/module/src/x86_64_inventec_d6556_log.c +++ b/packages/platforms/inventec/x86-64/d6556/onlp/builds/x86_64_inventec_d6556/module/src/x86_64_inventec_d6556_log.c @@ -10,9 +10,9 @@ * x86_64_inventec_d6556 log struct. */ AIM_LOG_STRUCT_DEFINE( - x86_64_inventec_d6556_CONFIG_LOG_OPTIONS_DEFAULT, - x86_64_inventec_d6556_CONFIG_LOG_BITS_DEFAULT, + X86_64_INVENTEC_D6556_CONFIG_LOG_OPTIONS_DEFAULT, + X86_64_INVENTEC_D6556_CONFIG_LOG_BITS_DEFAULT, NULL, /* Custom log map */ - x86_64_inventec_d6556_CONFIG_LOG_CUSTOM_BITS_DEFAULT + X86_64_INVENTEC_D6556_CONFIG_LOG_CUSTOM_BITS_DEFAULT ); diff --git a/packages/platforms/inventec/x86-64/d6556/onlp/builds/x86_64_inventec_d6556/x86_64_inventec_d6556.mk b/packages/platforms/inventec/x86-64/d6556/onlp/builds/x86_64_inventec_d6556/x86_64_inventec_d6556.mk index c60e9765..03d43e8e 100644 --- a/packages/platforms/inventec/x86-64/d6556/onlp/builds/x86_64_inventec_d6556/x86_64_inventec_d6556.mk +++ b/packages/platforms/inventec/x86-64/d6556/onlp/builds/x86_64_inventec_d6556/x86_64_inventec_d6556.mk @@ -3,11 +3,11 @@ # # Inclusive Makefile for the x86_64_inventec_d6556 module. # -# Autogenerated 2018-11-30 07:22:11.055018 +# Autogenerated 2019-07-13 17:22:08.280267 # ############################################################################### x86_64_inventec_d6556_BASEDIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST)))) include $(x86_64_inventec_d6556_BASEDIR)module/make.mk -include $(x86_64_inventec_d6556_BASEDIR)module/src/make.mk include $(x86_64_inventec_d6556_BASEDIR)module/auto/make.mk +include $(x86_64_inventec_d6556_BASEDIR)module/src/make.mk diff --git a/packages/platforms/inventec/x86-64/d7054q28b/onlp/builds/x86_64_inventec_d7054q28b/Makefile b/packages/platforms/inventec/x86-64/d7054q28b/onlp/builds/x86_64_inventec_d7054q28b/Makefile index 9773a348..8f0f8139 100644 --- a/packages/platforms/inventec/x86-64/d7054q28b/onlp/builds/x86_64_inventec_d7054q28b/Makefile +++ b/packages/platforms/inventec/x86-64/d7054q28b/onlp/builds/x86_64_inventec_d7054q28b/Makefile @@ -1,9 +1,9 @@ ############################################################################### # -# +# # ############################################################################### -include ../../init.mk +include $(ONL)/make/config.mk MODULE := x86_64_inventec_d7054q28b AUTOMODULE := x86_64_inventec_d7054q28b include $(BUILDER)/definemodule.mk diff --git a/packages/platforms/inventec/x86-64/d7054q28b/onlp/builds/x86_64_inventec_d7054q28b/module/auto/x86_64_inventec_d7054q28b.yml b/packages/platforms/inventec/x86-64/d7054q28b/onlp/builds/x86_64_inventec_d7054q28b/module/auto/x86_64_inventec_d7054q28b.yml index e4fee295..b01d4f81 100644 --- a/packages/platforms/inventec/x86-64/d7054q28b/onlp/builds/x86_64_inventec_d7054q28b/module/auto/x86_64_inventec_d7054q28b.yml +++ b/packages/platforms/inventec/x86-64/d7054q28b/onlp/builds/x86_64_inventec_d7054q28b/module/auto/x86_64_inventec_d7054q28b.yml @@ -5,40 +5,40 @@ ############################################################################### cdefs: &cdefs -- X86_64_INVENTEC_D7032Q28B_CONFIG_INCLUDE_LOGGING: +- X86_64_INVENTEC_D7054Q28B_CONFIG_INCLUDE_LOGGING: doc: "Include or exclude logging." default: 1 -- X86_64_INVENTEC_D7032Q28B_CONFIG_LOG_OPTIONS_DEFAULT: +- X86_64_INVENTEC_D7054Q28B_CONFIG_LOG_OPTIONS_DEFAULT: doc: "Default enabled log options." default: AIM_LOG_OPTIONS_DEFAULT -- X86_64_INVENTEC_D7032Q28B_CONFIG_LOG_BITS_DEFAULT: +- X86_64_INVENTEC_D7054Q28B_CONFIG_LOG_BITS_DEFAULT: doc: "Default enabled log bits." default: AIM_LOG_BITS_DEFAULT -- X86_64_INVENTEC_D7032Q28B_CONFIG_LOG_CUSTOM_BITS_DEFAULT: +- X86_64_INVENTEC_D7054Q28B_CONFIG_LOG_CUSTOM_BITS_DEFAULT: doc: "Default enabled custom log bits." default: 0 -- X86_64_INVENTEC_D7032Q28B_CONFIG_PORTING_STDLIB: +- X86_64_INVENTEC_D7054Q28B_CONFIG_PORTING_STDLIB: doc: "Default all porting macros to use the C standard libraries." default: 1 -- X86_64_INVENTEC_D7032Q28B_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS: +- X86_64_INVENTEC_D7054Q28B_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS: doc: "Include standard library headers for stdlib porting macros." - default: X86_64_INVENTEC_D7032Q28B_CONFIG_PORTING_STDLIB -- X86_64_INVENTEC_D7032Q28B_CONFIG_INCLUDE_UCLI: + default: X86_64_INVENTEC_D7054Q28B_CONFIG_PORTING_STDLIB +- X86_64_INVENTEC_D7054Q28B_CONFIG_INCLUDE_UCLI: doc: "Include generic uCli support." default: 0 -- X86_64_INVENTEC_D7032Q28B_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION: +- X86_64_INVENTEC_D7054Q28B_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION: doc: "Assume chassis fan direction is the same as the PSU fan direction." default: 0 definitions: cdefs: - X86_64_INVENTEC_D7032Q28B_CONFIG_HEADER: + X86_64_INVENTEC_D7054Q28B_CONFIG_HEADER: defs: *cdefs basename: x86_64_inventec_d7054q28b_config portingmacro: - X86_64_INVENTEC_D7032Q28B: + X86_64_INVENTEC_D7054Q28B: macros: - malloc - free diff --git a/packages/platforms/inventec/x86-64/d7054q28b/onlp/builds/x86_64_inventec_d7054q28b/module/inc/x86_64_inventec_d7054q28b/x86_64_inventec_d7054q28b_config.h b/packages/platforms/inventec/x86-64/d7054q28b/onlp/builds/x86_64_inventec_d7054q28b/module/inc/x86_64_inventec_d7054q28b/x86_64_inventec_d7054q28b_config.h index b141a03a..174dfae9 100644 --- a/packages/platforms/inventec/x86-64/d7054q28b/onlp/builds/x86_64_inventec_d7054q28b/module/inc/x86_64_inventec_d7054q28b/x86_64_inventec_d7054q28b_config.h +++ b/packages/platforms/inventec/x86-64/d7054q28b/onlp/builds/x86_64_inventec_d7054q28b/module/inc/x86_64_inventec_d7054q28b/x86_64_inventec_d7054q28b_config.h @@ -7,8 +7,8 @@ * @{ * *****************************************************************************/ -#ifndef __x86_64_inventec_d7054q28b_CONFIG_H__ -#define __x86_64_inventec_d7054q28b_CONFIG_H__ +#ifndef __X86_64_INVENTEC_D7054Q28B_CONFIG_H__ +#define __X86_64_INVENTEC_D7054Q28B_CONFIG_H__ #ifdef GLOBAL_INCLUDE_CUSTOM_CONFIG #include @@ -17,86 +17,86 @@ #include #endif -/* */ +/* */ #include /** - * x86_64_inventec_d7054q28b_CONFIG_INCLUDE_LOGGING + * X86_64_INVENTEC_D7054Q28B_CONFIG_INCLUDE_LOGGING * * Include or exclude logging. */ -#ifndef x86_64_inventec_d7054q28b_CONFIG_INCLUDE_LOGGING -#define x86_64_inventec_d7054q28b_CONFIG_INCLUDE_LOGGING 1 +#ifndef X86_64_INVENTEC_D7054Q28B_CONFIG_INCLUDE_LOGGING +#define X86_64_INVENTEC_D7054Q28B_CONFIG_INCLUDE_LOGGING 1 #endif /** - * x86_64_inventec_d7054q28b_CONFIG_LOG_OPTIONS_DEFAULT + * X86_64_INVENTEC_D7054Q28B_CONFIG_LOG_OPTIONS_DEFAULT * * Default enabled log options. */ -#ifndef x86_64_inventec_d7054q28b_CONFIG_LOG_OPTIONS_DEFAULT -#define x86_64_inventec_d7054q28b_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT +#ifndef X86_64_INVENTEC_D7054Q28B_CONFIG_LOG_OPTIONS_DEFAULT +#define X86_64_INVENTEC_D7054Q28B_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT #endif /** - * x86_64_inventec_d7054q28b_CONFIG_LOG_BITS_DEFAULT + * X86_64_INVENTEC_D7054Q28B_CONFIG_LOG_BITS_DEFAULT * * Default enabled log bits. */ -#ifndef x86_64_inventec_d7054q28b_CONFIG_LOG_BITS_DEFAULT -#define x86_64_inventec_d7054q28b_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT +#ifndef X86_64_INVENTEC_D7054Q28B_CONFIG_LOG_BITS_DEFAULT +#define X86_64_INVENTEC_D7054Q28B_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT #endif /** - * x86_64_inventec_d7054q28b_CONFIG_LOG_CUSTOM_BITS_DEFAULT + * X86_64_INVENTEC_D7054Q28B_CONFIG_LOG_CUSTOM_BITS_DEFAULT * * Default enabled custom log bits. */ -#ifndef x86_64_inventec_d7054q28b_CONFIG_LOG_CUSTOM_BITS_DEFAULT -#define x86_64_inventec_d7054q28b_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 +#ifndef X86_64_INVENTEC_D7054Q28B_CONFIG_LOG_CUSTOM_BITS_DEFAULT +#define X86_64_INVENTEC_D7054Q28B_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 #endif /** - * x86_64_inventec_d7054q28b_CONFIG_PORTING_STDLIB + * X86_64_INVENTEC_D7054Q28B_CONFIG_PORTING_STDLIB * * Default all porting macros to use the C standard libraries. */ -#ifndef x86_64_inventec_d7054q28b_CONFIG_PORTING_STDLIB -#define x86_64_inventec_d7054q28b_CONFIG_PORTING_STDLIB 1 +#ifndef X86_64_INVENTEC_D7054Q28B_CONFIG_PORTING_STDLIB +#define X86_64_INVENTEC_D7054Q28B_CONFIG_PORTING_STDLIB 1 #endif /** - * x86_64_inventec_d7054q28b_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + * X86_64_INVENTEC_D7054Q28B_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS * * Include standard library headers for stdlib porting macros. */ -#ifndef x86_64_inventec_d7054q28b_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS -#define x86_64_inventec_d7054q28b_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS x86_64_inventec_d7054q28b_CONFIG_PORTING_STDLIB +#ifndef X86_64_INVENTEC_D7054Q28B_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS +#define X86_64_INVENTEC_D7054Q28B_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS X86_64_INVENTEC_D7054Q28B_CONFIG_PORTING_STDLIB #endif /** - * x86_64_inventec_d7054q28b_CONFIG_INCLUDE_UCLI + * X86_64_INVENTEC_D7054Q28B_CONFIG_INCLUDE_UCLI * * Include generic uCli support. */ -#ifndef x86_64_inventec_d7054q28b_CONFIG_INCLUDE_UCLI -#define x86_64_inventec_d7054q28b_CONFIG_INCLUDE_UCLI 0 +#ifndef X86_64_INVENTEC_D7054Q28B_CONFIG_INCLUDE_UCLI +#define X86_64_INVENTEC_D7054Q28B_CONFIG_INCLUDE_UCLI 0 #endif /** - * x86_64_inventec_d7054q28b_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION + * X86_64_INVENTEC_D7054Q28B_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION * * Assume chassis fan direction is the same as the PSU fan direction. */ -#ifndef x86_64_inventec_d7054q28b_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION -#define x86_64_inventec_d7054q28b_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION 0 +#ifndef X86_64_INVENTEC_D7054Q28B_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION +#define X86_64_INVENTEC_D7054Q28B_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION 0 #endif @@ -129,9 +129,9 @@ const char* x86_64_inventec_d7054q28b_config_lookup(const char* setting); */ int x86_64_inventec_d7054q28b_config_show(struct aim_pvs_s* pvs); -/* */ +/* */ #include "x86_64_inventec_d7054q28b_porting.h" -#endif /* __x86_64_inventec_d7054q28b_CONFIG_H__ */ +#endif /* __X86_64_INVENTEC_D7054Q28B_CONFIG_H__ */ /* @} */ diff --git a/packages/platforms/inventec/x86-64/d7054q28b/onlp/builds/x86_64_inventec_d7054q28b/module/inc/x86_64_inventec_d7054q28b/x86_64_inventec_d7054q28b_porting.h b/packages/platforms/inventec/x86-64/d7054q28b/onlp/builds/x86_64_inventec_d7054q28b/module/inc/x86_64_inventec_d7054q28b/x86_64_inventec_d7054q28b_porting.h index 5d26beff..5490203b 100644 --- a/packages/platforms/inventec/x86-64/d7054q28b/onlp/builds/x86_64_inventec_d7054q28b/module/inc/x86_64_inventec_d7054q28b/x86_64_inventec_d7054q28b_porting.h +++ b/packages/platforms/inventec/x86-64/d7054q28b/onlp/builds/x86_64_inventec_d7054q28b/module/inc/x86_64_inventec_d7054q28b/x86_64_inventec_d7054q28b_porting.h @@ -12,7 +12,7 @@ /* */ -#if x86_64_inventec_d7054q28b_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 +#if X86_64_INVENTEC_D7054Q28B_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 #include #include #include @@ -20,83 +20,83 @@ #include #endif -#ifndef x86_64_inventec_d7054q28b_MALLOC +#ifndef X86_64_INVENTEC_D7054Q28B_MALLOC #if defined(GLOBAL_MALLOC) - #define x86_64_inventec_d7054q28b_MALLOC GLOBAL_MALLOC - #elif x86_64_inventec_d7054q28b_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d7054q28b_MALLOC malloc + #define X86_64_INVENTEC_D7054Q28B_MALLOC GLOBAL_MALLOC + #elif X86_64_INVENTEC_D7054Q28B_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D7054Q28B_MALLOC malloc #else - #error The macro x86_64_inventec_d7054q28b_MALLOC is required but cannot be defined. + #error The macro X86_64_INVENTEC_D7054Q28B_MALLOC is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d7054q28b_FREE +#ifndef X86_64_INVENTEC_D7054Q28B_FREE #if defined(GLOBAL_FREE) - #define x86_64_inventec_d7054q28b_FREE GLOBAL_FREE - #elif x86_64_inventec_d7054q28b_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d7054q28b_FREE free + #define X86_64_INVENTEC_D7054Q28B_FREE GLOBAL_FREE + #elif X86_64_INVENTEC_D7054Q28B_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D7054Q28B_FREE free #else - #error The macro x86_64_inventec_d7054q28b_FREE is required but cannot be defined. + #error The macro X86_64_INVENTEC_D7054Q28B_FREE is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d7054q28b_MEMSET +#ifndef X86_64_INVENTEC_D7054Q28B_MEMSET #if defined(GLOBAL_MEMSET) - #define x86_64_inventec_d7054q28b_MEMSET GLOBAL_MEMSET - #elif x86_64_inventec_d7054q28b_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d7054q28b_MEMSET memset + #define X86_64_INVENTEC_D7054Q28B_MEMSET GLOBAL_MEMSET + #elif X86_64_INVENTEC_D7054Q28B_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D7054Q28B_MEMSET memset #else - #error The macro x86_64_inventec_d7054q28b_MEMSET is required but cannot be defined. + #error The macro X86_64_INVENTEC_D7054Q28B_MEMSET is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d7054q28b_MEMCPY +#ifndef X86_64_INVENTEC_D7054Q28B_MEMCPY #if defined(GLOBAL_MEMCPY) - #define x86_64_inventec_d7054q28b_MEMCPY GLOBAL_MEMCPY - #elif x86_64_inventec_d7054q28b_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d7054q28b_MEMCPY memcpy + #define X86_64_INVENTEC_D7054Q28B_MEMCPY GLOBAL_MEMCPY + #elif X86_64_INVENTEC_D7054Q28B_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D7054Q28B_MEMCPY memcpy #else - #error The macro x86_64_inventec_d7054q28b_MEMCPY is required but cannot be defined. + #error The macro X86_64_INVENTEC_D7054Q28B_MEMCPY is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d7054q28b_STRNCPY +#ifndef X86_64_INVENTEC_D7054Q28B_STRNCPY #if defined(GLOBAL_STRNCPY) - #define x86_64_inventec_d7054q28b_STRNCPY GLOBAL_STRNCPY - #elif x86_64_inventec_d7054q28b_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d7054q28b_STRNCPY strncpy + #define X86_64_INVENTEC_D7054Q28B_STRNCPY GLOBAL_STRNCPY + #elif X86_64_INVENTEC_D7054Q28B_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D7054Q28B_STRNCPY strncpy #else - #error The macro x86_64_inventec_d7054q28b_STRNCPY is required but cannot be defined. + #error The macro X86_64_INVENTEC_D7054Q28B_STRNCPY is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d7054q28b_VSNPRINTF +#ifndef X86_64_INVENTEC_D7054Q28B_VSNPRINTF #if defined(GLOBAL_VSNPRINTF) - #define x86_64_inventec_d7054q28b_VSNPRINTF GLOBAL_VSNPRINTF - #elif x86_64_inventec_d7054q28b_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d7054q28b_VSNPRINTF vsnprintf + #define X86_64_INVENTEC_D7054Q28B_VSNPRINTF GLOBAL_VSNPRINTF + #elif X86_64_INVENTEC_D7054Q28B_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D7054Q28B_VSNPRINTF vsnprintf #else - #error The macro x86_64_inventec_d7054q28b_VSNPRINTF is required but cannot be defined. + #error The macro X86_64_INVENTEC_D7054Q28B_VSNPRINTF is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d7054q28b_SNPRINTF +#ifndef X86_64_INVENTEC_D7054Q28B_SNPRINTF #if defined(GLOBAL_SNPRINTF) - #define x86_64_inventec_d7054q28b_SNPRINTF GLOBAL_SNPRINTF - #elif x86_64_inventec_d7054q28b_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d7054q28b_SNPRINTF snprintf + #define X86_64_INVENTEC_D7054Q28B_SNPRINTF GLOBAL_SNPRINTF + #elif X86_64_INVENTEC_D7054Q28B_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D7054Q28B_SNPRINTF snprintf #else - #error The macro x86_64_inventec_d7054q28b_SNPRINTF is required but cannot be defined. + #error The macro X86_64_INVENTEC_D7054Q28B_SNPRINTF is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d7054q28b_STRLEN +#ifndef X86_64_INVENTEC_D7054Q28B_STRLEN #if defined(GLOBAL_STRLEN) - #define x86_64_inventec_d7054q28b_STRLEN GLOBAL_STRLEN - #elif x86_64_inventec_d7054q28b_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d7054q28b_STRLEN strlen + #define X86_64_INVENTEC_D7054Q28B_STRLEN GLOBAL_STRLEN + #elif X86_64_INVENTEC_D7054Q28B_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D7054Q28B_STRLEN strlen #else - #error The macro x86_64_inventec_d7054q28b_STRLEN is required but cannot be defined. + #error The macro X86_64_INVENTEC_D7054Q28B_STRLEN is required but cannot be defined. #endif #endif diff --git a/packages/platforms/inventec/x86-64/d7054q28b/onlp/builds/x86_64_inventec_d7054q28b/module/src/x86_64_inventec_d7054q28b_config.c b/packages/platforms/inventec/x86-64/d7054q28b/onlp/builds/x86_64_inventec_d7054q28b/module/src/x86_64_inventec_d7054q28b_config.c index 6385cac8..7a23f2fe 100644 --- a/packages/platforms/inventec/x86-64/d7054q28b/onlp/builds/x86_64_inventec_d7054q28b/module/src/x86_64_inventec_d7054q28b_config.c +++ b/packages/platforms/inventec/x86-64/d7054q28b/onlp/builds/x86_64_inventec_d7054q28b/module/src/x86_64_inventec_d7054q28b_config.c @@ -5,50 +5,50 @@ *****************************************************************************/ #include -/* */ +/* */ #define __x86_64_inventec_d7054q28b_config_STRINGIFY_NAME(_x) #_x #define __x86_64_inventec_d7054q28b_config_STRINGIFY_VALUE(_x) __x86_64_inventec_d7054q28b_config_STRINGIFY_NAME(_x) x86_64_inventec_d7054q28b_config_settings_t x86_64_inventec_d7054q28b_config_settings[] = { -#ifdef x86_64_inventec_d7054q28b_CONFIG_INCLUDE_LOGGING - { __x86_64_inventec_d7054q28b_config_STRINGIFY_NAME(x86_64_inventec_d7054q28b_CONFIG_INCLUDE_LOGGING), __x86_64_inventec_d7054q28b_config_STRINGIFY_VALUE(x86_64_inventec_d7054q28b_CONFIG_INCLUDE_LOGGING) }, +#ifdef X86_64_INVENTEC_D7054Q28B_CONFIG_INCLUDE_LOGGING + { __x86_64_inventec_d7054q28b_config_STRINGIFY_NAME(X86_64_INVENTEC_D7054Q28B_CONFIG_INCLUDE_LOGGING), __x86_64_inventec_d7054q28b_config_STRINGIFY_VALUE(X86_64_INVENTEC_D7054Q28B_CONFIG_INCLUDE_LOGGING) }, #else -{ x86_64_inventec_d7054q28b_CONFIG_INCLUDE_LOGGING(__x86_64_inventec_d7054q28b_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D7054Q28B_CONFIG_INCLUDE_LOGGING(__x86_64_inventec_d7054q28b_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d7054q28b_CONFIG_LOG_OPTIONS_DEFAULT - { __x86_64_inventec_d7054q28b_config_STRINGIFY_NAME(x86_64_inventec_d7054q28b_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_inventec_d7054q28b_config_STRINGIFY_VALUE(x86_64_inventec_d7054q28b_CONFIG_LOG_OPTIONS_DEFAULT) }, +#ifdef X86_64_INVENTEC_D7054Q28B_CONFIG_LOG_OPTIONS_DEFAULT + { __x86_64_inventec_d7054q28b_config_STRINGIFY_NAME(X86_64_INVENTEC_D7054Q28B_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_inventec_d7054q28b_config_STRINGIFY_VALUE(X86_64_INVENTEC_D7054Q28B_CONFIG_LOG_OPTIONS_DEFAULT) }, #else -{ x86_64_inventec_d7054q28b_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_inventec_d7054q28b_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D7054Q28B_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_inventec_d7054q28b_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d7054q28b_CONFIG_LOG_BITS_DEFAULT - { __x86_64_inventec_d7054q28b_config_STRINGIFY_NAME(x86_64_inventec_d7054q28b_CONFIG_LOG_BITS_DEFAULT), __x86_64_inventec_d7054q28b_config_STRINGIFY_VALUE(x86_64_inventec_d7054q28b_CONFIG_LOG_BITS_DEFAULT) }, +#ifdef X86_64_INVENTEC_D7054Q28B_CONFIG_LOG_BITS_DEFAULT + { __x86_64_inventec_d7054q28b_config_STRINGIFY_NAME(X86_64_INVENTEC_D7054Q28B_CONFIG_LOG_BITS_DEFAULT), __x86_64_inventec_d7054q28b_config_STRINGIFY_VALUE(X86_64_INVENTEC_D7054Q28B_CONFIG_LOG_BITS_DEFAULT) }, #else -{ x86_64_inventec_d7054q28b_CONFIG_LOG_BITS_DEFAULT(__x86_64_inventec_d7054q28b_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D7054Q28B_CONFIG_LOG_BITS_DEFAULT(__x86_64_inventec_d7054q28b_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d7054q28b_CONFIG_LOG_CUSTOM_BITS_DEFAULT - { __x86_64_inventec_d7054q28b_config_STRINGIFY_NAME(x86_64_inventec_d7054q28b_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_inventec_d7054q28b_config_STRINGIFY_VALUE(x86_64_inventec_d7054q28b_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, +#ifdef X86_64_INVENTEC_D7054Q28B_CONFIG_LOG_CUSTOM_BITS_DEFAULT + { __x86_64_inventec_d7054q28b_config_STRINGIFY_NAME(X86_64_INVENTEC_D7054Q28B_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_inventec_d7054q28b_config_STRINGIFY_VALUE(X86_64_INVENTEC_D7054Q28B_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, #else -{ x86_64_inventec_d7054q28b_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_inventec_d7054q28b_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D7054Q28B_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_inventec_d7054q28b_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d7054q28b_CONFIG_PORTING_STDLIB - { __x86_64_inventec_d7054q28b_config_STRINGIFY_NAME(x86_64_inventec_d7054q28b_CONFIG_PORTING_STDLIB), __x86_64_inventec_d7054q28b_config_STRINGIFY_VALUE(x86_64_inventec_d7054q28b_CONFIG_PORTING_STDLIB) }, +#ifdef X86_64_INVENTEC_D7054Q28B_CONFIG_PORTING_STDLIB + { __x86_64_inventec_d7054q28b_config_STRINGIFY_NAME(X86_64_INVENTEC_D7054Q28B_CONFIG_PORTING_STDLIB), __x86_64_inventec_d7054q28b_config_STRINGIFY_VALUE(X86_64_INVENTEC_D7054Q28B_CONFIG_PORTING_STDLIB) }, #else -{ x86_64_inventec_d7054q28b_CONFIG_PORTING_STDLIB(__x86_64_inventec_d7054q28b_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D7054Q28B_CONFIG_PORTING_STDLIB(__x86_64_inventec_d7054q28b_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d7054q28b_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS - { __x86_64_inventec_d7054q28b_config_STRINGIFY_NAME(x86_64_inventec_d7054q28b_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_inventec_d7054q28b_config_STRINGIFY_VALUE(x86_64_inventec_d7054q28b_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, +#ifdef X86_64_INVENTEC_D7054Q28B_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + { __x86_64_inventec_d7054q28b_config_STRINGIFY_NAME(X86_64_INVENTEC_D7054Q28B_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_inventec_d7054q28b_config_STRINGIFY_VALUE(X86_64_INVENTEC_D7054Q28B_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, #else -{ x86_64_inventec_d7054q28b_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_inventec_d7054q28b_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D7054Q28B_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_inventec_d7054q28b_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d7054q28b_CONFIG_INCLUDE_UCLI - { __x86_64_inventec_d7054q28b_config_STRINGIFY_NAME(x86_64_inventec_d7054q28b_CONFIG_INCLUDE_UCLI), __x86_64_inventec_d7054q28b_config_STRINGIFY_VALUE(x86_64_inventec_d7054q28b_CONFIG_INCLUDE_UCLI) }, +#ifdef X86_64_INVENTEC_D7054Q28B_CONFIG_INCLUDE_UCLI + { __x86_64_inventec_d7054q28b_config_STRINGIFY_NAME(X86_64_INVENTEC_D7054Q28B_CONFIG_INCLUDE_UCLI), __x86_64_inventec_d7054q28b_config_STRINGIFY_VALUE(X86_64_INVENTEC_D7054Q28B_CONFIG_INCLUDE_UCLI) }, #else -{ x86_64_inventec_d7054q28b_CONFIG_INCLUDE_UCLI(__x86_64_inventec_d7054q28b_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D7054Q28B_CONFIG_INCLUDE_UCLI(__x86_64_inventec_d7054q28b_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d7054q28b_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION - { __x86_64_inventec_d7054q28b_config_STRINGIFY_NAME(x86_64_inventec_d7054q28b_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __x86_64_inventec_d7054q28b_config_STRINGIFY_VALUE(x86_64_inventec_d7054q28b_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, +#ifdef X86_64_INVENTEC_D7054Q28B_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION + { __x86_64_inventec_d7054q28b_config_STRINGIFY_NAME(X86_64_INVENTEC_D7054Q28B_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __x86_64_inventec_d7054q28b_config_STRINGIFY_VALUE(X86_64_INVENTEC_D7054Q28B_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, #else -{ x86_64_inventec_d7054q28b_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__x86_64_inventec_d7054q28b_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D7054Q28B_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__x86_64_inventec_d7054q28b_config_STRINGIFY_NAME), "__undefined__" }, #endif { NULL, NULL } }; @@ -60,7 +60,7 @@ x86_64_inventec_d7054q28b_config_lookup(const char* setting) { int i; for(i = 0; x86_64_inventec_d7054q28b_config_settings[i].name; i++) { - if(strcmp(x86_64_inventec_d7054q28b_config_settings[i].name, setting)) { + if(!strcmp(x86_64_inventec_d7054q28b_config_settings[i].name, setting)) { return x86_64_inventec_d7054q28b_config_settings[i].value; } } @@ -77,5 +77,4 @@ x86_64_inventec_d7054q28b_config_show(struct aim_pvs_s* pvs) return i; } -/* */ - +/* */ diff --git a/packages/platforms/inventec/x86-64/d7054q28b/onlp/builds/x86_64_inventec_d7054q28b/module/src/x86_64_inventec_d7054q28b_log.c b/packages/platforms/inventec/x86-64/d7054q28b/onlp/builds/x86_64_inventec_d7054q28b/module/src/x86_64_inventec_d7054q28b_log.c index 97381b84..16766b74 100644 --- a/packages/platforms/inventec/x86-64/d7054q28b/onlp/builds/x86_64_inventec_d7054q28b/module/src/x86_64_inventec_d7054q28b_log.c +++ b/packages/platforms/inventec/x86-64/d7054q28b/onlp/builds/x86_64_inventec_d7054q28b/module/src/x86_64_inventec_d7054q28b_log.c @@ -10,9 +10,9 @@ * x86_64_inventec_d7054q28b log struct. */ AIM_LOG_STRUCT_DEFINE( - x86_64_inventec_d7054q28b_CONFIG_LOG_OPTIONS_DEFAULT, - x86_64_inventec_d7054q28b_CONFIG_LOG_BITS_DEFAULT, + X86_64_INVENTEC_D7054Q28B_CONFIG_LOG_OPTIONS_DEFAULT, + X86_64_INVENTEC_D7054Q28B_CONFIG_LOG_BITS_DEFAULT, NULL, /* Custom log map */ - x86_64_inventec_d7054q28b_CONFIG_LOG_CUSTOM_BITS_DEFAULT + X86_64_INVENTEC_D7054Q28B_CONFIG_LOG_CUSTOM_BITS_DEFAULT ); diff --git a/packages/platforms/inventec/x86-64/d7054q28b/onlp/builds/x86_64_inventec_d7054q28b/module/src/x86_64_inventec_d7054q28b_ucli.c b/packages/platforms/inventec/x86-64/d7054q28b/onlp/builds/x86_64_inventec_d7054q28b/module/src/x86_64_inventec_d7054q28b_ucli.c index 79bb6843..8e2b5bb5 100644 --- a/packages/platforms/inventec/x86-64/d7054q28b/onlp/builds/x86_64_inventec_d7054q28b/module/src/x86_64_inventec_d7054q28b_ucli.c +++ b/packages/platforms/inventec/x86-64/d7054q28b/onlp/builds/x86_64_inventec_d7054q28b/module/src/x86_64_inventec_d7054q28b_ucli.c @@ -5,7 +5,7 @@ *****************************************************************************/ #include -#if x86_64_inventec_d7054q28b_CONFIG_INCLUDE_UCLI == 1 +#if X86_64_INVENTEC_D7054Q28B_CONFIG_INCLUDE_UCLI == 1 #include #include diff --git a/packages/platforms/inventec/x86-64/d7264q28b/onlp/builds/x86_64_inventec_d7264q28b/Makefile b/packages/platforms/inventec/x86-64/d7264q28b/onlp/builds/x86_64_inventec_d7264q28b/Makefile index 9d95a6d7..0948d4de 100644 --- a/packages/platforms/inventec/x86-64/d7264q28b/onlp/builds/x86_64_inventec_d7264q28b/Makefile +++ b/packages/platforms/inventec/x86-64/d7264q28b/onlp/builds/x86_64_inventec_d7264q28b/Makefile @@ -1,9 +1,9 @@ ############################################################################### # -# +# # ############################################################################### -include ../../init.mk +include $(ONL)/make/config.mk MODULE := x86_64_inventec_d7264q28b AUTOMODULE := x86_64_inventec_d7264q28b include $(BUILDER)/definemodule.mk diff --git a/packages/platforms/inventec/x86-64/d7264q28b/onlp/builds/x86_64_inventec_d7264q28b/module/auto/x86_64_inventec_d7264q28b.yml b/packages/platforms/inventec/x86-64/d7264q28b/onlp/builds/x86_64_inventec_d7264q28b/module/auto/x86_64_inventec_d7264q28b.yml index cf45d51c..4291fb80 100644 --- a/packages/platforms/inventec/x86-64/d7264q28b/onlp/builds/x86_64_inventec_d7264q28b/module/auto/x86_64_inventec_d7264q28b.yml +++ b/packages/platforms/inventec/x86-64/d7264q28b/onlp/builds/x86_64_inventec_d7264q28b/module/auto/x86_64_inventec_d7264q28b.yml @@ -5,40 +5,40 @@ ############################################################################### cdefs: &cdefs -- x86_64_inventec_d7264q28b_CONFIG_INCLUDE_LOGGING: +- X86_64_INVENTEC_D7264Q28B_CONFIG_INCLUDE_LOGGING: doc: "Include or exclude logging." default: 1 -- x86_64_inventec_d7264q28b_CONFIG_LOG_OPTIONS_DEFAULT: +- X86_64_INVENTEC_D7264Q28B_CONFIG_LOG_OPTIONS_DEFAULT: doc: "Default enabled log options." default: AIM_LOG_OPTIONS_DEFAULT -- x86_64_inventec_d7264q28b_CONFIG_LOG_BITS_DEFAULT: +- X86_64_INVENTEC_D7264Q28B_CONFIG_LOG_BITS_DEFAULT: doc: "Default enabled log bits." default: AIM_LOG_BITS_DEFAULT -- x86_64_inventec_d7264q28b_CONFIG_LOG_CUSTOM_BITS_DEFAULT: +- X86_64_INVENTEC_D7264Q28B_CONFIG_LOG_CUSTOM_BITS_DEFAULT: doc: "Default enabled custom log bits." default: 0 -- x86_64_inventec_d7264q28b_CONFIG_PORTING_STDLIB: +- X86_64_INVENTEC_D7264Q28B_CONFIG_PORTING_STDLIB: doc: "Default all porting macros to use the C standard libraries." default: 1 -- x86_64_inventec_d7264q28b_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS: +- X86_64_INVENTEC_D7264Q28B_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS: doc: "Include standard library headers for stdlib porting macros." - default: x86_64_inventec_d7264q28b_CONFIG_PORTING_STDLIB -- x86_64_inventec_d7264q28b_CONFIG_INCLUDE_UCLI: + default: X86_64_INVENTEC_D7264Q28B_CONFIG_PORTING_STDLIB +- X86_64_INVENTEC_D7264Q28B_CONFIG_INCLUDE_UCLI: doc: "Include generic uCli support." default: 0 -- x86_64_inventec_d7264q28b_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION: +- X86_64_INVENTEC_D7264Q28B_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION: doc: "Assume chassis fan direction is the same as the PSU fan direction." default: 0 definitions: cdefs: - x86_64_inventec_d7264q28b_CONFIG_HEADER: + X86_64_INVENTEC_D7264Q28B_CONFIG_HEADER: defs: *cdefs basename: x86_64_inventec_d7264q28b_config portingmacro: - x86_64_inventec_d7264q28b: + X86_64_INVENTEC_D7264Q28B: macros: - malloc - free diff --git a/packages/platforms/inventec/x86-64/d7264q28b/onlp/builds/x86_64_inventec_d7264q28b/module/inc/x86_64_inventec_d7264q28b/x86_64_inventec_d7264q28b_config.h b/packages/platforms/inventec/x86-64/d7264q28b/onlp/builds/x86_64_inventec_d7264q28b/module/inc/x86_64_inventec_d7264q28b/x86_64_inventec_d7264q28b_config.h index 8523ce03..563bf240 100644 --- a/packages/platforms/inventec/x86-64/d7264q28b/onlp/builds/x86_64_inventec_d7264q28b/module/inc/x86_64_inventec_d7264q28b/x86_64_inventec_d7264q28b_config.h +++ b/packages/platforms/inventec/x86-64/d7264q28b/onlp/builds/x86_64_inventec_d7264q28b/module/inc/x86_64_inventec_d7264q28b/x86_64_inventec_d7264q28b_config.h @@ -17,86 +17,86 @@ #include #endif -/* */ +/* */ #include /** - * x86_64_inventec_d7264q28b_CONFIG_INCLUDE_LOGGING + * X86_64_INVENTEC_D7264Q28B_CONFIG_INCLUDE_LOGGING * * Include or exclude logging. */ -#ifndef x86_64_inventec_d7264q28b_CONFIG_INCLUDE_LOGGING -#define x86_64_inventec_d7264q28b_CONFIG_INCLUDE_LOGGING 1 +#ifndef X86_64_INVENTEC_D7264Q28B_CONFIG_INCLUDE_LOGGING +#define X86_64_INVENTEC_D7264Q28B_CONFIG_INCLUDE_LOGGING 1 #endif /** - * x86_64_inventec_d7264q28b_CONFIG_LOG_OPTIONS_DEFAULT + * X86_64_INVENTEC_D7264Q28B_CONFIG_LOG_OPTIONS_DEFAULT * * Default enabled log options. */ -#ifndef x86_64_inventec_d7264q28b_CONFIG_LOG_OPTIONS_DEFAULT -#define x86_64_inventec_d7264q28b_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT +#ifndef X86_64_INVENTEC_D7264Q28B_CONFIG_LOG_OPTIONS_DEFAULT +#define X86_64_INVENTEC_D7264Q28B_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT #endif /** - * x86_64_inventec_d7264q28b_CONFIG_LOG_BITS_DEFAULT + * X86_64_INVENTEC_D7264Q28B_CONFIG_LOG_BITS_DEFAULT * * Default enabled log bits. */ -#ifndef x86_64_inventec_d7264q28b_CONFIG_LOG_BITS_DEFAULT -#define x86_64_inventec_d7264q28b_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT +#ifndef X86_64_INVENTEC_D7264Q28B_CONFIG_LOG_BITS_DEFAULT +#define X86_64_INVENTEC_D7264Q28B_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT #endif /** - * x86_64_inventec_d7264q28b_CONFIG_LOG_CUSTOM_BITS_DEFAULT + * X86_64_INVENTEC_D7264Q28B_CONFIG_LOG_CUSTOM_BITS_DEFAULT * * Default enabled custom log bits. */ -#ifndef x86_64_inventec_d7264q28b_CONFIG_LOG_CUSTOM_BITS_DEFAULT -#define x86_64_inventec_d7264q28b_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 +#ifndef X86_64_INVENTEC_D7264Q28B_CONFIG_LOG_CUSTOM_BITS_DEFAULT +#define X86_64_INVENTEC_D7264Q28B_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 #endif /** - * x86_64_inventec_d7264q28b_CONFIG_PORTING_STDLIB + * X86_64_INVENTEC_D7264Q28B_CONFIG_PORTING_STDLIB * * Default all porting macros to use the C standard libraries. */ -#ifndef x86_64_inventec_d7264q28b_CONFIG_PORTING_STDLIB -#define x86_64_inventec_d7264q28b_CONFIG_PORTING_STDLIB 1 +#ifndef X86_64_INVENTEC_D7264Q28B_CONFIG_PORTING_STDLIB +#define X86_64_INVENTEC_D7264Q28B_CONFIG_PORTING_STDLIB 1 #endif /** - * x86_64_inventec_d7264q28b_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + * X86_64_INVENTEC_D7264Q28B_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS * * Include standard library headers for stdlib porting macros. */ -#ifndef x86_64_inventec_d7264q28b_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS -#define x86_64_inventec_d7264q28b_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS x86_64_inventec_d7264q28b_CONFIG_PORTING_STDLIB +#ifndef X86_64_INVENTEC_D7264Q28B_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS +#define X86_64_INVENTEC_D7264Q28B_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS X86_64_INVENTEC_D7264Q28B_CONFIG_PORTING_STDLIB #endif /** - * x86_64_inventec_d7264q28b_CONFIG_INCLUDE_UCLI + * X86_64_INVENTEC_D7264Q28B_CONFIG_INCLUDE_UCLI * * Include generic uCli support. */ -#ifndef x86_64_inventec_d7264q28b_CONFIG_INCLUDE_UCLI -#define x86_64_inventec_d7264q28b_CONFIG_INCLUDE_UCLI 0 +#ifndef X86_64_INVENTEC_D7264Q28B_CONFIG_INCLUDE_UCLI +#define X86_64_INVENTEC_D7264Q28B_CONFIG_INCLUDE_UCLI 0 #endif /** - * x86_64_inventec_d7264q28b_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION + * X86_64_INVENTEC_D7264Q28B_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION * * Assume chassis fan direction is the same as the PSU fan direction. */ -#ifndef x86_64_inventec_d7264q28b_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION -#define x86_64_inventec_d7264q28b_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION 0 +#ifndef X86_64_INVENTEC_D7264Q28B_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION +#define X86_64_INVENTEC_D7264Q28B_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION 0 #endif @@ -129,7 +129,7 @@ const char* x86_64_inventec_d7264q28b_config_lookup(const char* setting); */ int x86_64_inventec_d7264q28b_config_show(struct aim_pvs_s* pvs); -/* */ +/* */ #include "x86_64_inventec_d7264q28b_porting.h" diff --git a/packages/platforms/inventec/x86-64/d7264q28b/onlp/builds/x86_64_inventec_d7264q28b/module/inc/x86_64_inventec_d7264q28b/x86_64_inventec_d7264q28b_porting.h b/packages/platforms/inventec/x86-64/d7264q28b/onlp/builds/x86_64_inventec_d7264q28b/module/inc/x86_64_inventec_d7264q28b/x86_64_inventec_d7264q28b_porting.h index 791687a8..0929c09f 100644 --- a/packages/platforms/inventec/x86-64/d7264q28b/onlp/builds/x86_64_inventec_d7264q28b/module/inc/x86_64_inventec_d7264q28b/x86_64_inventec_d7264q28b_porting.h +++ b/packages/platforms/inventec/x86-64/d7264q28b/onlp/builds/x86_64_inventec_d7264q28b/module/inc/x86_64_inventec_d7264q28b/x86_64_inventec_d7264q28b_porting.h @@ -12,7 +12,7 @@ /* */ -#if x86_64_inventec_d7264q28b_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 +#if X86_64_INVENTEC_D7264Q28B_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 #include #include #include @@ -20,83 +20,83 @@ #include #endif -#ifndef x86_64_inventec_d7264q28b_MALLOC +#ifndef X86_64_INVENTEC_D7264Q28B_MALLOC #if defined(GLOBAL_MALLOC) - #define x86_64_inventec_d7264q28b_MALLOC GLOBAL_MALLOC - #elif x86_64_inventec_d7264q28b_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d7264q28b_MALLOC malloc + #define X86_64_INVENTEC_D7264Q28B_MALLOC GLOBAL_MALLOC + #elif X86_64_INVENTEC_D7264Q28B_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D7264Q28B_MALLOC malloc #else - #error The macro x86_64_inventec_d7264q28b_MALLOC is required but cannot be defined. + #error The macro X86_64_INVENTEC_D7264Q28B_MALLOC is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d7264q28b_FREE +#ifndef X86_64_INVENTEC_D7264Q28B_FREE #if defined(GLOBAL_FREE) - #define x86_64_inventec_d7264q28b_FREE GLOBAL_FREE - #elif x86_64_inventec_d7264q28b_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d7264q28b_FREE free + #define X86_64_INVENTEC_D7264Q28B_FREE GLOBAL_FREE + #elif X86_64_INVENTEC_D7264Q28B_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D7264Q28B_FREE free #else - #error The macro x86_64_inventec_d7264q28b_FREE is required but cannot be defined. + #error The macro X86_64_INVENTEC_D7264Q28B_FREE is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d7264q28b_MEMSET +#ifndef X86_64_INVENTEC_D7264Q28B_MEMSET #if defined(GLOBAL_MEMSET) - #define x86_64_inventec_d7264q28b_MEMSET GLOBAL_MEMSET - #elif x86_64_inventec_d7264q28b_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d7264q28b_MEMSET memset + #define X86_64_INVENTEC_D7264Q28B_MEMSET GLOBAL_MEMSET + #elif X86_64_INVENTEC_D7264Q28B_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D7264Q28B_MEMSET memset #else - #error The macro x86_64_inventec_d7264q28b_MEMSET is required but cannot be defined. + #error The macro X86_64_INVENTEC_D7264Q28B_MEMSET is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d7264q28b_MEMCPY +#ifndef X86_64_INVENTEC_D7264Q28B_MEMCPY #if defined(GLOBAL_MEMCPY) - #define x86_64_inventec_d7264q28b_MEMCPY GLOBAL_MEMCPY - #elif x86_64_inventec_d7264q28b_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d7264q28b_MEMCPY memcpy + #define X86_64_INVENTEC_D7264Q28B_MEMCPY GLOBAL_MEMCPY + #elif X86_64_INVENTEC_D7264Q28B_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D7264Q28B_MEMCPY memcpy #else - #error The macro x86_64_inventec_d7264q28b_MEMCPY is required but cannot be defined. + #error The macro X86_64_INVENTEC_D7264Q28B_MEMCPY is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d7264q28b_STRNCPY +#ifndef X86_64_INVENTEC_D7264Q28B_STRNCPY #if defined(GLOBAL_STRNCPY) - #define x86_64_inventec_d7264q28b_STRNCPY GLOBAL_STRNCPY - #elif x86_64_inventec_d7264q28b_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d7264q28b_STRNCPY strncpy + #define X86_64_INVENTEC_D7264Q28B_STRNCPY GLOBAL_STRNCPY + #elif X86_64_INVENTEC_D7264Q28B_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D7264Q28B_STRNCPY strncpy #else - #error The macro x86_64_inventec_d7264q28b_STRNCPY is required but cannot be defined. + #error The macro X86_64_INVENTEC_D7264Q28B_STRNCPY is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d7264q28b_VSNPRINTF +#ifndef X86_64_INVENTEC_D7264Q28B_VSNPRINTF #if defined(GLOBAL_VSNPRINTF) - #define x86_64_inventec_d7264q28b_VSNPRINTF GLOBAL_VSNPRINTF - #elif x86_64_inventec_d7264q28b_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d7264q28b_VSNPRINTF vsnprintf + #define X86_64_INVENTEC_D7264Q28B_VSNPRINTF GLOBAL_VSNPRINTF + #elif X86_64_INVENTEC_D7264Q28B_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D7264Q28B_VSNPRINTF vsnprintf #else - #error The macro x86_64_inventec_d7264q28b_VSNPRINTF is required but cannot be defined. + #error The macro X86_64_INVENTEC_D7264Q28B_VSNPRINTF is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d7264q28b_SNPRINTF +#ifndef X86_64_INVENTEC_D7264Q28B_SNPRINTF #if defined(GLOBAL_SNPRINTF) - #define x86_64_inventec_d7264q28b_SNPRINTF GLOBAL_SNPRINTF - #elif x86_64_inventec_d7264q28b_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d7264q28b_SNPRINTF snprintf + #define X86_64_INVENTEC_D7264Q28B_SNPRINTF GLOBAL_SNPRINTF + #elif X86_64_INVENTEC_D7264Q28B_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D7264Q28B_SNPRINTF snprintf #else - #error The macro x86_64_inventec_d7264q28b_SNPRINTF is required but cannot be defined. + #error The macro X86_64_INVENTEC_D7264Q28B_SNPRINTF is required but cannot be defined. #endif #endif -#ifndef x86_64_inventec_d7264q28b_STRLEN +#ifndef X86_64_INVENTEC_D7264Q28B_STRLEN #if defined(GLOBAL_STRLEN) - #define x86_64_inventec_d7264q28b_STRLEN GLOBAL_STRLEN - #elif x86_64_inventec_d7264q28b_CONFIG_PORTING_STDLIB == 1 - #define x86_64_inventec_d7264q28b_STRLEN strlen + #define X86_64_INVENTEC_D7264Q28B_STRLEN GLOBAL_STRLEN + #elif X86_64_INVENTEC_D7264Q28B_CONFIG_PORTING_STDLIB == 1 + #define X86_64_INVENTEC_D7264Q28B_STRLEN strlen #else - #error The macro x86_64_inventec_d7264q28b_STRLEN is required but cannot be defined. + #error The macro X86_64_INVENTEC_D7264Q28B_STRLEN is required but cannot be defined. #endif #endif diff --git a/packages/platforms/inventec/x86-64/d7264q28b/onlp/builds/x86_64_inventec_d7264q28b/module/src/x86_64_inventec_d7264q28b_config.c b/packages/platforms/inventec/x86-64/d7264q28b/onlp/builds/x86_64_inventec_d7264q28b/module/src/x86_64_inventec_d7264q28b_config.c index eb20c710..341c7966 100644 --- a/packages/platforms/inventec/x86-64/d7264q28b/onlp/builds/x86_64_inventec_d7264q28b/module/src/x86_64_inventec_d7264q28b_config.c +++ b/packages/platforms/inventec/x86-64/d7264q28b/onlp/builds/x86_64_inventec_d7264q28b/module/src/x86_64_inventec_d7264q28b_config.c @@ -5,50 +5,50 @@ *****************************************************************************/ #include -/* */ +/* */ #define __x86_64_inventec_d7264q28b_config_STRINGIFY_NAME(_x) #_x #define __x86_64_inventec_d7264q28b_config_STRINGIFY_VALUE(_x) __x86_64_inventec_d7264q28b_config_STRINGIFY_NAME(_x) x86_64_inventec_d7264q28b_config_settings_t x86_64_inventec_d7264q28b_config_settings[] = { -#ifdef x86_64_inventec_d7264q28b_CONFIG_INCLUDE_LOGGING - { __x86_64_inventec_d7264q28b_config_STRINGIFY_NAME(x86_64_inventec_d7264q28b_CONFIG_INCLUDE_LOGGING), __x86_64_inventec_d7264q28b_config_STRINGIFY_VALUE(x86_64_inventec_d7264q28b_CONFIG_INCLUDE_LOGGING) }, +#ifdef X86_64_INVENTEC_D7264Q28B_CONFIG_INCLUDE_LOGGING + { __x86_64_inventec_d7264q28b_config_STRINGIFY_NAME(X86_64_INVENTEC_D7264Q28B_CONFIG_INCLUDE_LOGGING), __x86_64_inventec_d7264q28b_config_STRINGIFY_VALUE(X86_64_INVENTEC_D7264Q28B_CONFIG_INCLUDE_LOGGING) }, #else -{ x86_64_inventec_d7264q28b_CONFIG_INCLUDE_LOGGING(__x86_64_inventec_d7264q28b_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D7264Q28B_CONFIG_INCLUDE_LOGGING(__x86_64_inventec_d7264q28b_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d7264q28b_CONFIG_LOG_OPTIONS_DEFAULT - { __x86_64_inventec_d7264q28b_config_STRINGIFY_NAME(x86_64_inventec_d7264q28b_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_inventec_d7264q28b_config_STRINGIFY_VALUE(x86_64_inventec_d7264q28b_CONFIG_LOG_OPTIONS_DEFAULT) }, +#ifdef X86_64_INVENTEC_D7264Q28B_CONFIG_LOG_OPTIONS_DEFAULT + { __x86_64_inventec_d7264q28b_config_STRINGIFY_NAME(X86_64_INVENTEC_D7264Q28B_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_inventec_d7264q28b_config_STRINGIFY_VALUE(X86_64_INVENTEC_D7264Q28B_CONFIG_LOG_OPTIONS_DEFAULT) }, #else -{ x86_64_inventec_d7264q28b_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_inventec_d7264q28b_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D7264Q28B_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_inventec_d7264q28b_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d7264q28b_CONFIG_LOG_BITS_DEFAULT - { __x86_64_inventec_d7264q28b_config_STRINGIFY_NAME(x86_64_inventec_d7264q28b_CONFIG_LOG_BITS_DEFAULT), __x86_64_inventec_d7264q28b_config_STRINGIFY_VALUE(x86_64_inventec_d7264q28b_CONFIG_LOG_BITS_DEFAULT) }, +#ifdef X86_64_INVENTEC_D7264Q28B_CONFIG_LOG_BITS_DEFAULT + { __x86_64_inventec_d7264q28b_config_STRINGIFY_NAME(X86_64_INVENTEC_D7264Q28B_CONFIG_LOG_BITS_DEFAULT), __x86_64_inventec_d7264q28b_config_STRINGIFY_VALUE(X86_64_INVENTEC_D7264Q28B_CONFIG_LOG_BITS_DEFAULT) }, #else -{ x86_64_inventec_d7264q28b_CONFIG_LOG_BITS_DEFAULT(__x86_64_inventec_d7264q28b_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D7264Q28B_CONFIG_LOG_BITS_DEFAULT(__x86_64_inventec_d7264q28b_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d7264q28b_CONFIG_LOG_CUSTOM_BITS_DEFAULT - { __x86_64_inventec_d7264q28b_config_STRINGIFY_NAME(x86_64_inventec_d7264q28b_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_inventec_d7264q28b_config_STRINGIFY_VALUE(x86_64_inventec_d7264q28b_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, +#ifdef X86_64_INVENTEC_D7264Q28B_CONFIG_LOG_CUSTOM_BITS_DEFAULT + { __x86_64_inventec_d7264q28b_config_STRINGIFY_NAME(X86_64_INVENTEC_D7264Q28B_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_inventec_d7264q28b_config_STRINGIFY_VALUE(X86_64_INVENTEC_D7264Q28B_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, #else -{ x86_64_inventec_d7264q28b_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_inventec_d7264q28b_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D7264Q28B_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_inventec_d7264q28b_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d7264q28b_CONFIG_PORTING_STDLIB - { __x86_64_inventec_d7264q28b_config_STRINGIFY_NAME(x86_64_inventec_d7264q28b_CONFIG_PORTING_STDLIB), __x86_64_inventec_d7264q28b_config_STRINGIFY_VALUE(x86_64_inventec_d7264q28b_CONFIG_PORTING_STDLIB) }, +#ifdef X86_64_INVENTEC_D7264Q28B_CONFIG_PORTING_STDLIB + { __x86_64_inventec_d7264q28b_config_STRINGIFY_NAME(X86_64_INVENTEC_D7264Q28B_CONFIG_PORTING_STDLIB), __x86_64_inventec_d7264q28b_config_STRINGIFY_VALUE(X86_64_INVENTEC_D7264Q28B_CONFIG_PORTING_STDLIB) }, #else -{ x86_64_inventec_d7264q28b_CONFIG_PORTING_STDLIB(__x86_64_inventec_d7264q28b_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D7264Q28B_CONFIG_PORTING_STDLIB(__x86_64_inventec_d7264q28b_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d7264q28b_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS - { __x86_64_inventec_d7264q28b_config_STRINGIFY_NAME(x86_64_inventec_d7264q28b_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_inventec_d7264q28b_config_STRINGIFY_VALUE(x86_64_inventec_d7264q28b_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, +#ifdef X86_64_INVENTEC_D7264Q28B_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + { __x86_64_inventec_d7264q28b_config_STRINGIFY_NAME(X86_64_INVENTEC_D7264Q28B_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_inventec_d7264q28b_config_STRINGIFY_VALUE(X86_64_INVENTEC_D7264Q28B_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, #else -{ x86_64_inventec_d7264q28b_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_inventec_d7264q28b_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D7264Q28B_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_inventec_d7264q28b_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d7264q28b_CONFIG_INCLUDE_UCLI - { __x86_64_inventec_d7264q28b_config_STRINGIFY_NAME(x86_64_inventec_d7264q28b_CONFIG_INCLUDE_UCLI), __x86_64_inventec_d7264q28b_config_STRINGIFY_VALUE(x86_64_inventec_d7264q28b_CONFIG_INCLUDE_UCLI) }, +#ifdef X86_64_INVENTEC_D7264Q28B_CONFIG_INCLUDE_UCLI + { __x86_64_inventec_d7264q28b_config_STRINGIFY_NAME(X86_64_INVENTEC_D7264Q28B_CONFIG_INCLUDE_UCLI), __x86_64_inventec_d7264q28b_config_STRINGIFY_VALUE(X86_64_INVENTEC_D7264Q28B_CONFIG_INCLUDE_UCLI) }, #else -{ x86_64_inventec_d7264q28b_CONFIG_INCLUDE_UCLI(__x86_64_inventec_d7264q28b_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D7264Q28B_CONFIG_INCLUDE_UCLI(__x86_64_inventec_d7264q28b_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_inventec_d7264q28b_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION - { __x86_64_inventec_d7264q28b_config_STRINGIFY_NAME(x86_64_inventec_d7264q28b_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __x86_64_inventec_d7264q28b_config_STRINGIFY_VALUE(x86_64_inventec_d7264q28b_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, +#ifdef X86_64_INVENTEC_D7264Q28B_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION + { __x86_64_inventec_d7264q28b_config_STRINGIFY_NAME(X86_64_INVENTEC_D7264Q28B_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __x86_64_inventec_d7264q28b_config_STRINGIFY_VALUE(X86_64_INVENTEC_D7264Q28B_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, #else -{ x86_64_inventec_d7264q28b_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__x86_64_inventec_d7264q28b_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_INVENTEC_D7264Q28B_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__x86_64_inventec_d7264q28b_config_STRINGIFY_NAME), "__undefined__" }, #endif { NULL, NULL } }; @@ -60,7 +60,7 @@ x86_64_inventec_d7264q28b_config_lookup(const char* setting) { int i; for(i = 0; x86_64_inventec_d7264q28b_config_settings[i].name; i++) { - if(strcmp(x86_64_inventec_d7264q28b_config_settings[i].name, setting)) { + if(!strcmp(x86_64_inventec_d7264q28b_config_settings[i].name, setting)) { return x86_64_inventec_d7264q28b_config_settings[i].value; } } @@ -77,5 +77,4 @@ x86_64_inventec_d7264q28b_config_show(struct aim_pvs_s* pvs) return i; } -/* */ - +/* */ diff --git a/packages/platforms/inventec/x86-64/d7264q28b/onlp/builds/x86_64_inventec_d7264q28b/module/src/x86_64_inventec_d7264q28b_log.c b/packages/platforms/inventec/x86-64/d7264q28b/onlp/builds/x86_64_inventec_d7264q28b/module/src/x86_64_inventec_d7264q28b_log.c index 45c4f1ab..31aceb9f 100644 --- a/packages/platforms/inventec/x86-64/d7264q28b/onlp/builds/x86_64_inventec_d7264q28b/module/src/x86_64_inventec_d7264q28b_log.c +++ b/packages/platforms/inventec/x86-64/d7264q28b/onlp/builds/x86_64_inventec_d7264q28b/module/src/x86_64_inventec_d7264q28b_log.c @@ -10,9 +10,8 @@ * x86_64_inventec_d7264q28b log struct. */ AIM_LOG_STRUCT_DEFINE( - x86_64_inventec_d7264q28b_CONFIG_LOG_OPTIONS_DEFAULT, - x86_64_inventec_d7264q28b_CONFIG_LOG_BITS_DEFAULT, + X86_64_INVENTEC_D7264Q28B_CONFIG_LOG_OPTIONS_DEFAULT, + X86_64_INVENTEC_D7264Q28B_CONFIG_LOG_BITS_DEFAULT, NULL, /* Custom log map */ - x86_64_inventec_d7264q28b_CONFIG_LOG_CUSTOM_BITS_DEFAULT + X86_64_INVENTEC_D7264Q28B_CONFIG_LOG_CUSTOM_BITS_DEFAULT ); - diff --git a/packages/platforms/lenovo/x86-64/ne10032/onlp/builds/x86_64_lenovo_ne10032/module/src/x86_64_lenovo_ne10032_config.c b/packages/platforms/lenovo/x86-64/ne10032/onlp/builds/x86_64_lenovo_ne10032/module/src/x86_64_lenovo_ne10032_config.c index f6c2c653..a911449f 100644 --- a/packages/platforms/lenovo/x86-64/ne10032/onlp/builds/x86_64_lenovo_ne10032/module/src/x86_64_lenovo_ne10032_config.c +++ b/packages/platforms/lenovo/x86-64/ne10032/onlp/builds/x86_64_lenovo_ne10032/module/src/x86_64_lenovo_ne10032_config.c @@ -55,7 +55,7 @@ x86_64_lenovo_ne10032_config_lookup(const char* setting) { int i; for(i = 0; x86_64_lenovo_ne10032_config_settings[i].name; i++) { - if(strcmp(x86_64_lenovo_ne10032_config_settings[i].name, setting)) { + if(!strcmp(x86_64_lenovo_ne10032_config_settings[i].name, setting)) { return x86_64_lenovo_ne10032_config_settings[i].value; } } diff --git a/packages/platforms/lenovo/x86-64/ne2572/onlp/builds/x86_64_lenovo_ne2572/module/src/x86_64_lenovo_ne2572_config.c b/packages/platforms/lenovo/x86-64/ne2572/onlp/builds/x86_64_lenovo_ne2572/module/src/x86_64_lenovo_ne2572_config.c index c903da8e..886501c4 100644 --- a/packages/platforms/lenovo/x86-64/ne2572/onlp/builds/x86_64_lenovo_ne2572/module/src/x86_64_lenovo_ne2572_config.c +++ b/packages/platforms/lenovo/x86-64/ne2572/onlp/builds/x86_64_lenovo_ne2572/module/src/x86_64_lenovo_ne2572_config.c @@ -55,7 +55,7 @@ x86_64_lenovo_ne2572_config_lookup(const char* setting) { int i; for(i = 0; x86_64_lenovo_ne2572_config_settings[i].name; i++) { - if(strcmp(x86_64_lenovo_ne2572_config_settings[i].name, setting)) { + if(!strcmp(x86_64_lenovo_ne2572_config_settings[i].name, setting)) { return x86_64_lenovo_ne2572_config_settings[i].value; } } diff --git a/packages/platforms/mellanox/any/src/mlnx_common/mlnx_common.mk b/packages/platforms/mellanox/any/src/mlnx_common/mlnx_common.mk index 6670b8fa..03a7d48c 100644 --- a/packages/platforms/mellanox/any/src/mlnx_common/mlnx_common.mk +++ b/packages/platforms/mellanox/any/src/mlnx_common/mlnx_common.mk @@ -3,11 +3,12 @@ # # Inclusive Makefile for the mlnx_common module. # -# Autogenerated 2017-11-15 18:52:06.437798 +# Autogenerated 2019-07-11 19:31:23.901745 # ############################################################################### mlnx_common_BASEDIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST)))) -include $(mlnx_common_BASEDIR)/module/make.mk -include $(mlnx_common_BASEDIR)/module/auto/make.mk -include $(mlnx_common_BASEDIR)/module/src/make.mk -include $(mlnx_common_BASEDIR)/utest/_make.mk +include $(mlnx_common_BASEDIR)module/make.mk +include $(mlnx_common_BASEDIR)module/auto/make.mk +include $(mlnx_common_BASEDIR)module/src/make.mk +include $(mlnx_common_BASEDIR)utest/_make.mk + diff --git a/packages/platforms/mellanox/any/src/mlnx_common/module/src/mlnx_common_config.c b/packages/platforms/mellanox/any/src/mlnx_common/module/src/mlnx_common_config.c index 72849a4f..b8b2d603 100644 --- a/packages/platforms/mellanox/any/src/mlnx_common/module/src/mlnx_common_config.c +++ b/packages/platforms/mellanox/any/src/mlnx_common/module/src/mlnx_common_config.c @@ -55,7 +55,7 @@ mlnx_common_config_lookup(const char* setting) { int i; for(i = 0; mlnx_common_config_settings[i].name; i++) { - if(strcmp(mlnx_common_config_settings[i].name, setting)) { + if(!strcmp(mlnx_common_config_settings[i].name, setting)) { return mlnx_common_config_settings[i].value; } } diff --git a/packages/platforms/mellanox/x86-64/mqm8700/onlp/builds/x86_64_mlnx_mqm8700/Makefile b/packages/platforms/mellanox/x86-64/mqm8700/onlp/builds/x86_64_mlnx_mqm8700/Makefile index de4fbe78..07923259 100644 --- a/packages/platforms/mellanox/x86-64/mqm8700/onlp/builds/x86_64_mlnx_mqm8700/Makefile +++ b/packages/platforms/mellanox/x86-64/mqm8700/onlp/builds/x86_64_mlnx_mqm8700/Makefile @@ -1,9 +1,9 @@ ############################################################################### # -# +# # ############################################################################### -include ../../init.mk +include $(ONL)/make/config.mk MODULE := x86_64_mlnx_mqm8700 AUTOMODULE := x86_64_mlnx_mqm8700 include $(BUILDER)/definemodule.mk diff --git a/packages/platforms/mellanox/x86-64/mqm8700/onlp/builds/x86_64_mlnx_mqm8700/module/inc/x86_64_mlnx_mqm8700/x86_64_mlnx_mqm8700_config.h b/packages/platforms/mellanox/x86-64/mqm8700/onlp/builds/x86_64_mlnx_mqm8700/module/inc/x86_64_mlnx_mqm8700/x86_64_mlnx_mqm8700_config.h index a94542fd..36fcbaac 100644 --- a/packages/platforms/mellanox/x86-64/mqm8700/onlp/builds/x86_64_mlnx_mqm8700/module/inc/x86_64_mlnx_mqm8700/x86_64_mlnx_mqm8700_config.h +++ b/packages/platforms/mellanox/x86-64/mqm8700/onlp/builds/x86_64_mlnx_mqm8700/module/inc/x86_64_mlnx_mqm8700/x86_64_mlnx_mqm8700_config.h @@ -76,7 +76,7 @@ #ifndef X86_64_MLNX_MQM8700_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS -#define X86_64_MLNX_MQM8700_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS X86_64_MLNX_MQM8700_CONFIG_PORTING_STDLIB +#define X86_64_MLNX_MQM8700_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS x86_64_mlnx_mqm8700_CONFIG_PORTING_STDLIB #endif /** diff --git a/packages/platforms/mellanox/x86-64/mqm8700/onlp/builds/x86_64_mlnx_mqm8700/module/src/x86_64_mlnx_mqm8700_config.c b/packages/platforms/mellanox/x86-64/mqm8700/onlp/builds/x86_64_mlnx_mqm8700/module/src/x86_64_mlnx_mqm8700_config.c index 033e2e16..09a56d7c 100644 --- a/packages/platforms/mellanox/x86-64/mqm8700/onlp/builds/x86_64_mlnx_mqm8700/module/src/x86_64_mlnx_mqm8700_config.c +++ b/packages/platforms/mellanox/x86-64/mqm8700/onlp/builds/x86_64_mlnx_mqm8700/module/src/x86_64_mlnx_mqm8700_config.c @@ -6,61 +6,61 @@ #include /* */ -#define __X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_NAME(_x) #_x -#define __X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_VALUE(_x) __X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_NAME(_x) +#define __x86_64_mlnx_mqm8700_config_STRINGIFY_NAME(_x) #_x +#define __x86_64_mlnx_mqm8700_config_STRINGIFY_VALUE(_x) __x86_64_mlnx_mqm8700_config_STRINGIFY_NAME(_x) x86_64_mlnx_mqm8700_config_settings_t x86_64_mlnx_mqm8700_config_settings[] = { #ifdef X86_64_MLNX_MQM8700_CONFIG_INCLUDE_LOGGING - { __X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MQM8700_CONFIG_INCLUDE_LOGGING), __X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MQM8700_CONFIG_INCLUDE_LOGGING) }, + { __x86_64_mlnx_mqm8700_config_STRINGIFY_NAME(X86_64_MLNX_MQM8700_CONFIG_INCLUDE_LOGGING), __x86_64_mlnx_mqm8700_config_STRINGIFY_VALUE(X86_64_MLNX_MQM8700_CONFIG_INCLUDE_LOGGING) }, #else -{ X86_64_MLNX_MQM8700_CONFIG_INCLUDE_LOGGING(__X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MLNX_MQM8700_CONFIG_INCLUDE_LOGGING(__x86_64_mlnx_mqm8700_config_STRINGIFY_NAME), "__undefined__" }, #endif #ifdef X86_64_MLNX_MQM8700_CONFIG_LOG_OPTIONS_DEFAULT - { __X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MQM8700_CONFIG_LOG_OPTIONS_DEFAULT), __X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MQM8700_CONFIG_LOG_OPTIONS_DEFAULT) }, + { __x86_64_mlnx_mqm8700_config_STRINGIFY_NAME(X86_64_MLNX_MQM8700_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_mlnx_mqm8700_config_STRINGIFY_VALUE(X86_64_MLNX_MQM8700_CONFIG_LOG_OPTIONS_DEFAULT) }, #else -{ X86_64_MLNX_MQM8700_CONFIG_LOG_OPTIONS_DEFAULT(__X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MLNX_MQM8700_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_mlnx_mqm8700_config_STRINGIFY_NAME), "__undefined__" }, #endif #ifdef X86_64_MLNX_MQM8700_CONFIG_LOG_BITS_DEFAULT - { __X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MQM8700_CONFIG_LOG_BITS_DEFAULT), __X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MQM8700_CONFIG_LOG_BITS_DEFAULT) }, + { __x86_64_mlnx_mqm8700_config_STRINGIFY_NAME(X86_64_MLNX_MQM8700_CONFIG_LOG_BITS_DEFAULT), __x86_64_mlnx_mqm8700_config_STRINGIFY_VALUE(X86_64_MLNX_MQM8700_CONFIG_LOG_BITS_DEFAULT) }, #else -{ X86_64_MLNX_MQM8700_CONFIG_LOG_BITS_DEFAULT(__X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MLNX_MQM8700_CONFIG_LOG_BITS_DEFAULT(__x86_64_mlnx_mqm8700_config_STRINGIFY_NAME), "__undefined__" }, #endif #ifdef X86_64_MLNX_MQM8700_CONFIG_LOG_CUSTOM_BITS_DEFAULT - { __X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MQM8700_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MQM8700_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, + { __x86_64_mlnx_mqm8700_config_STRINGIFY_NAME(X86_64_MLNX_MQM8700_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_mlnx_mqm8700_config_STRINGIFY_VALUE(X86_64_MLNX_MQM8700_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, #else -{ X86_64_MLNX_MQM8700_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MLNX_MQM8700_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_mlnx_mqm8700_config_STRINGIFY_NAME), "__undefined__" }, #endif #ifdef X86_64_MLNX_MQM8700_CONFIG_PORTING_STDLIB - { __X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MQM8700_CONFIG_PORTING_STDLIB), __X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MQM8700_CONFIG_PORTING_STDLIB) }, + { __x86_64_mlnx_mqm8700_config_STRINGIFY_NAME(X86_64_MLNX_MQM8700_CONFIG_PORTING_STDLIB), __x86_64_mlnx_mqm8700_config_STRINGIFY_VALUE(X86_64_MLNX_MQM8700_CONFIG_PORTING_STDLIB) }, #else -{ X86_64_MLNX_MQM8700_CONFIG_PORTING_STDLIB(__X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MLNX_MQM8700_CONFIG_PORTING_STDLIB(__x86_64_mlnx_mqm8700_config_STRINGIFY_NAME), "__undefined__" }, #endif #ifdef X86_64_MLNX_MQM8700_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS - { __X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MQM8700_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MQM8700_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, + { __x86_64_mlnx_mqm8700_config_STRINGIFY_NAME(X86_64_MLNX_MQM8700_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_mlnx_mqm8700_config_STRINGIFY_VALUE(X86_64_MLNX_MQM8700_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, #else -{ X86_64_MLNX_MQM8700_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MLNX_MQM8700_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_mlnx_mqm8700_config_STRINGIFY_NAME), "__undefined__" }, #endif #ifdef X86_64_MLNX_MQM8700_CONFIG_INCLUDE_UCLI - { __X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MQM8700_CONFIG_INCLUDE_UCLI), __X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MQM8700_CONFIG_INCLUDE_UCLI) }, + { __x86_64_mlnx_mqm8700_config_STRINGIFY_NAME(X86_64_MLNX_MQM8700_CONFIG_INCLUDE_UCLI), __x86_64_mlnx_mqm8700_config_STRINGIFY_VALUE(X86_64_MLNX_MQM8700_CONFIG_INCLUDE_UCLI) }, #else -{ X86_64_MLNX_MQM8700_CONFIG_INCLUDE_UCLI(__X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MLNX_MQM8700_CONFIG_INCLUDE_UCLI(__x86_64_mlnx_mqm8700_config_STRINGIFY_NAME), "__undefined__" }, #endif #ifdef X86_64_MLNX_MQM8700_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION - { __X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MQM8700_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MQM8700_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, + { __x86_64_mlnx_mqm8700_config_STRINGIFY_NAME(X86_64_MLNX_MQM8700_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __x86_64_mlnx_mqm8700_config_STRINGIFY_VALUE(X86_64_MLNX_MQM8700_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, #else -{ X86_64_MLNX_MQM8700_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MLNX_MQM8700_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__x86_64_mlnx_mqm8700_config_STRINGIFY_NAME), "__undefined__" }, #endif { NULL, NULL } }; -#undef __X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_VALUE -#undef __X86_64_MLNX_MQM8700_CONFIG_STRINGIFY_NAME +#undef __x86_64_mlnx_mqm8700_config_STRINGIFY_VALUE +#undef __x86_64_mlnx_mqm8700_config_STRINGIFY_NAME const char* x86_64_mlnx_mqm8700_config_lookup(const char* setting) { int i; for(i = 0; x86_64_mlnx_mqm8700_config_settings[i].name; i++) { - if(strcmp(x86_64_mlnx_mqm8700_config_settings[i].name, setting)) { + if(!strcmp(x86_64_mlnx_mqm8700_config_settings[i].name, setting)) { return x86_64_mlnx_mqm8700_config_settings[i].value; } } @@ -77,5 +77,4 @@ x86_64_mlnx_mqm8700_config_show(struct aim_pvs_s* pvs) return i; } -/* */ - +/* */ diff --git a/packages/platforms/mellanox/x86-64/mqm8700/onlp/builds/x86_64_mlnx_mqm8700/x86_64_mlnx_mqm8700.mk b/packages/platforms/mellanox/x86-64/mqm8700/onlp/builds/x86_64_mlnx_mqm8700/x86_64_mlnx_mqm8700.mk index ec1d2eb6..7f117282 100644 --- a/packages/platforms/mellanox/x86-64/mqm8700/onlp/builds/x86_64_mlnx_mqm8700/x86_64_mlnx_mqm8700.mk +++ b/packages/platforms/mellanox/x86-64/mqm8700/onlp/builds/x86_64_mlnx_mqm8700/x86_64_mlnx_mqm8700.mk @@ -3,11 +3,11 @@ # # Inclusive Makefile for the x86_64_mlnx_mqm8700 module. # -# Autogenerated 2015-12-23 23:45:56.754200 +# Autogenerated 2019-07-13 17:21:16.759666 # ############################################################################### x86_64_mlnx_mqm8700_BASEDIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST)))) -include $(x86_64_mlnx_mqm8700_BASEDIR)/module/make.mk -include $(x86_64_mlnx_mqm8700_BASEDIR)/module/auto/make.mk -include $(x86_64_mlnx_mqm8700_BASEDIR)/module/src/make.mk +include $(x86_64_mlnx_mqm8700_BASEDIR)module/make.mk +include $(x86_64_mlnx_mqm8700_BASEDIR)module/auto/make.mk +include $(x86_64_mlnx_mqm8700_BASEDIR)module/src/make.mk diff --git a/packages/platforms/mellanox/x86-64/msn2010/onlp/builds/x86_64_mlnx_msn2010/Makefile b/packages/platforms/mellanox/x86-64/msn2010/onlp/builds/x86_64_mlnx_msn2010/Makefile index 149e1065..ba158b03 100644 --- a/packages/platforms/mellanox/x86-64/msn2010/onlp/builds/x86_64_mlnx_msn2010/Makefile +++ b/packages/platforms/mellanox/x86-64/msn2010/onlp/builds/x86_64_mlnx_msn2010/Makefile @@ -3,7 +3,7 @@ # # ############################################################################### -include ../../init.mk +include $(ONL)/make/config.mk MODULE := x86_64_mlnx_msn2010 AUTOMODULE := x86_64_mlnx_msn2010 include $(BUILDER)/definemodule.mk diff --git a/packages/platforms/mellanox/x86-64/msn2010/onlp/builds/x86_64_mlnx_msn2010/module/inc/x86_64_mlnx_msn2010/x86_64_mlnx_msn2010_config.h b/packages/platforms/mellanox/x86-64/msn2010/onlp/builds/x86_64_mlnx_msn2010/module/inc/x86_64_mlnx_msn2010/x86_64_mlnx_msn2010_config.h index 61007f5f..82db154d 100644 --- a/packages/platforms/mellanox/x86-64/msn2010/onlp/builds/x86_64_mlnx_msn2010/module/inc/x86_64_mlnx_msn2010/x86_64_mlnx_msn2010_config.h +++ b/packages/platforms/mellanox/x86-64/msn2010/onlp/builds/x86_64_mlnx_msn2010/module/inc/x86_64_mlnx_msn2010/x86_64_mlnx_msn2010_config.h @@ -76,7 +76,7 @@ #ifndef X86_64_MLNX_MSN2010_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS -#define X86_64_MLNX_MSN2010_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS X86_64_MLNX_MSN2010_CONFIG_PORTING_STDLIB +#define X86_64_MLNX_MSN2010_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS x86_64_mlnx_msn2010_CONFIG_PORTING_STDLIB #endif /** diff --git a/packages/platforms/mellanox/x86-64/msn2010/onlp/builds/x86_64_mlnx_msn2010/module/src/x86_64_mlnx_msn2010_config.c b/packages/platforms/mellanox/x86-64/msn2010/onlp/builds/x86_64_mlnx_msn2010/module/src/x86_64_mlnx_msn2010_config.c index b82b5f18..4369c374 100644 --- a/packages/platforms/mellanox/x86-64/msn2010/onlp/builds/x86_64_mlnx_msn2010/module/src/x86_64_mlnx_msn2010_config.c +++ b/packages/platforms/mellanox/x86-64/msn2010/onlp/builds/x86_64_mlnx_msn2010/module/src/x86_64_mlnx_msn2010_config.c @@ -5,62 +5,62 @@ *****************************************************************************/ #include -/* */ -#define __X86_64_MLNX_MSN2010_CONFIG_STRINGIFY_NAME(_x) #_x -#define __X86_64_MLNX_MSN2010_CONFIG_STRINGIFY_VALUE(_x) __X86_64_MLNX_MSN2010_CONFIG_STRINGIFY_NAME(_x) +/* */ +#define __x86_64_mlnx_msn2010_config_STRINGIFY_NAME(_x) #_x +#define __x86_64_mlnx_msn2010_config_STRINGIFY_VALUE(_x) __x86_64_mlnx_msn2010_config_STRINGIFY_NAME(_x) x86_64_mlnx_msn2010_config_settings_t x86_64_mlnx_msn2010_config_settings[] = { #ifdef X86_64_MLNX_MSN2010_CONFIG_INCLUDE_LOGGING - { __X86_64_MLNX_MSN2010_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MSN2010_CONFIG_INCLUDE_LOGGING), __X86_64_MLNX_MSN2010_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MSN2010_CONFIG_INCLUDE_LOGGING) }, + { __x86_64_mlnx_msn2010_config_STRINGIFY_NAME(X86_64_MLNX_MSN2010_CONFIG_INCLUDE_LOGGING), __x86_64_mlnx_msn2010_config_STRINGIFY_VALUE(X86_64_MLNX_MSN2010_CONFIG_INCLUDE_LOGGING) }, #else -{ X86_64_MLNX_MSN2010_CONFIG_INCLUDE_LOGGING(__X86_64_MLNX_MSN2010_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MLNX_MSN2010_CONFIG_INCLUDE_LOGGING(__x86_64_mlnx_msn2010_config_STRINGIFY_NAME), "__undefined__" }, #endif #ifdef X86_64_MLNX_MSN2010_CONFIG_LOG_OPTIONS_DEFAULT - { __X86_64_MLNX_MSN2010_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MSN2010_CONFIG_LOG_OPTIONS_DEFAULT), __X86_64_MLNX_MSN2010_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MSN2010_CONFIG_LOG_OPTIONS_DEFAULT) }, + { __x86_64_mlnx_msn2010_config_STRINGIFY_NAME(X86_64_MLNX_MSN2010_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_mlnx_msn2010_config_STRINGIFY_VALUE(X86_64_MLNX_MSN2010_CONFIG_LOG_OPTIONS_DEFAULT) }, #else -{ X86_64_MLNX_MSN2010_CONFIG_LOG_OPTIONS_DEFAULT(__X86_64_MLNX_MSN2010_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MLNX_MSN2010_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_mlnx_msn2010_config_STRINGIFY_NAME), "__undefined__" }, #endif #ifdef X86_64_MLNX_MSN2010_CONFIG_LOG_BITS_DEFAULT - { __X86_64_MLNX_MSN2010_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MSN2010_CONFIG_LOG_BITS_DEFAULT), __X86_64_MLNX_MSN2010_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MSN2010_CONFIG_LOG_BITS_DEFAULT) }, + { __x86_64_mlnx_msn2010_config_STRINGIFY_NAME(X86_64_MLNX_MSN2010_CONFIG_LOG_BITS_DEFAULT), __x86_64_mlnx_msn2010_config_STRINGIFY_VALUE(X86_64_MLNX_MSN2010_CONFIG_LOG_BITS_DEFAULT) }, #else -{ X86_64_MLNX_MSN2010_CONFIG_LOG_BITS_DEFAULT(__X86_64_MLNX_MSN2010_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MLNX_MSN2010_CONFIG_LOG_BITS_DEFAULT(__x86_64_mlnx_msn2010_config_STRINGIFY_NAME), "__undefined__" }, #endif #ifdef X86_64_MLNX_MSN2010_CONFIG_LOG_CUSTOM_BITS_DEFAULT - { __X86_64_MLNX_MSN2010_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MSN2010_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __X86_64_MLNX_MSN2010_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MSN2010_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, + { __x86_64_mlnx_msn2010_config_STRINGIFY_NAME(X86_64_MLNX_MSN2010_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_mlnx_msn2010_config_STRINGIFY_VALUE(X86_64_MLNX_MSN2010_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, #else -{ X86_64_MLNX_MSN2010_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__X86_64_MLNX_MSN2010_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MLNX_MSN2010_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_mlnx_msn2010_config_STRINGIFY_NAME), "__undefined__" }, #endif #ifdef X86_64_MLNX_MSN2010_CONFIG_PORTING_STDLIB - { __X86_64_MLNX_MSN2010_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MSN2010_CONFIG_PORTING_STDLIB), __X86_64_MLNX_MSN2010_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MSN2010_CONFIG_PORTING_STDLIB) }, + { __x86_64_mlnx_msn2010_config_STRINGIFY_NAME(X86_64_MLNX_MSN2010_CONFIG_PORTING_STDLIB), __x86_64_mlnx_msn2010_config_STRINGIFY_VALUE(X86_64_MLNX_MSN2010_CONFIG_PORTING_STDLIB) }, #else -{ X86_64_MLNX_MSN2010_CONFIG_PORTING_STDLIB(__X86_64_MLNX_MSN2010_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MLNX_MSN2010_CONFIG_PORTING_STDLIB(__x86_64_mlnx_msn2010_config_STRINGIFY_NAME), "__undefined__" }, #endif #ifdef X86_64_MLNX_MSN2010_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS - { __X86_64_MLNX_MSN2010_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MSN2010_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __X86_64_MLNX_MSN2010_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MSN2010_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, + { __x86_64_mlnx_msn2010_config_STRINGIFY_NAME(X86_64_MLNX_MSN2010_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_mlnx_msn2010_config_STRINGIFY_VALUE(X86_64_MLNX_MSN2010_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, #else -{ X86_64_MLNX_MSN2010_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__X86_64_MLNX_MSN2010_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MLNX_MSN2010_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_mlnx_msn2010_config_STRINGIFY_NAME), "__undefined__" }, #endif #ifdef X86_64_MLNX_MSN2010_CONFIG_INCLUDE_UCLI - { __X86_64_MLNX_MSN2010_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MSN2010_CONFIG_INCLUDE_UCLI), __X86_64_MLNX_MSN2010_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MSN2010_CONFIG_INCLUDE_UCLI) }, + { __x86_64_mlnx_msn2010_config_STRINGIFY_NAME(X86_64_MLNX_MSN2010_CONFIG_INCLUDE_UCLI), __x86_64_mlnx_msn2010_config_STRINGIFY_VALUE(X86_64_MLNX_MSN2010_CONFIG_INCLUDE_UCLI) }, #else -{ X86_64_MLNX_MSN2010_CONFIG_INCLUDE_UCLI(__X86_64_MLNX_MSN2010_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MLNX_MSN2010_CONFIG_INCLUDE_UCLI(__x86_64_mlnx_msn2010_config_STRINGIFY_NAME), "__undefined__" }, #endif #ifdef X86_64_MLNX_MSN2010_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION - { __X86_64_MLNX_MSN2010_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MSN2010_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __X86_64_MLNX_MSN2010_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MSN2010_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, + { __x86_64_mlnx_msn2010_config_STRINGIFY_NAME(X86_64_MLNX_MSN2010_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __x86_64_mlnx_msn2010_config_STRINGIFY_VALUE(X86_64_MLNX_MSN2010_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, #else -{ X86_64_MLNX_MSN2010_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__X86_64_MLNX_MSN2010_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MLNX_MSN2010_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__x86_64_mlnx_msn2010_config_STRINGIFY_NAME), "__undefined__" }, #endif { NULL, NULL } }; -#undef __X86_64_MLNX_MSN2010_CONFIG_STRINGIFY_VALUE -#undef __X86_64_MLNX_MSN2010_CONFIG_STRINGIFY_NAME +#undef __x86_64_mlnx_msn2010_config_STRINGIFY_VALUE +#undef __x86_64_mlnx_msn2010_config_STRINGIFY_NAME const char* x86_64_mlnx_msn2010_config_lookup(const char* setting) { int i; for(i = 0; x86_64_mlnx_msn2010_config_settings[i].name; i++) { - if(strcmp(x86_64_mlnx_msn2010_config_settings[i].name, setting)) { + if(!strcmp(x86_64_mlnx_msn2010_config_settings[i].name, setting)) { return x86_64_mlnx_msn2010_config_settings[i].value; } } @@ -77,4 +77,4 @@ x86_64_mlnx_msn2010_config_show(struct aim_pvs_s* pvs) return i; } -/* */ +/* */ diff --git a/packages/platforms/mellanox/x86-64/msn2010/onlp/builds/x86_64_mlnx_msn2010/x86_64_mlnx_msn2010.mk b/packages/platforms/mellanox/x86-64/msn2010/onlp/builds/x86_64_mlnx_msn2010/x86_64_mlnx_msn2010.mk index 0e5e04a7..c221d565 100644 --- a/packages/platforms/mellanox/x86-64/msn2010/onlp/builds/x86_64_mlnx_msn2010/x86_64_mlnx_msn2010.mk +++ b/packages/platforms/mellanox/x86-64/msn2010/onlp/builds/x86_64_mlnx_msn2010/x86_64_mlnx_msn2010.mk @@ -3,10 +3,11 @@ # # Inclusive Makefile for the x86_64_mlnx_msn2010 module. # -# Autogenerated 2015-12-23 23:45:56.754200 +# Autogenerated 2019-07-13 17:21:14.110508 # ############################################################################### x86_64_mlnx_msn2010_BASEDIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST)))) -include $(x86_64_mlnx_msn2010_BASEDIR)/module/make.mk -include $(x86_64_mlnx_msn2010_BASEDIR)/module/auto/make.mk -include $(x86_64_mlnx_msn2010_BASEDIR)/module/src/make.mk +include $(x86_64_mlnx_msn2010_BASEDIR)module/make.mk +include $(x86_64_mlnx_msn2010_BASEDIR)module/auto/make.mk +include $(x86_64_mlnx_msn2010_BASEDIR)module/src/make.mk + diff --git a/packages/platforms/mellanox/x86-64/msn2740/onlp/builds/x86_64_mlnx_msn2740/Makefile b/packages/platforms/mellanox/x86-64/msn2740/onlp/builds/x86_64_mlnx_msn2740/Makefile index 694d205e..bc0581fb 100644 --- a/packages/platforms/mellanox/x86-64/msn2740/onlp/builds/x86_64_mlnx_msn2740/Makefile +++ b/packages/platforms/mellanox/x86-64/msn2740/onlp/builds/x86_64_mlnx_msn2740/Makefile @@ -3,7 +3,7 @@ # # ############################################################################### -include ../../init.mk +include $(ONL)/make/config.mk MODULE := x86_64_mlnx_msn2740 AUTOMODULE := x86_64_mlnx_msn2740 include $(BUILDER)/definemodule.mk diff --git a/packages/platforms/mellanox/x86-64/msn2740/onlp/builds/x86_64_mlnx_msn2740/module/inc/x86_64_mlnx_msn2740/x86_64_mlnx_msn2740_config.h b/packages/platforms/mellanox/x86-64/msn2740/onlp/builds/x86_64_mlnx_msn2740/module/inc/x86_64_mlnx_msn2740/x86_64_mlnx_msn2740_config.h index b5355e36..4315cc92 100644 --- a/packages/platforms/mellanox/x86-64/msn2740/onlp/builds/x86_64_mlnx_msn2740/module/inc/x86_64_mlnx_msn2740/x86_64_mlnx_msn2740_config.h +++ b/packages/platforms/mellanox/x86-64/msn2740/onlp/builds/x86_64_mlnx_msn2740/module/inc/x86_64_mlnx_msn2740/x86_64_mlnx_msn2740_config.h @@ -76,7 +76,7 @@ #ifndef X86_64_MLNX_MSN2740_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS -#define X86_64_MLNX_MSN2740_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS X86_64_MLNX_MSN2740_CONFIG_PORTING_STDLIB +#define X86_64_MLNX_MSN2740_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS x86_64_mlnx_msn2740_CONFIG_PORTING_STDLIB #endif /** diff --git a/packages/platforms/mellanox/x86-64/msn2740/onlp/builds/x86_64_mlnx_msn2740/module/src/x86_64_mlnx_msn2740_config.c b/packages/platforms/mellanox/x86-64/msn2740/onlp/builds/x86_64_mlnx_msn2740/module/src/x86_64_mlnx_msn2740_config.c index 0e36b019..c053a5c8 100755 --- a/packages/platforms/mellanox/x86-64/msn2740/onlp/builds/x86_64_mlnx_msn2740/module/src/x86_64_mlnx_msn2740_config.c +++ b/packages/platforms/mellanox/x86-64/msn2740/onlp/builds/x86_64_mlnx_msn2740/module/src/x86_64_mlnx_msn2740_config.c @@ -6,61 +6,61 @@ #include /* */ -#define __X86_64_MLNX_MSN2740_CONFIG_STRINGIFY_NAME(_x) #_x -#define __X86_64_MLNX_MSN2740_CONFIG_STRINGIFY_VALUE(_x) __X86_64_MLNX_MSN2740_CONFIG_STRINGIFY_NAME(_x) +#define __x86_64_mlnx_msn2740_config_STRINGIFY_NAME(_x) #_x +#define __x86_64_mlnx_msn2740_config_STRINGIFY_VALUE(_x) __x86_64_mlnx_msn2740_config_STRINGIFY_NAME(_x) x86_64_mlnx_msn2740_config_settings_t x86_64_mlnx_msn2740_config_settings[] = { #ifdef X86_64_MLNX_MSN2740_CONFIG_INCLUDE_LOGGING - { __X86_64_MLNX_MSN2740_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MSN2740_CONFIG_INCLUDE_LOGGING), __X86_64_MLNX_MSN2740_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MSN2740_CONFIG_INCLUDE_LOGGING) }, + { __x86_64_mlnx_msn2740_config_STRINGIFY_NAME(X86_64_MLNX_MSN2740_CONFIG_INCLUDE_LOGGING), __x86_64_mlnx_msn2740_config_STRINGIFY_VALUE(X86_64_MLNX_MSN2740_CONFIG_INCLUDE_LOGGING) }, #else -{ X86_64_MLNX_MSN2740_CONFIG_INCLUDE_LOGGING(__X86_64_MLNX_MSN2740_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MLNX_MSN2740_CONFIG_INCLUDE_LOGGING(__x86_64_mlnx_msn2740_config_STRINGIFY_NAME), "__undefined__" }, #endif #ifdef X86_64_MLNX_MSN2740_CONFIG_LOG_OPTIONS_DEFAULT - { __X86_64_MLNX_MSN2740_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MSN2740_CONFIG_LOG_OPTIONS_DEFAULT), __X86_64_MLNX_MSN2740_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MSN2740_CONFIG_LOG_OPTIONS_DEFAULT) }, + { __x86_64_mlnx_msn2740_config_STRINGIFY_NAME(X86_64_MLNX_MSN2740_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_mlnx_msn2740_config_STRINGIFY_VALUE(X86_64_MLNX_MSN2740_CONFIG_LOG_OPTIONS_DEFAULT) }, #else -{ X86_64_MLNX_MSN2740_CONFIG_LOG_OPTIONS_DEFAULT(__X86_64_MLNX_MSN2740_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MLNX_MSN2740_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_mlnx_msn2740_config_STRINGIFY_NAME), "__undefined__" }, #endif #ifdef X86_64_MLNX_MSN2740_CONFIG_LOG_BITS_DEFAULT - { __X86_64_MLNX_MSN2740_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MSN2740_CONFIG_LOG_BITS_DEFAULT), __X86_64_MLNX_MSN2740_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MSN2740_CONFIG_LOG_BITS_DEFAULT) }, + { __x86_64_mlnx_msn2740_config_STRINGIFY_NAME(X86_64_MLNX_MSN2740_CONFIG_LOG_BITS_DEFAULT), __x86_64_mlnx_msn2740_config_STRINGIFY_VALUE(X86_64_MLNX_MSN2740_CONFIG_LOG_BITS_DEFAULT) }, #else -{ X86_64_MLNX_MSN2740_CONFIG_LOG_BITS_DEFAULT(__X86_64_MLNX_MSN2740_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MLNX_MSN2740_CONFIG_LOG_BITS_DEFAULT(__x86_64_mlnx_msn2740_config_STRINGIFY_NAME), "__undefined__" }, #endif #ifdef X86_64_MLNX_MSN2740_CONFIG_LOG_CUSTOM_BITS_DEFAULT - { __X86_64_MLNX_MSN2740_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MSN2740_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __X86_64_MLNX_MSN2740_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MSN2740_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, + { __x86_64_mlnx_msn2740_config_STRINGIFY_NAME(X86_64_MLNX_MSN2740_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_mlnx_msn2740_config_STRINGIFY_VALUE(X86_64_MLNX_MSN2740_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, #else -{ X86_64_MLNX_MSN2740_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__X86_64_MLNX_MSN2740_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MLNX_MSN2740_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_mlnx_msn2740_config_STRINGIFY_NAME), "__undefined__" }, #endif #ifdef X86_64_MLNX_MSN2740_CONFIG_PORTING_STDLIB - { __X86_64_MLNX_MSN2740_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MSN2740_CONFIG_PORTING_STDLIB), __X86_64_MLNX_MSN2740_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MSN2740_CONFIG_PORTING_STDLIB) }, + { __x86_64_mlnx_msn2740_config_STRINGIFY_NAME(X86_64_MLNX_MSN2740_CONFIG_PORTING_STDLIB), __x86_64_mlnx_msn2740_config_STRINGIFY_VALUE(X86_64_MLNX_MSN2740_CONFIG_PORTING_STDLIB) }, #else -{ X86_64_MLNX_MSN2740_CONFIG_PORTING_STDLIB(__X86_64_MLNX_MSN2740_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MLNX_MSN2740_CONFIG_PORTING_STDLIB(__x86_64_mlnx_msn2740_config_STRINGIFY_NAME), "__undefined__" }, #endif #ifdef X86_64_MLNX_MSN2740_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS - { __X86_64_MLNX_MSN2740_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MSN2740_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __X86_64_MLNX_MSN2740_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MSN2740_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, + { __x86_64_mlnx_msn2740_config_STRINGIFY_NAME(X86_64_MLNX_MSN2740_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_mlnx_msn2740_config_STRINGIFY_VALUE(X86_64_MLNX_MSN2740_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, #else -{ X86_64_MLNX_MSN2740_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__X86_64_MLNX_MSN2740_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MLNX_MSN2740_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_mlnx_msn2740_config_STRINGIFY_NAME), "__undefined__" }, #endif #ifdef X86_64_MLNX_MSN2740_CONFIG_INCLUDE_UCLI - { __X86_64_MLNX_MSN2740_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MSN2740_CONFIG_INCLUDE_UCLI), __X86_64_MLNX_MSN2740_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MSN2740_CONFIG_INCLUDE_UCLI) }, + { __x86_64_mlnx_msn2740_config_STRINGIFY_NAME(X86_64_MLNX_MSN2740_CONFIG_INCLUDE_UCLI), __x86_64_mlnx_msn2740_config_STRINGIFY_VALUE(X86_64_MLNX_MSN2740_CONFIG_INCLUDE_UCLI) }, #else -{ X86_64_MLNX_MSN2740_CONFIG_INCLUDE_UCLI(__X86_64_MLNX_MSN2740_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MLNX_MSN2740_CONFIG_INCLUDE_UCLI(__x86_64_mlnx_msn2740_config_STRINGIFY_NAME), "__undefined__" }, #endif #ifdef X86_64_MLNX_MSN2740_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION - { __X86_64_MLNX_MSN2740_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MSN2740_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __X86_64_MLNX_MSN2740_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MSN2740_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, + { __x86_64_mlnx_msn2740_config_STRINGIFY_NAME(X86_64_MLNX_MSN2740_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __x86_64_mlnx_msn2740_config_STRINGIFY_VALUE(X86_64_MLNX_MSN2740_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, #else -{ X86_64_MLNX_MSN2740_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__X86_64_MLNX_MSN2740_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MLNX_MSN2740_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__x86_64_mlnx_msn2740_config_STRINGIFY_NAME), "__undefined__" }, #endif { NULL, NULL } }; -#undef __X86_64_MLNX_MSN2740_CONFIG_STRINGIFY_VALUE -#undef __X86_64_MLNX_MSN2740_CONFIG_STRINGIFY_NAME +#undef __x86_64_mlnx_msn2740_config_STRINGIFY_VALUE +#undef __x86_64_mlnx_msn2740_config_STRINGIFY_NAME const char* x86_64_mlnx_msn2740_config_lookup(const char* setting) { int i; for(i = 0; x86_64_mlnx_msn2740_config_settings[i].name; i++) { - if(strcmp(x86_64_mlnx_msn2740_config_settings[i].name, setting)) { + if(!strcmp(x86_64_mlnx_msn2740_config_settings[i].name, setting)) { return x86_64_mlnx_msn2740_config_settings[i].value; } } @@ -77,4 +77,4 @@ x86_64_mlnx_msn2740_config_show(struct aim_pvs_s* pvs) return i; } -/* */ +/* */ diff --git a/packages/platforms/mellanox/x86-64/msn2740/onlp/builds/x86_64_mlnx_msn2740/x86_64_mlnx_msn2740.mk b/packages/platforms/mellanox/x86-64/msn2740/onlp/builds/x86_64_mlnx_msn2740/x86_64_mlnx_msn2740.mk index 8e7f42b3..816eb4e9 100644 --- a/packages/platforms/mellanox/x86-64/msn2740/onlp/builds/x86_64_mlnx_msn2740/x86_64_mlnx_msn2740.mk +++ b/packages/platforms/mellanox/x86-64/msn2740/onlp/builds/x86_64_mlnx_msn2740/x86_64_mlnx_msn2740.mk @@ -3,10 +3,11 @@ # # Inclusive Makefile for the x86_64_mlnx_msn2740 module. # -# Autogenerated 2015-12-23 23:45:56.754200 +# Autogenerated 2019-07-13 17:21:06.142770 # ############################################################################### x86_64_mlnx_msn2740_BASEDIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST)))) -include $(x86_64_mlnx_msn2740_BASEDIR)/module/make.mk -include $(x86_64_mlnx_msn2740_BASEDIR)/module/auto/make.mk -include $(x86_64_mlnx_msn2740_BASEDIR)/module/src/make.mk +include $(x86_64_mlnx_msn2740_BASEDIR)module/make.mk +include $(x86_64_mlnx_msn2740_BASEDIR)module/auto/make.mk +include $(x86_64_mlnx_msn2740_BASEDIR)module/src/make.mk + diff --git a/packages/platforms/mellanox/x86-64/msn3700/onlp/builds/x86_64_mlnx_msn3700/Makefile b/packages/platforms/mellanox/x86-64/msn3700/onlp/builds/x86_64_mlnx_msn3700/Makefile index b5ea98b3..3ac95ecf 100644 --- a/packages/platforms/mellanox/x86-64/msn3700/onlp/builds/x86_64_mlnx_msn3700/Makefile +++ b/packages/platforms/mellanox/x86-64/msn3700/onlp/builds/x86_64_mlnx_msn3700/Makefile @@ -1,9 +1,9 @@ ############################################################################### # -# +# # ############################################################################### -include ../../init.mk +include $(ONL)/make/config.mk MODULE := x86_64_mlnx_msn3700 AUTOMODULE := x86_64_mlnx_msn3700 include $(BUILDER)/definemodule.mk diff --git a/packages/platforms/mellanox/x86-64/msn3700/onlp/builds/x86_64_mlnx_msn3700/module/inc/x86_64_mlnx_msn3700/x86_64_mlnx_msn3700_config.h b/packages/platforms/mellanox/x86-64/msn3700/onlp/builds/x86_64_mlnx_msn3700/module/inc/x86_64_mlnx_msn3700/x86_64_mlnx_msn3700_config.h index 8523bc32..6bdea059 100644 --- a/packages/platforms/mellanox/x86-64/msn3700/onlp/builds/x86_64_mlnx_msn3700/module/inc/x86_64_mlnx_msn3700/x86_64_mlnx_msn3700_config.h +++ b/packages/platforms/mellanox/x86-64/msn3700/onlp/builds/x86_64_mlnx_msn3700/module/inc/x86_64_mlnx_msn3700/x86_64_mlnx_msn3700_config.h @@ -76,7 +76,7 @@ #ifndef X86_64_MLNX_MSN3700_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS -#define X86_64_MLNX_MSN3700_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS X86_64_MLNX_MSN3700_CONFIG_PORTING_STDLIB +#define X86_64_MLNX_MSN3700_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS x86_64_mlnx_msn3700_CONFIG_PORTING_STDLIB #endif /** diff --git a/packages/platforms/mellanox/x86-64/msn3700/onlp/builds/x86_64_mlnx_msn3700/module/src/x86_64_mlnx_msn3700_config.c b/packages/platforms/mellanox/x86-64/msn3700/onlp/builds/x86_64_mlnx_msn3700/module/src/x86_64_mlnx_msn3700_config.c index 34affa38..7d5ead9c 100644 --- a/packages/platforms/mellanox/x86-64/msn3700/onlp/builds/x86_64_mlnx_msn3700/module/src/x86_64_mlnx_msn3700_config.c +++ b/packages/platforms/mellanox/x86-64/msn3700/onlp/builds/x86_64_mlnx_msn3700/module/src/x86_64_mlnx_msn3700_config.c @@ -6,61 +6,61 @@ #include /* */ -#define __X86_64_MLNX_MSN3700_CONFIG_STRINGIFY_NAME(_x) #_x -#define __X86_64_MLNX_MSN3700_CONFIG_STRINGIFY_VALUE(_x) __X86_64_MLNX_MSN3700_CONFIG_STRINGIFY_NAME(_x) +#define __x86_64_mlnx_msn3700_config_STRINGIFY_NAME(_x) #_x +#define __x86_64_mlnx_msn3700_config_STRINGIFY_VALUE(_x) __x86_64_mlnx_msn3700_config_STRINGIFY_NAME(_x) x86_64_mlnx_msn3700_config_settings_t x86_64_mlnx_msn3700_config_settings[] = { #ifdef X86_64_MLNX_MSN3700_CONFIG_INCLUDE_LOGGING - { __X86_64_MLNX_MSN3700_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MSN3700_CONFIG_INCLUDE_LOGGING), __X86_64_MLNX_MSN3700_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MSN3700_CONFIG_INCLUDE_LOGGING) }, + { __x86_64_mlnx_msn3700_config_STRINGIFY_NAME(X86_64_MLNX_MSN3700_CONFIG_INCLUDE_LOGGING), __x86_64_mlnx_msn3700_config_STRINGIFY_VALUE(X86_64_MLNX_MSN3700_CONFIG_INCLUDE_LOGGING) }, #else -{ X86_64_MLNX_MSN3700_CONFIG_INCLUDE_LOGGING(__X86_64_MLNX_MSN3700_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MLNX_MSN3700_CONFIG_INCLUDE_LOGGING(__x86_64_mlnx_msn3700_config_STRINGIFY_NAME), "__undefined__" }, #endif #ifdef X86_64_MLNX_MSN3700_CONFIG_LOG_OPTIONS_DEFAULT - { __X86_64_MLNX_MSN3700_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MSN3700_CONFIG_LOG_OPTIONS_DEFAULT), __X86_64_MLNX_MSN3700_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MSN3700_CONFIG_LOG_OPTIONS_DEFAULT) }, + { __x86_64_mlnx_msn3700_config_STRINGIFY_NAME(X86_64_MLNX_MSN3700_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_mlnx_msn3700_config_STRINGIFY_VALUE(X86_64_MLNX_MSN3700_CONFIG_LOG_OPTIONS_DEFAULT) }, #else -{ X86_64_MLNX_MSN3700_CONFIG_LOG_OPTIONS_DEFAULT(__X86_64_MLNX_MSN3700_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MLNX_MSN3700_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_mlnx_msn3700_config_STRINGIFY_NAME), "__undefined__" }, #endif #ifdef X86_64_MLNX_MSN3700_CONFIG_LOG_BITS_DEFAULT - { __X86_64_MLNX_MSN3700_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MSN3700_CONFIG_LOG_BITS_DEFAULT), __X86_64_MLNX_MSN3700_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MSN3700_CONFIG_LOG_BITS_DEFAULT) }, + { __x86_64_mlnx_msn3700_config_STRINGIFY_NAME(X86_64_MLNX_MSN3700_CONFIG_LOG_BITS_DEFAULT), __x86_64_mlnx_msn3700_config_STRINGIFY_VALUE(X86_64_MLNX_MSN3700_CONFIG_LOG_BITS_DEFAULT) }, #else -{ X86_64_MLNX_MSN3700_CONFIG_LOG_BITS_DEFAULT(__X86_64_MLNX_MSN3700_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MLNX_MSN3700_CONFIG_LOG_BITS_DEFAULT(__x86_64_mlnx_msn3700_config_STRINGIFY_NAME), "__undefined__" }, #endif #ifdef X86_64_MLNX_MSN3700_CONFIG_LOG_CUSTOM_BITS_DEFAULT - { __X86_64_MLNX_MSN3700_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MSN3700_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __X86_64_MLNX_MSN3700_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MSN3700_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, + { __x86_64_mlnx_msn3700_config_STRINGIFY_NAME(X86_64_MLNX_MSN3700_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_mlnx_msn3700_config_STRINGIFY_VALUE(X86_64_MLNX_MSN3700_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, #else -{ X86_64_MLNX_MSN3700_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__X86_64_MLNX_MSN3700_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MLNX_MSN3700_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_mlnx_msn3700_config_STRINGIFY_NAME), "__undefined__" }, #endif #ifdef X86_64_MLNX_MSN3700_CONFIG_PORTING_STDLIB - { __X86_64_MLNX_MSN3700_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MSN3700_CONFIG_PORTING_STDLIB), __X86_64_MLNX_MSN3700_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MSN3700_CONFIG_PORTING_STDLIB) }, + { __x86_64_mlnx_msn3700_config_STRINGIFY_NAME(X86_64_MLNX_MSN3700_CONFIG_PORTING_STDLIB), __x86_64_mlnx_msn3700_config_STRINGIFY_VALUE(X86_64_MLNX_MSN3700_CONFIG_PORTING_STDLIB) }, #else -{ X86_64_MLNX_MSN3700_CONFIG_PORTING_STDLIB(__X86_64_MLNX_MSN3700_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MLNX_MSN3700_CONFIG_PORTING_STDLIB(__x86_64_mlnx_msn3700_config_STRINGIFY_NAME), "__undefined__" }, #endif #ifdef X86_64_MLNX_MSN3700_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS - { __X86_64_MLNX_MSN3700_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MSN3700_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __X86_64_MLNX_MSN3700_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MSN3700_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, + { __x86_64_mlnx_msn3700_config_STRINGIFY_NAME(X86_64_MLNX_MSN3700_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_mlnx_msn3700_config_STRINGIFY_VALUE(X86_64_MLNX_MSN3700_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, #else -{ X86_64_MLNX_MSN3700_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__X86_64_MLNX_MSN3700_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MLNX_MSN3700_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_mlnx_msn3700_config_STRINGIFY_NAME), "__undefined__" }, #endif #ifdef X86_64_MLNX_MSN3700_CONFIG_INCLUDE_UCLI - { __X86_64_MLNX_MSN3700_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MSN3700_CONFIG_INCLUDE_UCLI), __X86_64_MLNX_MSN3700_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MSN3700_CONFIG_INCLUDE_UCLI) }, + { __x86_64_mlnx_msn3700_config_STRINGIFY_NAME(X86_64_MLNX_MSN3700_CONFIG_INCLUDE_UCLI), __x86_64_mlnx_msn3700_config_STRINGIFY_VALUE(X86_64_MLNX_MSN3700_CONFIG_INCLUDE_UCLI) }, #else -{ X86_64_MLNX_MSN3700_CONFIG_INCLUDE_UCLI(__X86_64_MLNX_MSN3700_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MLNX_MSN3700_CONFIG_INCLUDE_UCLI(__x86_64_mlnx_msn3700_config_STRINGIFY_NAME), "__undefined__" }, #endif #ifdef X86_64_MLNX_MSN3700_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION - { __X86_64_MLNX_MSN3700_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MSN3700_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __X86_64_MLNX_MSN3700_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MSN3700_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, + { __x86_64_mlnx_msn3700_config_STRINGIFY_NAME(X86_64_MLNX_MSN3700_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __x86_64_mlnx_msn3700_config_STRINGIFY_VALUE(X86_64_MLNX_MSN3700_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, #else -{ X86_64_MLNX_MSN3700_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__X86_64_MLNX_MSN3700_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MLNX_MSN3700_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__x86_64_mlnx_msn3700_config_STRINGIFY_NAME), "__undefined__" }, #endif { NULL, NULL } }; -#undef __X86_64_MLNX_MSN3700_CONFIG_STRINGIFY_VALUE -#undef __X86_64_MLNX_MSN3700_CONFIG_STRINGIFY_NAME +#undef __x86_64_mlnx_msn3700_config_STRINGIFY_VALUE +#undef __x86_64_mlnx_msn3700_config_STRINGIFY_NAME const char* x86_64_mlnx_msn3700_config_lookup(const char* setting) { int i; for(i = 0; x86_64_mlnx_msn3700_config_settings[i].name; i++) { - if(strcmp(x86_64_mlnx_msn3700_config_settings[i].name, setting)) { + if(!strcmp(x86_64_mlnx_msn3700_config_settings[i].name, setting)) { return x86_64_mlnx_msn3700_config_settings[i].value; } } @@ -77,5 +77,4 @@ x86_64_mlnx_msn3700_config_show(struct aim_pvs_s* pvs) return i; } -/* */ - +/* */ diff --git a/packages/platforms/mellanox/x86-64/msn3700/onlp/builds/x86_64_mlnx_msn3700/x86_64_mlnx_msn3700.mk b/packages/platforms/mellanox/x86-64/msn3700/onlp/builds/x86_64_mlnx_msn3700/x86_64_mlnx_msn3700.mk index 489d7a19..9e6e2978 100644 --- a/packages/platforms/mellanox/x86-64/msn3700/onlp/builds/x86_64_mlnx_msn3700/x86_64_mlnx_msn3700.mk +++ b/packages/platforms/mellanox/x86-64/msn3700/onlp/builds/x86_64_mlnx_msn3700/x86_64_mlnx_msn3700.mk @@ -3,11 +3,11 @@ # # Inclusive Makefile for the x86_64_mlnx_msn3700 module. # -# Autogenerated 2015-12-23 23:45:56.754200 +# Autogenerated 2019-07-13 17:20:55.933813 # ############################################################################### x86_64_mlnx_msn3700_BASEDIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST)))) -include $(x86_64_mlnx_msn3700_BASEDIR)/module/make.mk -include $(x86_64_mlnx_msn3700_BASEDIR)/module/auto/make.mk -include $(x86_64_mlnx_msn3700_BASEDIR)/module/src/make.mk +include $(x86_64_mlnx_msn3700_BASEDIR)module/make.mk +include $(x86_64_mlnx_msn3700_BASEDIR)module/auto/make.mk +include $(x86_64_mlnx_msn3700_BASEDIR)module/src/make.mk diff --git a/packages/platforms/mellanox/x86-64/msn3800/onlp/builds/x86_64_mlnx_msn3800/Makefile b/packages/platforms/mellanox/x86-64/msn3800/onlp/builds/x86_64_mlnx_msn3800/Makefile index c4aeca78..16f2f2ea 100644 --- a/packages/platforms/mellanox/x86-64/msn3800/onlp/builds/x86_64_mlnx_msn3800/Makefile +++ b/packages/platforms/mellanox/x86-64/msn3800/onlp/builds/x86_64_mlnx_msn3800/Makefile @@ -1,9 +1,9 @@ ############################################################################### # -# +# # ############################################################################### -include ../../init.mk +include $(ONL)/make/config.mk MODULE := x86_64_mlnx_msn3800 AUTOMODULE := x86_64_mlnx_msn3800 include $(BUILDER)/definemodule.mk diff --git a/packages/platforms/mellanox/x86-64/msn3800/onlp/builds/x86_64_mlnx_msn3800/module/inc/x86_64_mlnx_msn3800/x86_64_mlnx_msn3800_config.h b/packages/platforms/mellanox/x86-64/msn3800/onlp/builds/x86_64_mlnx_msn3800/module/inc/x86_64_mlnx_msn3800/x86_64_mlnx_msn3800_config.h index 54e767eb..1108def6 100644 --- a/packages/platforms/mellanox/x86-64/msn3800/onlp/builds/x86_64_mlnx_msn3800/module/inc/x86_64_mlnx_msn3800/x86_64_mlnx_msn3800_config.h +++ b/packages/platforms/mellanox/x86-64/msn3800/onlp/builds/x86_64_mlnx_msn3800/module/inc/x86_64_mlnx_msn3800/x86_64_mlnx_msn3800_config.h @@ -76,7 +76,7 @@ #ifndef X86_64_MLNX_MSN3800_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS -#define X86_64_MLNX_MSN3800_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS X86_64_MLNX_MSN3800_CONFIG_PORTING_STDLIB +#define X86_64_MLNX_MSN3800_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS x86_64_mlnx_msn3800_CONFIG_PORTING_STDLIB #endif /** diff --git a/packages/platforms/mellanox/x86-64/msn3800/onlp/builds/x86_64_mlnx_msn3800/module/src/x86_64_mlnx_msn3800_config.c b/packages/platforms/mellanox/x86-64/msn3800/onlp/builds/x86_64_mlnx_msn3800/module/src/x86_64_mlnx_msn3800_config.c index 3c1a87b6..25408b21 100644 --- a/packages/platforms/mellanox/x86-64/msn3800/onlp/builds/x86_64_mlnx_msn3800/module/src/x86_64_mlnx_msn3800_config.c +++ b/packages/platforms/mellanox/x86-64/msn3800/onlp/builds/x86_64_mlnx_msn3800/module/src/x86_64_mlnx_msn3800_config.c @@ -6,61 +6,61 @@ #include /* */ -#define __X86_64_MLNX_MSN3800_CONFIG_STRINGIFY_NAME(_x) #_x -#define __X86_64_MLNX_MSN3800_CONFIG_STRINGIFY_VALUE(_x) __X86_64_MLNX_MSN3800_CONFIG_STRINGIFY_NAME(_x) +#define __x86_64_mlnx_msn3800_config_STRINGIFY_NAME(_x) #_x +#define __x86_64_mlnx_msn3800_config_STRINGIFY_VALUE(_x) __x86_64_mlnx_msn3800_config_STRINGIFY_NAME(_x) x86_64_mlnx_msn3800_config_settings_t x86_64_mlnx_msn3800_config_settings[] = { #ifdef X86_64_MLNX_MSN3800_CONFIG_INCLUDE_LOGGING - { __X86_64_MLNX_MSN3800_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MSN3800_CONFIG_INCLUDE_LOGGING), __X86_64_MLNX_MSN3800_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MSN3800_CONFIG_INCLUDE_LOGGING) }, + { __x86_64_mlnx_msn3800_config_STRINGIFY_NAME(X86_64_MLNX_MSN3800_CONFIG_INCLUDE_LOGGING), __x86_64_mlnx_msn3800_config_STRINGIFY_VALUE(X86_64_MLNX_MSN3800_CONFIG_INCLUDE_LOGGING) }, #else -{ X86_64_MLNX_MSN3800_CONFIG_INCLUDE_LOGGING(__X86_64_MLNX_MSN3800_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MLNX_MSN3800_CONFIG_INCLUDE_LOGGING(__x86_64_mlnx_msn3800_config_STRINGIFY_NAME), "__undefined__" }, #endif #ifdef X86_64_MLNX_MSN3800_CONFIG_LOG_OPTIONS_DEFAULT - { __X86_64_MLNX_MSN3800_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MSN3800_CONFIG_LOG_OPTIONS_DEFAULT), __X86_64_MLNX_MSN3800_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MSN3800_CONFIG_LOG_OPTIONS_DEFAULT) }, + { __x86_64_mlnx_msn3800_config_STRINGIFY_NAME(X86_64_MLNX_MSN3800_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_mlnx_msn3800_config_STRINGIFY_VALUE(X86_64_MLNX_MSN3800_CONFIG_LOG_OPTIONS_DEFAULT) }, #else -{ X86_64_MLNX_MSN3800_CONFIG_LOG_OPTIONS_DEFAULT(__X86_64_MLNX_MSN3800_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MLNX_MSN3800_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_mlnx_msn3800_config_STRINGIFY_NAME), "__undefined__" }, #endif #ifdef X86_64_MLNX_MSN3800_CONFIG_LOG_BITS_DEFAULT - { __X86_64_MLNX_MSN3800_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MSN3800_CONFIG_LOG_BITS_DEFAULT), __X86_64_MLNX_MSN3800_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MSN3800_CONFIG_LOG_BITS_DEFAULT) }, + { __x86_64_mlnx_msn3800_config_STRINGIFY_NAME(X86_64_MLNX_MSN3800_CONFIG_LOG_BITS_DEFAULT), __x86_64_mlnx_msn3800_config_STRINGIFY_VALUE(X86_64_MLNX_MSN3800_CONFIG_LOG_BITS_DEFAULT) }, #else -{ X86_64_MLNX_MSN3800_CONFIG_LOG_BITS_DEFAULT(__X86_64_MLNX_MSN3800_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MLNX_MSN3800_CONFIG_LOG_BITS_DEFAULT(__x86_64_mlnx_msn3800_config_STRINGIFY_NAME), "__undefined__" }, #endif #ifdef X86_64_MLNX_MSN3800_CONFIG_LOG_CUSTOM_BITS_DEFAULT - { __X86_64_MLNX_MSN3800_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MSN3800_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __X86_64_MLNX_MSN3800_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MSN3800_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, + { __x86_64_mlnx_msn3800_config_STRINGIFY_NAME(X86_64_MLNX_MSN3800_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_mlnx_msn3800_config_STRINGIFY_VALUE(X86_64_MLNX_MSN3800_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, #else -{ X86_64_MLNX_MSN3800_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__X86_64_MLNX_MSN3800_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MLNX_MSN3800_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_mlnx_msn3800_config_STRINGIFY_NAME), "__undefined__" }, #endif #ifdef X86_64_MLNX_MSN3800_CONFIG_PORTING_STDLIB - { __X86_64_MLNX_MSN3800_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MSN3800_CONFIG_PORTING_STDLIB), __X86_64_MLNX_MSN3800_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MSN3800_CONFIG_PORTING_STDLIB) }, + { __x86_64_mlnx_msn3800_config_STRINGIFY_NAME(X86_64_MLNX_MSN3800_CONFIG_PORTING_STDLIB), __x86_64_mlnx_msn3800_config_STRINGIFY_VALUE(X86_64_MLNX_MSN3800_CONFIG_PORTING_STDLIB) }, #else -{ X86_64_MLNX_MSN3800_CONFIG_PORTING_STDLIB(__X86_64_MLNX_MSN3800_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MLNX_MSN3800_CONFIG_PORTING_STDLIB(__x86_64_mlnx_msn3800_config_STRINGIFY_NAME), "__undefined__" }, #endif #ifdef X86_64_MLNX_MSN3800_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS - { __X86_64_MLNX_MSN3800_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MSN3800_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __X86_64_MLNX_MSN3800_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MSN3800_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, + { __x86_64_mlnx_msn3800_config_STRINGIFY_NAME(X86_64_MLNX_MSN3800_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_mlnx_msn3800_config_STRINGIFY_VALUE(X86_64_MLNX_MSN3800_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, #else -{ X86_64_MLNX_MSN3800_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__X86_64_MLNX_MSN3800_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MLNX_MSN3800_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_mlnx_msn3800_config_STRINGIFY_NAME), "__undefined__" }, #endif #ifdef X86_64_MLNX_MSN3800_CONFIG_INCLUDE_UCLI - { __X86_64_MLNX_MSN3800_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MSN3800_CONFIG_INCLUDE_UCLI), __X86_64_MLNX_MSN3800_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MSN3800_CONFIG_INCLUDE_UCLI) }, + { __x86_64_mlnx_msn3800_config_STRINGIFY_NAME(X86_64_MLNX_MSN3800_CONFIG_INCLUDE_UCLI), __x86_64_mlnx_msn3800_config_STRINGIFY_VALUE(X86_64_MLNX_MSN3800_CONFIG_INCLUDE_UCLI) }, #else -{ X86_64_MLNX_MSN3800_CONFIG_INCLUDE_UCLI(__X86_64_MLNX_MSN3800_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MLNX_MSN3800_CONFIG_INCLUDE_UCLI(__x86_64_mlnx_msn3800_config_STRINGIFY_NAME), "__undefined__" }, #endif #ifdef X86_64_MLNX_MSN3800_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION - { __X86_64_MLNX_MSN3800_CONFIG_STRINGIFY_NAME(X86_64_MLNX_MSN3800_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __X86_64_MLNX_MSN3800_CONFIG_STRINGIFY_VALUE(X86_64_MLNX_MSN3800_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, + { __x86_64_mlnx_msn3800_config_STRINGIFY_NAME(X86_64_MLNX_MSN3800_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __x86_64_mlnx_msn3800_config_STRINGIFY_VALUE(X86_64_MLNX_MSN3800_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, #else -{ X86_64_MLNX_MSN3800_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__X86_64_MLNX_MSN3800_CONFIG_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MLNX_MSN3800_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__x86_64_mlnx_msn3800_config_STRINGIFY_NAME), "__undefined__" }, #endif { NULL, NULL } }; -#undef __X86_64_MLNX_MSN3800_CONFIG_STRINGIFY_VALUE -#undef __X86_64_MLNX_MSN3800_CONFIG_STRINGIFY_NAME +#undef __x86_64_mlnx_msn3800_config_STRINGIFY_VALUE +#undef __x86_64_mlnx_msn3800_config_STRINGIFY_NAME const char* x86_64_mlnx_msn3800_config_lookup(const char* setting) { int i; for(i = 0; x86_64_mlnx_msn3800_config_settings[i].name; i++) { - if(strcmp(x86_64_mlnx_msn3800_config_settings[i].name, setting)) { + if(!strcmp(x86_64_mlnx_msn3800_config_settings[i].name, setting)) { return x86_64_mlnx_msn3800_config_settings[i].value; } } @@ -77,5 +77,4 @@ x86_64_mlnx_msn3800_config_show(struct aim_pvs_s* pvs) return i; } -/* */ - +/* */ diff --git a/packages/platforms/mellanox/x86-64/msn3800/onlp/builds/x86_64_mlnx_msn3800/x86_64_mlnx_msn3800.mk b/packages/platforms/mellanox/x86-64/msn3800/onlp/builds/x86_64_mlnx_msn3800/x86_64_mlnx_msn3800.mk index 97f6d1f5..73d26d27 100644 --- a/packages/platforms/mellanox/x86-64/msn3800/onlp/builds/x86_64_mlnx_msn3800/x86_64_mlnx_msn3800.mk +++ b/packages/platforms/mellanox/x86-64/msn3800/onlp/builds/x86_64_mlnx_msn3800/x86_64_mlnx_msn3800.mk @@ -3,11 +3,11 @@ # # Inclusive Makefile for the x86_64_mlnx_msn3800 module. # -# Autogenerated 2015-12-23 23:45:56.754200 +# Autogenerated 2019-07-13 17:21:03.521391 # ############################################################################### x86_64_mlnx_msn3800_BASEDIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST)))) -include $(x86_64_mlnx_msn3800_BASEDIR)/module/make.mk -include $(x86_64_mlnx_msn3800_BASEDIR)/module/auto/make.mk -include $(x86_64_mlnx_msn3800_BASEDIR)/module/src/make.mk +include $(x86_64_mlnx_msn3800_BASEDIR)module/make.mk +include $(x86_64_mlnx_msn3800_BASEDIR)module/auto/make.mk +include $(x86_64_mlnx_msn3800_BASEDIR)module/src/make.mk diff --git a/packages/platforms/mitac/x86-64/ly1200-b32h0-c3/onlp/builds/x86_64_mitac_ly1200_b32h0_c3/module/auto/x86_64_mitac_ly1200_b32h0_c3.yml b/packages/platforms/mitac/x86-64/ly1200-b32h0-c3/onlp/builds/x86_64_mitac_ly1200_b32h0_c3/module/auto/x86_64_mitac_ly1200_b32h0_c3.yml index ae858717..bbf8f10d 100644 --- a/packages/platforms/mitac/x86-64/ly1200-b32h0-c3/onlp/builds/x86_64_mitac_ly1200_b32h0_c3/module/auto/x86_64_mitac_ly1200_b32h0_c3.yml +++ b/packages/platforms/mitac/x86-64/ly1200-b32h0-c3/onlp/builds/x86_64_mitac_ly1200_b32h0_c3/module/auto/x86_64_mitac_ly1200_b32h0_c3.yml @@ -5,35 +5,35 @@ ############################################################################### cdefs: &cdefs -- x86_64_mitac_ly1200_b32h0_c3_CONFIG_INCLUDE_LOGGING: +- X86_64_MITAC_LY1200_B32H0_C3_CONFIG_INCLUDE_LOGGING: doc: "Include or exclude logging." default: 1 -- x86_64_mitac_ly1200_b32h0_c3_CONFIG_LOG_OPTIONS_DEFAULT: +- X86_64_MITAC_LY1200_B32H0_C3_CONFIG_LOG_OPTIONS_DEFAULT: doc: "Default enabled log options." default: AIM_LOG_OPTIONS_DEFAULT -- x86_64_mitac_ly1200_b32h0_c3_CONFIG_LOG_BITS_DEFAULT: +- X86_64_MITAC_LY1200_B32H0_C3_CONFIG_LOG_BITS_DEFAULT: doc: "Default enabled log bits." default: AIM_LOG_BITS_DEFAULT -- x86_64_mitac_ly1200_b32h0_c3_CONFIG_LOG_CUSTOM_BITS_DEFAULT: +- X86_64_MITAC_LY1200_B32H0_C3_CONFIG_LOG_CUSTOM_BITS_DEFAULT: doc: "Default enabled custom log bits." default: 0 -- x86_64_mitac_ly1200_b32h0_c3_CONFIG_PORTING_STDLIB: +- X86_64_MITAC_LY1200_B32H0_C3_CONFIG_PORTING_STDLIB: doc: "Default all porting macros to use the C standard libraries." default: 1 -- x86_64_mitac_ly1200_b32h0_c3_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS: +- X86_64_MITAC_LY1200_B32H0_C3_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS: doc: "Include standard library headers for stdlib porting macros." - default: x86_64_mitac_ly1200_b32h0_c3_CONFIG_PORTING_STDLIB -- x86_64_mitac_ly1200_b32h0_c3_CONFIG_INCLUDE_UCLI: + default: X86_64_MITAC_LY1200_B32H0_C3_CONFIG_PORTING_STDLIB +- X86_64_MITAC_LY1200_B32H0_C3_CONFIG_INCLUDE_UCLI: doc: "Include generic uCli support." default: 0 -- x86_64_mitac_ly1200_b32h0_c3_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION: +- X86_64_MITAC_LY1200_B32H0_C3_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION: doc: "Assume chassis fan direction is the same as the PSU fan direction." default: 0 definitions: cdefs: - x86_64_mitac_ly1200_b32h0_c3_CONFIG_HEADER: + X86_64_MITAC_LY1200_B32H0_C3_CONFIG_HEADER: defs: *cdefs basename: x86_64_mitac_ly1200_b32h0_c3_config diff --git a/packages/platforms/mitac/x86-64/ly1200-b32h0-c3/onlp/builds/x86_64_mitac_ly1200_b32h0_c3/module/inc/x86_64_mitac_ly1200_b32h0_c3/x86_64_mitac_ly1200_b32h0_c3_config.h b/packages/platforms/mitac/x86-64/ly1200-b32h0-c3/onlp/builds/x86_64_mitac_ly1200_b32h0_c3/module/inc/x86_64_mitac_ly1200_b32h0_c3/x86_64_mitac_ly1200_b32h0_c3_config.h index c804514c..827d1aa7 100644 --- a/packages/platforms/mitac/x86-64/ly1200-b32h0-c3/onlp/builds/x86_64_mitac_ly1200_b32h0_c3/module/inc/x86_64_mitac_ly1200_b32h0_c3/x86_64_mitac_ly1200_b32h0_c3_config.h +++ b/packages/platforms/mitac/x86-64/ly1200-b32h0-c3/onlp/builds/x86_64_mitac_ly1200_b32h0_c3/module/inc/x86_64_mitac_ly1200_b32h0_c3/x86_64_mitac_ly1200_b32h0_c3_config.h @@ -7,8 +7,8 @@ * @{ * *****************************************************************************/ -#ifndef __x86_64_mitac_ly1200_b32h0_c3_CONFIG_H__ -#define __x86_64_mitac_ly1200_b32h0_c3_CONFIG_H__ +#ifndef __X86_64_MITAC_LY1200_B32H0_C3_CONFIG_H__ +#define __X86_64_MITAC_LY1200_B32H0_C3_CONFIG_H__ #ifdef GLOBAL_INCLUDE_CUSTOM_CONFIG #include @@ -17,86 +17,86 @@ #include #endif -/* */ +/* */ #include /** - * x86_64_mitac_ly1200_b32h0_c3_CONFIG_INCLUDE_LOGGING + * X86_64_MITAC_LY1200_B32H0_C3_CONFIG_INCLUDE_LOGGING * * Include or exclude logging. */ -#ifndef x86_64_mitac_ly1200_b32h0_c3_CONFIG_INCLUDE_LOGGING -#define x86_64_mitac_ly1200_b32h0_c3_CONFIG_INCLUDE_LOGGING 1 +#ifndef X86_64_MITAC_LY1200_B32H0_C3_CONFIG_INCLUDE_LOGGING +#define X86_64_MITAC_LY1200_B32H0_C3_CONFIG_INCLUDE_LOGGING 1 #endif /** - * x86_64_mitac_ly1200_b32h0_c3_CONFIG_LOG_OPTIONS_DEFAULT + * X86_64_MITAC_LY1200_B32H0_C3_CONFIG_LOG_OPTIONS_DEFAULT * * Default enabled log options. */ -#ifndef x86_64_mitac_ly1200_b32h0_c3_CONFIG_LOG_OPTIONS_DEFAULT -#define x86_64_mitac_ly1200_b32h0_c3_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT +#ifndef X86_64_MITAC_LY1200_B32H0_C3_CONFIG_LOG_OPTIONS_DEFAULT +#define X86_64_MITAC_LY1200_B32H0_C3_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT #endif /** - * x86_64_mitac_ly1200_b32h0_c3_CONFIG_LOG_BITS_DEFAULT + * X86_64_MITAC_LY1200_B32H0_C3_CONFIG_LOG_BITS_DEFAULT * * Default enabled log bits. */ -#ifndef x86_64_mitac_ly1200_b32h0_c3_CONFIG_LOG_BITS_DEFAULT -#define x86_64_mitac_ly1200_b32h0_c3_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT +#ifndef X86_64_MITAC_LY1200_B32H0_C3_CONFIG_LOG_BITS_DEFAULT +#define X86_64_MITAC_LY1200_B32H0_C3_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT #endif /** - * x86_64_mitac_ly1200_b32h0_c3_CONFIG_LOG_CUSTOM_BITS_DEFAULT + * X86_64_MITAC_LY1200_B32H0_C3_CONFIG_LOG_CUSTOM_BITS_DEFAULT * * Default enabled custom log bits. */ -#ifndef x86_64_mitac_ly1200_b32h0_c3_CONFIG_LOG_CUSTOM_BITS_DEFAULT -#define x86_64_mitac_ly1200_b32h0_c3_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 +#ifndef X86_64_MITAC_LY1200_B32H0_C3_CONFIG_LOG_CUSTOM_BITS_DEFAULT +#define X86_64_MITAC_LY1200_B32H0_C3_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0 #endif /** - * x86_64_mitac_ly1200_b32h0_c3_CONFIG_PORTING_STDLIB + * X86_64_MITAC_LY1200_B32H0_C3_CONFIG_PORTING_STDLIB * * Default all porting macros to use the C standard libraries. */ -#ifndef x86_64_mitac_ly1200_b32h0_c3_CONFIG_PORTING_STDLIB -#define x86_64_mitac_ly1200_b32h0_c3_CONFIG_PORTING_STDLIB 1 +#ifndef X86_64_MITAC_LY1200_B32H0_C3_CONFIG_PORTING_STDLIB +#define X86_64_MITAC_LY1200_B32H0_C3_CONFIG_PORTING_STDLIB 1 #endif /** - * x86_64_mitac_ly1200_b32h0_c3_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + * X86_64_MITAC_LY1200_B32H0_C3_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS * * Include standard library headers for stdlib porting macros. */ -#ifndef x86_64_mitac_ly1200_b32h0_c3_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS -#define x86_64_mitac_ly1200_b32h0_c3_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS x86_64_mitac_ly1200_b32h0_c3_CONFIG_PORTING_STDLIB +#ifndef X86_64_MITAC_LY1200_B32H0_C3_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS +#define X86_64_MITAC_LY1200_B32H0_C3_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS X86_64_MITAC_LY1200_B32H0_C3_CONFIG_PORTING_STDLIB #endif /** - * x86_64_mitac_ly1200_b32h0_c3_CONFIG_INCLUDE_UCLI + * X86_64_MITAC_LY1200_B32H0_C3_CONFIG_INCLUDE_UCLI * * Include generic uCli support. */ -#ifndef x86_64_mitac_ly1200_b32h0_c3_CONFIG_INCLUDE_UCLI -#define x86_64_mitac_ly1200_b32h0_c3_CONFIG_INCLUDE_UCLI 0 +#ifndef X86_64_MITAC_LY1200_B32H0_C3_CONFIG_INCLUDE_UCLI +#define X86_64_MITAC_LY1200_B32H0_C3_CONFIG_INCLUDE_UCLI 0 #endif /** - * x86_64_mitac_ly1200_b32h0_c3_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION + * X86_64_MITAC_LY1200_B32H0_C3_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION * * Assume chassis fan direction is the same as the PSU fan direction. */ -#ifndef x86_64_mitac_ly1200_b32h0_c3_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION -#define x86_64_mitac_ly1200_b32h0_c3_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION 0 +#ifndef X86_64_MITAC_LY1200_B32H0_C3_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION +#define X86_64_MITAC_LY1200_B32H0_C3_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION 0 #endif @@ -129,9 +129,9 @@ const char* x86_64_mitac_ly1200_b32h0_c3_config_lookup(const char* setting); */ int x86_64_mitac_ly1200_b32h0_c3_config_show(struct aim_pvs_s* pvs); -/* */ +/* */ #include "x86_64_mitac_ly1200_b32h0_c3_porting.h" -#endif /* __x86_64_mitac_ly1200_b32h0_c3_CONFIG_H__ */ +#endif /* __X86_64_MITAC_LY1200_B32H0_C3_CONFIG_H__ */ /* @} */ diff --git a/packages/platforms/mitac/x86-64/ly1200-b32h0-c3/onlp/builds/x86_64_mitac_ly1200_b32h0_c3/module/inc/x86_64_mitac_ly1200_b32h0_c3/x86_64_mitac_ly1200_b32h0_c3_porting.h b/packages/platforms/mitac/x86-64/ly1200-b32h0-c3/onlp/builds/x86_64_mitac_ly1200_b32h0_c3/module/inc/x86_64_mitac_ly1200_b32h0_c3/x86_64_mitac_ly1200_b32h0_c3_porting.h index 4de0d778..5591c58b 100644 --- a/packages/platforms/mitac/x86-64/ly1200-b32h0-c3/onlp/builds/x86_64_mitac_ly1200_b32h0_c3/module/inc/x86_64_mitac_ly1200_b32h0_c3/x86_64_mitac_ly1200_b32h0_c3_porting.h +++ b/packages/platforms/mitac/x86-64/ly1200-b32h0-c3/onlp/builds/x86_64_mitac_ly1200_b32h0_c3/module/inc/x86_64_mitac_ly1200_b32h0_c3/x86_64_mitac_ly1200_b32h0_c3_porting.h @@ -12,7 +12,7 @@ /* */ -#if x86_64_mitac_ly1200_b32h0_c3_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 +#if X86_64_MITAC_LY1200_B32H0_C3_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1 #include #include #include @@ -20,83 +20,83 @@ #include #endif -#ifndef x86_64_mitac_ly1200_b32h0_c3_MALLOC +#ifndef X86_64_MITAC_LY1200_B32H0_C3_MALLOC #if defined(GLOBAL_MALLOC) - #define x86_64_mitac_ly1200_b32h0_c3_MALLOC GLOBAL_MALLOC - #elif x86_64_mitac_ly1200_b32h0_c3_CONFIG_PORTING_STDLIB == 1 - #define x86_64_mitac_ly1200_b32h0_c3_MALLOC malloc + #define X86_64_MITAC_LY1200_B32H0_C3_MALLOC GLOBAL_MALLOC + #elif X86_64_MITAC_LY1200_B32H0_C3_CONFIG_PORTING_STDLIB == 1 + #define X86_64_MITAC_LY1200_B32H0_C3_MALLOC malloc #else - #error The macro x86_64_mitac_ly1200_b32h0_c3_MALLOC is required but cannot be defined. + #error The macro X86_64_MITAC_LY1200_B32H0_C3_MALLOC is required but cannot be defined. #endif #endif -#ifndef x86_64_mitac_ly1200_b32h0_c3_FREE +#ifndef X86_64_MITAC_LY1200_B32H0_C3_FREE #if defined(GLOBAL_FREE) - #define x86_64_mitac_ly1200_b32h0_c3_FREE GLOBAL_FREE - #elif x86_64_mitac_ly1200_b32h0_c3_CONFIG_PORTING_STDLIB == 1 - #define x86_64_mitac_ly1200_b32h0_c3_FREE free + #define X86_64_MITAC_LY1200_B32H0_C3_FREE GLOBAL_FREE + #elif X86_64_MITAC_LY1200_B32H0_C3_CONFIG_PORTING_STDLIB == 1 + #define X86_64_MITAC_LY1200_B32H0_C3_FREE free #else - #error The macro x86_64_mitac_ly1200_b32h0_c3_FREE is required but cannot be defined. + #error The macro X86_64_MITAC_LY1200_B32H0_C3_FREE is required but cannot be defined. #endif #endif -#ifndef x86_64_mitac_ly1200_b32h0_c3_MEMSET +#ifndef X86_64_MITAC_LY1200_B32H0_C3_MEMSET #if defined(GLOBAL_MEMSET) - #define x86_64_mitac_ly1200_b32h0_c3_MEMSET GLOBAL_MEMSET - #elif x86_64_mitac_ly1200_b32h0_c3_CONFIG_PORTING_STDLIB == 1 - #define x86_64_mitac_ly1200_b32h0_c3_MEMSET memset + #define X86_64_MITAC_LY1200_B32H0_C3_MEMSET GLOBAL_MEMSET + #elif X86_64_MITAC_LY1200_B32H0_C3_CONFIG_PORTING_STDLIB == 1 + #define X86_64_MITAC_LY1200_B32H0_C3_MEMSET memset #else - #error The macro x86_64_mitac_ly1200_b32h0_c3_MEMSET is required but cannot be defined. + #error The macro X86_64_MITAC_LY1200_B32H0_C3_MEMSET is required but cannot be defined. #endif #endif -#ifndef x86_64_mitac_ly1200_b32h0_c3_MEMCPY +#ifndef X86_64_MITAC_LY1200_B32H0_C3_MEMCPY #if defined(GLOBAL_MEMCPY) - #define x86_64_mitac_ly1200_b32h0_c3_MEMCPY GLOBAL_MEMCPY - #elif x86_64_mitac_ly1200_b32h0_c3_CONFIG_PORTING_STDLIB == 1 - #define x86_64_mitac_ly1200_b32h0_c3_MEMCPY memcpy + #define X86_64_MITAC_LY1200_B32H0_C3_MEMCPY GLOBAL_MEMCPY + #elif X86_64_MITAC_LY1200_B32H0_C3_CONFIG_PORTING_STDLIB == 1 + #define X86_64_MITAC_LY1200_B32H0_C3_MEMCPY memcpy #else - #error The macro x86_64_mitac_ly1200_b32h0_c3_MEMCPY is required but cannot be defined. + #error The macro X86_64_MITAC_LY1200_B32H0_C3_MEMCPY is required but cannot be defined. #endif #endif -#ifndef x86_64_mitac_ly1200_b32h0_c3_STRNCPY +#ifndef X86_64_MITAC_LY1200_B32H0_C3_STRNCPY #if defined(GLOBAL_STRNCPY) - #define x86_64_mitac_ly1200_b32h0_c3_STRNCPY GLOBAL_STRNCPY - #elif x86_64_mitac_ly1200_b32h0_c3_CONFIG_PORTING_STDLIB == 1 - #define x86_64_mitac_ly1200_b32h0_c3_STRNCPY strncpy + #define X86_64_MITAC_LY1200_B32H0_C3_STRNCPY GLOBAL_STRNCPY + #elif X86_64_MITAC_LY1200_B32H0_C3_CONFIG_PORTING_STDLIB == 1 + #define X86_64_MITAC_LY1200_B32H0_C3_STRNCPY strncpy #else - #error The macro x86_64_mitac_ly1200_b32h0_c3_STRNCPY is required but cannot be defined. + #error The macro X86_64_MITAC_LY1200_B32H0_C3_STRNCPY is required but cannot be defined. #endif #endif -#ifndef x86_64_mitac_ly1200_b32h0_c3_VSNPRINTF +#ifndef X86_64_MITAC_LY1200_B32H0_C3_VSNPRINTF #if defined(GLOBAL_VSNPRINTF) - #define x86_64_mitac_ly1200_b32h0_c3_VSNPRINTF GLOBAL_VSNPRINTF - #elif x86_64_mitac_ly1200_b32h0_c3_CONFIG_PORTING_STDLIB == 1 - #define x86_64_mitac_ly1200_b32h0_c3_VSNPRINTF vsnprintf + #define X86_64_MITAC_LY1200_B32H0_C3_VSNPRINTF GLOBAL_VSNPRINTF + #elif X86_64_MITAC_LY1200_B32H0_C3_CONFIG_PORTING_STDLIB == 1 + #define X86_64_MITAC_LY1200_B32H0_C3_VSNPRINTF vsnprintf #else - #error The macro x86_64_mitac_ly1200_b32h0_c3_VSNPRINTF is required but cannot be defined. + #error The macro X86_64_MITAC_LY1200_B32H0_C3_VSNPRINTF is required but cannot be defined. #endif #endif -#ifndef x86_64_mitac_ly1200_b32h0_c3_SNPRINTF +#ifndef X86_64_MITAC_LY1200_B32H0_C3_SNPRINTF #if defined(GLOBAL_SNPRINTF) - #define x86_64_mitac_ly1200_b32h0_c3_SNPRINTF GLOBAL_SNPRINTF - #elif x86_64_mitac_ly1200_b32h0_c3_CONFIG_PORTING_STDLIB == 1 - #define x86_64_mitac_ly1200_b32h0_c3_SNPRINTF snprintf + #define X86_64_MITAC_LY1200_B32H0_C3_SNPRINTF GLOBAL_SNPRINTF + #elif X86_64_MITAC_LY1200_B32H0_C3_CONFIG_PORTING_STDLIB == 1 + #define X86_64_MITAC_LY1200_B32H0_C3_SNPRINTF snprintf #else - #error The macro x86_64_mitac_ly1200_b32h0_c3_SNPRINTF is required but cannot be defined. + #error The macro X86_64_MITAC_LY1200_B32H0_C3_SNPRINTF is required but cannot be defined. #endif #endif -#ifndef x86_64_mitac_ly1200_b32h0_c3_STRLEN +#ifndef X86_64_MITAC_LY1200_B32H0_C3_STRLEN #if defined(GLOBAL_STRLEN) - #define x86_64_mitac_ly1200_b32h0_c3_STRLEN GLOBAL_STRLEN - #elif x86_64_mitac_ly1200_b32h0_c3_CONFIG_PORTING_STDLIB == 1 - #define x86_64_mitac_ly1200_b32h0_c3_STRLEN strlen + #define X86_64_MITAC_LY1200_B32H0_C3_STRLEN GLOBAL_STRLEN + #elif X86_64_MITAC_LY1200_B32H0_C3_CONFIG_PORTING_STDLIB == 1 + #define X86_64_MITAC_LY1200_B32H0_C3_STRLEN strlen #else - #error The macro x86_64_mitac_ly1200_b32h0_c3_STRLEN is required but cannot be defined. + #error The macro X86_64_MITAC_LY1200_B32H0_C3_STRLEN is required but cannot be defined. #endif #endif diff --git a/packages/platforms/mitac/x86-64/ly1200-b32h0-c3/onlp/builds/x86_64_mitac_ly1200_b32h0_c3/module/src/debug.c b/packages/platforms/mitac/x86-64/ly1200-b32h0-c3/onlp/builds/x86_64_mitac_ly1200_b32h0_c3/module/src/debug.c index 3c4397f9..82b240a7 100644 --- a/packages/platforms/mitac/x86-64/ly1200-b32h0-c3/onlp/builds/x86_64_mitac_ly1200_b32h0_c3/module/src/debug.c +++ b/packages/platforms/mitac/x86-64/ly1200-b32h0-c3/onlp/builds/x86_64_mitac_ly1200_b32h0_c3/module/src/debug.c @@ -1,6 +1,6 @@ #include "x86_64_mitac_ly1200_b32h0_c3_int.h" -#if x86_64_mitac_ly1200_b32h0_c3_CONFIG_INCLUDE_DEBUG == 1 +#if X86_64_MITAC_LY1200_B32H0_C3_CONFIG_INCLUDE_DEBUG == 1 #include diff --git a/packages/platforms/mitac/x86-64/ly1200-b32h0-c3/onlp/builds/x86_64_mitac_ly1200_b32h0_c3/module/src/x86_64_mitac_ly1200_b32h0_c3_config.c b/packages/platforms/mitac/x86-64/ly1200-b32h0-c3/onlp/builds/x86_64_mitac_ly1200_b32h0_c3/module/src/x86_64_mitac_ly1200_b32h0_c3_config.c index 1cab3b41..e19cbf30 100644 --- a/packages/platforms/mitac/x86-64/ly1200-b32h0-c3/onlp/builds/x86_64_mitac_ly1200_b32h0_c3/module/src/x86_64_mitac_ly1200_b32h0_c3_config.c +++ b/packages/platforms/mitac/x86-64/ly1200-b32h0-c3/onlp/builds/x86_64_mitac_ly1200_b32h0_c3/module/src/x86_64_mitac_ly1200_b32h0_c3_config.c @@ -5,50 +5,50 @@ *****************************************************************************/ #include -/* */ +/* */ #define __x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_NAME(_x) #_x #define __x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_VALUE(_x) __x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_NAME(_x) x86_64_mitac_ly1200_b32h0_c3_config_settings_t x86_64_mitac_ly1200_b32h0_c3_config_settings[] = { -#ifdef x86_64_mitac_ly1200_b32h0_c3_CONFIG_INCLUDE_LOGGING - { __x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_NAME(x86_64_mitac_ly1200_b32h0_c3_CONFIG_INCLUDE_LOGGING), __x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_VALUE(x86_64_mitac_ly1200_b32h0_c3_CONFIG_INCLUDE_LOGGING) }, +#ifdef X86_64_MITAC_LY1200_B32H0_C3_CONFIG_INCLUDE_LOGGING + { __x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_NAME(X86_64_MITAC_LY1200_B32H0_C3_CONFIG_INCLUDE_LOGGING), __x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_VALUE(X86_64_MITAC_LY1200_B32H0_C3_CONFIG_INCLUDE_LOGGING) }, #else -{ x86_64_mitac_ly1200_b32h0_c3_CONFIG_INCLUDE_LOGGING(__x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MITAC_LY1200_B32H0_C3_CONFIG_INCLUDE_LOGGING(__x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_mitac_ly1200_b32h0_c3_CONFIG_LOG_OPTIONS_DEFAULT - { __x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_NAME(x86_64_mitac_ly1200_b32h0_c3_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_VALUE(x86_64_mitac_ly1200_b32h0_c3_CONFIG_LOG_OPTIONS_DEFAULT) }, +#ifdef X86_64_MITAC_LY1200_B32H0_C3_CONFIG_LOG_OPTIONS_DEFAULT + { __x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_NAME(X86_64_MITAC_LY1200_B32H0_C3_CONFIG_LOG_OPTIONS_DEFAULT), __x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_VALUE(X86_64_MITAC_LY1200_B32H0_C3_CONFIG_LOG_OPTIONS_DEFAULT) }, #else -{ x86_64_mitac_ly1200_b32h0_c3_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MITAC_LY1200_B32H0_C3_CONFIG_LOG_OPTIONS_DEFAULT(__x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_mitac_ly1200_b32h0_c3_CONFIG_LOG_BITS_DEFAULT - { __x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_NAME(x86_64_mitac_ly1200_b32h0_c3_CONFIG_LOG_BITS_DEFAULT), __x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_VALUE(x86_64_mitac_ly1200_b32h0_c3_CONFIG_LOG_BITS_DEFAULT) }, +#ifdef X86_64_MITAC_LY1200_B32H0_C3_CONFIG_LOG_BITS_DEFAULT + { __x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_NAME(X86_64_MITAC_LY1200_B32H0_C3_CONFIG_LOG_BITS_DEFAULT), __x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_VALUE(X86_64_MITAC_LY1200_B32H0_C3_CONFIG_LOG_BITS_DEFAULT) }, #else -{ x86_64_mitac_ly1200_b32h0_c3_CONFIG_LOG_BITS_DEFAULT(__x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MITAC_LY1200_B32H0_C3_CONFIG_LOG_BITS_DEFAULT(__x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_mitac_ly1200_b32h0_c3_CONFIG_LOG_CUSTOM_BITS_DEFAULT - { __x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_NAME(x86_64_mitac_ly1200_b32h0_c3_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_VALUE(x86_64_mitac_ly1200_b32h0_c3_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, +#ifdef X86_64_MITAC_LY1200_B32H0_C3_CONFIG_LOG_CUSTOM_BITS_DEFAULT + { __x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_NAME(X86_64_MITAC_LY1200_B32H0_C3_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_VALUE(X86_64_MITAC_LY1200_B32H0_C3_CONFIG_LOG_CUSTOM_BITS_DEFAULT) }, #else -{ x86_64_mitac_ly1200_b32h0_c3_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MITAC_LY1200_B32H0_C3_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_mitac_ly1200_b32h0_c3_CONFIG_PORTING_STDLIB - { __x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_NAME(x86_64_mitac_ly1200_b32h0_c3_CONFIG_PORTING_STDLIB), __x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_VALUE(x86_64_mitac_ly1200_b32h0_c3_CONFIG_PORTING_STDLIB) }, +#ifdef X86_64_MITAC_LY1200_B32H0_C3_CONFIG_PORTING_STDLIB + { __x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_NAME(X86_64_MITAC_LY1200_B32H0_C3_CONFIG_PORTING_STDLIB), __x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_VALUE(X86_64_MITAC_LY1200_B32H0_C3_CONFIG_PORTING_STDLIB) }, #else -{ x86_64_mitac_ly1200_b32h0_c3_CONFIG_PORTING_STDLIB(__x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MITAC_LY1200_B32H0_C3_CONFIG_PORTING_STDLIB(__x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_mitac_ly1200_b32h0_c3_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS - { __x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_NAME(x86_64_mitac_ly1200_b32h0_c3_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_VALUE(x86_64_mitac_ly1200_b32h0_c3_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, +#ifdef X86_64_MITAC_LY1200_B32H0_C3_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS + { __x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_NAME(X86_64_MITAC_LY1200_B32H0_C3_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_VALUE(X86_64_MITAC_LY1200_B32H0_C3_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) }, #else -{ x86_64_mitac_ly1200_b32h0_c3_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MITAC_LY1200_B32H0_C3_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_mitac_ly1200_b32h0_c3_CONFIG_INCLUDE_UCLI - { __x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_NAME(x86_64_mitac_ly1200_b32h0_c3_CONFIG_INCLUDE_UCLI), __x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_VALUE(x86_64_mitac_ly1200_b32h0_c3_CONFIG_INCLUDE_UCLI) }, +#ifdef X86_64_MITAC_LY1200_B32H0_C3_CONFIG_INCLUDE_UCLI + { __x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_NAME(X86_64_MITAC_LY1200_B32H0_C3_CONFIG_INCLUDE_UCLI), __x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_VALUE(X86_64_MITAC_LY1200_B32H0_C3_CONFIG_INCLUDE_UCLI) }, #else -{ x86_64_mitac_ly1200_b32h0_c3_CONFIG_INCLUDE_UCLI(__x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MITAC_LY1200_B32H0_C3_CONFIG_INCLUDE_UCLI(__x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_NAME), "__undefined__" }, #endif -#ifdef x86_64_mitac_ly1200_b32h0_c3_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION - { __x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_NAME(x86_64_mitac_ly1200_b32h0_c3_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_VALUE(x86_64_mitac_ly1200_b32h0_c3_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, +#ifdef X86_64_MITAC_LY1200_B32H0_C3_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION + { __x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_NAME(X86_64_MITAC_LY1200_B32H0_C3_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION), __x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_VALUE(X86_64_MITAC_LY1200_B32H0_C3_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION) }, #else -{ x86_64_mitac_ly1200_b32h0_c3_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_NAME), "__undefined__" }, +{ X86_64_MITAC_LY1200_B32H0_C3_CONFIG_INCLUDE_DEFAULT_FAN_DIRECTION(__x86_64_mitac_ly1200_b32h0_c3_config_STRINGIFY_NAME), "__undefined__" }, #endif { NULL, NULL } }; @@ -60,7 +60,7 @@ x86_64_mitac_ly1200_b32h0_c3_config_lookup(const char* setting) { int i; for(i = 0; x86_64_mitac_ly1200_b32h0_c3_config_settings[i].name; i++) { - if(strcmp(x86_64_mitac_ly1200_b32h0_c3_config_settings[i].name, setting)) { + if(!strcmp(x86_64_mitac_ly1200_b32h0_c3_config_settings[i].name, setting)) { return x86_64_mitac_ly1200_b32h0_c3_config_settings[i].value; } } @@ -77,5 +77,5 @@ x86_64_mitac_ly1200_b32h0_c3_config_show(struct aim_pvs_s* pvs) return i; } -/* */ +/* */ diff --git a/packages/platforms/mitac/x86-64/ly1200-b32h0-c3/onlp/builds/x86_64_mitac_ly1200_b32h0_c3/module/src/x86_64_mitac_ly1200_b32h0_c3_log.c b/packages/platforms/mitac/x86-64/ly1200-b32h0-c3/onlp/builds/x86_64_mitac_ly1200_b32h0_c3/module/src/x86_64_mitac_ly1200_b32h0_c3_log.c index be8201f7..da60c949 100644 --- a/packages/platforms/mitac/x86-64/ly1200-b32h0-c3/onlp/builds/x86_64_mitac_ly1200_b32h0_c3/module/src/x86_64_mitac_ly1200_b32h0_c3_log.c +++ b/packages/platforms/mitac/x86-64/ly1200-b32h0-c3/onlp/builds/x86_64_mitac_ly1200_b32h0_c3/module/src/x86_64_mitac_ly1200_b32h0_c3_log.c @@ -10,9 +10,9 @@ * x86_64_mitac_ly1200_b32h0_c3 log struct. */ AIM_LOG_STRUCT_DEFINE( - x86_64_mitac_ly1200_b32h0_c3_CONFIG_LOG_OPTIONS_DEFAULT, - x86_64_mitac_ly1200_b32h0_c3_CONFIG_LOG_BITS_DEFAULT, + X86_64_MITAC_LY1200_B32H0_C3_CONFIG_LOG_OPTIONS_DEFAULT, + X86_64_MITAC_LY1200_B32H0_C3_CONFIG_LOG_BITS_DEFAULT, NULL, /* Custom log map */ - x86_64_mitac_ly1200_b32h0_c3_CONFIG_LOG_CUSTOM_BITS_DEFAULT + X86_64_MITAC_LY1200_B32H0_C3_CONFIG_LOG_CUSTOM_BITS_DEFAULT ); diff --git a/packages/platforms/mitac/x86-64/ly1200-b32h0-c3/onlp/builds/x86_64_mitac_ly1200_b32h0_c3/module/src/x86_64_mitac_ly1200_b32h0_c3_ucli.c b/packages/platforms/mitac/x86-64/ly1200-b32h0-c3/onlp/builds/x86_64_mitac_ly1200_b32h0_c3/module/src/x86_64_mitac_ly1200_b32h0_c3_ucli.c index 37550108..cdb680e8 100644 --- a/packages/platforms/mitac/x86-64/ly1200-b32h0-c3/onlp/builds/x86_64_mitac_ly1200_b32h0_c3/module/src/x86_64_mitac_ly1200_b32h0_c3_ucli.c +++ b/packages/platforms/mitac/x86-64/ly1200-b32h0-c3/onlp/builds/x86_64_mitac_ly1200_b32h0_c3/module/src/x86_64_mitac_ly1200_b32h0_c3_ucli.c @@ -5,7 +5,7 @@ *****************************************************************************/ #include -#if x86_64_mitac_ly1200_b32h0_c3_CONFIG_INCLUDE_UCLI == 1 +#if X86_64_MITAC_LY1200_B32H0_C3_CONFIG_INCLUDE_UCLI == 1 #include #include diff --git a/packages/platforms/netberg/x86-64/aurora-420-rangeley/onlp/builds/src/x86_64_netberg_aurora_420_rangeley/module/auto/x86_64_netberg_aurora_420_rangeley.yml b/packages/platforms/netberg/x86-64/aurora-420-rangeley/onlp/builds/src/x86_64_netberg_aurora_420_rangeley/module/auto/x86_64_netberg_aurora_420_rangeley.yml index c9e72b4f..2a500dc9 100644 --- a/packages/platforms/netberg/x86-64/aurora-420-rangeley/onlp/builds/src/x86_64_netberg_aurora_420_rangeley/module/auto/x86_64_netberg_aurora_420_rangeley.yml +++ b/packages/platforms/netberg/x86-64/aurora-420-rangeley/onlp/builds/src/x86_64_netberg_aurora_420_rangeley/module/auto/x86_64_netberg_aurora_420_rangeley.yml @@ -100,6 +100,10 @@ definitions: - FAN : 2 - PSU1 : 3 - PSU2 : 4 + - LED1 : 5 + - LED2 : 6 + - LED3 : 7 + - LED4 : 8 led_oid: members: @@ -107,6 +111,10 @@ definitions: - FAN : ONLP_LED_ID_CREATE(2) - PSU1 : ONLP_LED_ID_CREATE(3) - PSU2 : ONLP_LED_ID_CREATE(4) + - LED1 : ONLP_LED_ID_CREATE(5) + - LED2 : ONLP_LED_ID_CREATE(6) + - LED3 : ONLP_LED_ID_CREATE(7) + - LED4 : ONLP_LED_ID_CREATE(8) portingmacro: X86_64_NETBERG_AURORA_420_RANGELEY: diff --git a/packages/platforms/netberg/x86-64/aurora-420-rangeley/onlp/builds/src/x86_64_netberg_aurora_420_rangeley/module/src/x86_64_netberg_aurora_420_rangeley_int.h b/packages/platforms/netberg/x86-64/aurora-420-rangeley/onlp/builds/src/x86_64_netberg_aurora_420_rangeley/module/src/x86_64_netberg_aurora_420_rangeley_int.h index 3067638c..8e7fc4c8 100755 --- a/packages/platforms/netberg/x86-64/aurora-420-rangeley/onlp/builds/src/x86_64_netberg_aurora_420_rangeley/module/src/x86_64_netberg_aurora_420_rangeley_int.h +++ b/packages/platforms/netberg/x86-64/aurora-420-rangeley/onlp/builds/src/x86_64_netberg_aurora_420_rangeley/module/src/x86_64_netberg_aurora_420_rangeley_int.h @@ -82,10 +82,14 @@ extern aim_map_si_t fan_oid_desc_map[]; /** led_id */ typedef enum led_id_e { - LED_ID_LED1 = 1, - LED_ID_LED2 = 2, - LED_ID_LED3 = 3, - LED_ID_LED4 = 4, + LED_ID_STAT = 1, + LED_ID_FAN = 2, + LED_ID_PSU1 = 3, + LED_ID_PSU2 = 4, + LED_ID_LED1 = 5, + LED_ID_LED2 = 6, + LED_ID_LED3 = 7, + LED_ID_LED4 = 8, } led_id_t; /** Enum names. */ @@ -111,10 +115,14 @@ extern aim_map_si_t led_id_desc_map[]; /** led_oid */ typedef enum led_oid_e { - LED_OID_LED1 = ONLP_LED_ID_CREATE(1), - LED_OID_LED2 = ONLP_LED_ID_CREATE(2), - LED_OID_LED3 = ONLP_LED_ID_CREATE(3), - LED_OID_LED4 = ONLP_LED_ID_CREATE(4), + LED_OID_STAT = ONLP_LED_ID_CREATE(1), + LED_OID_FAN = ONLP_LED_ID_CREATE(2), + LED_OID_PSU1 = ONLP_LED_ID_CREATE(3), + LED_OID_PSU2 = ONLP_LED_ID_CREATE(4), + LED_OID_LED1 = ONLP_LED_ID_CREATE(5), + LED_OID_LED2 = ONLP_LED_ID_CREATE(6), + LED_OID_LED3 = ONLP_LED_ID_CREATE(7), + LED_OID_LED4 = ONLP_LED_ID_CREATE(8), } led_oid_t; /** Enum names. */ diff --git a/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/auto/make.mk b/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/auto/make.mk deleted file mode 100755 index 854d9b55..00000000 --- a/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/auto/make.mk +++ /dev/null @@ -1,7 +0,0 @@ -# -# x86_64_netberg_aurora_710 Autogeneration -# -############################################################################### -x86-64-netberg-aurora-710_AUTO_DEFS := module/auto/x86-64-netberg-aurora-710.yml -x86-64-netberg-aurora-710_AUTO_DIRS := module/inc/x86-64-netberg-aurora-710 module/src -include $(BUILDER)/auto.mk diff --git a/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/.gitignore b/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/.gitignore similarity index 100% rename from packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/.gitignore rename to packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/.gitignore diff --git a/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/.module b/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/.module similarity index 100% rename from packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/.module rename to packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/.module diff --git a/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/Makefile b/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/Makefile similarity index 99% rename from packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/Makefile rename to packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/Makefile index e6520550..a27ea079 100755 --- a/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/Makefile +++ b/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/Makefile @@ -4,7 +4,6 @@ # ############################################################ include $(ONL)/make/config.mk - MODULE := x86_64_netberg_aurora_710 AUTOMODULE := x86_64_netberg_aurora_710 include $(BUILDER)/definemodule.mk diff --git a/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/auto/make.mk b/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/auto/make.mk new file mode 100755 index 00000000..f4356793 --- /dev/null +++ b/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/auto/make.mk @@ -0,0 +1,7 @@ +# +# x86_64_netberg_aurora_710 Autogeneration +# +############################################################################### +x86_64_netberg_aurora_710_AUTO_DEFS := module/auto/x86_64_netberg_aurora_710.yml +x86_64_netberg_aurora_710_AUTO_DIRS := module/inc/x86_64_netberg_aurora_710 module/src +include $(BUILDER)/auto.mk diff --git a/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/auto/x86-64-netberg-aurora-710.yml b/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/auto/x86_64_netberg_aurora_710.yml similarity index 100% rename from packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/auto/x86-64-netberg-aurora-710.yml rename to packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/auto/x86_64_netberg_aurora_710.yml diff --git a/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/inc/x86_64_netberg_aurora_710/x86_64_netberg_aurora_710.x b/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/inc/x86_64_netberg_aurora_710/x86_64_netberg_aurora_710.x similarity index 100% rename from packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/inc/x86_64_netberg_aurora_710/x86_64_netberg_aurora_710.x rename to packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/inc/x86_64_netberg_aurora_710/x86_64_netberg_aurora_710.x diff --git a/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/inc/x86_64_netberg_aurora_710/x86_64_netberg_aurora_710_config.h b/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/inc/x86_64_netberg_aurora_710/x86_64_netberg_aurora_710_config.h similarity index 94% rename from packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/inc/x86_64_netberg_aurora_710/x86_64_netberg_aurora_710_config.h rename to packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/inc/x86_64_netberg_aurora_710/x86_64_netberg_aurora_710_config.h index 699aa806..e0e6f64f 100755 --- a/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/inc/x86_64_netberg_aurora_710/x86_64_netberg_aurora_710_config.h +++ b/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/inc/x86_64_netberg_aurora_710/x86_64_netberg_aurora_710_config.h @@ -101,7 +101,7 @@ #ifndef X86_64_NETBERG_AURORA_710_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS -#define X86_64_NETBERG_AURORA_710_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS X86_64_NETBERG_AURORA_710_CONFIG_PORTING_STDLIB +#define X86_64_NETBERG_AURORA_710_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS NETBERG_AURORA_710_CONFIG_PORTING_STDLIB #endif /** @@ -114,16 +114,6 @@ #define X86_64_NETBERG_AURORA_710_CONFIG_INCLUDE_UCLI 0 #endif -/** - * X86_64_NETBERG_AURORA_710_CONFIG_SFP_COUNT - * - * SFP Count. */ - - -#ifndef X86_64_NETBERG_AURORA_710_CONFIG_SFP_COUNT -#define X86_64_NETBERG_AURORA_710_CONFIG_SFP_COUNT 0 -#endif - /** diff --git a/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/inc/x86_64_netberg_aurora_710/x86_64_netberg_aurora_710_dox.h b/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/inc/x86_64_netberg_aurora_710/x86_64_netberg_aurora_710_dox.h similarity index 100% rename from packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/inc/x86_64_netberg_aurora_710/x86_64_netberg_aurora_710_dox.h rename to packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/inc/x86_64_netberg_aurora_710/x86_64_netberg_aurora_710_dox.h diff --git a/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/inc/x86_64_netberg_aurora_710/x86_64_netberg_aurora_710_porting.h b/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/inc/x86_64_netberg_aurora_710/x86_64_netberg_aurora_710_porting.h similarity index 100% rename from packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/inc/x86_64_netberg_aurora_710/x86_64_netberg_aurora_710_porting.h rename to packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/inc/x86_64_netberg_aurora_710/x86_64_netberg_aurora_710_porting.h diff --git a/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/make.mk b/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/make.mk similarity index 100% rename from packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/make.mk rename to packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/make.mk diff --git a/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/src/Makefile b/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/src/Makefile similarity index 100% rename from packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/src/Makefile rename to packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/src/Makefile diff --git a/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/src/fani.c b/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/src/fani.c similarity index 100% rename from packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/src/fani.c rename to packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/src/fani.c diff --git a/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/src/ledi.c b/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/src/ledi.c similarity index 100% rename from packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/src/ledi.c rename to packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/src/ledi.c diff --git a/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/src/make.mk b/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/src/make.mk similarity index 100% rename from packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/src/make.mk rename to packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/src/make.mk diff --git a/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/src/platform_lib.c b/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/src/platform_lib.c similarity index 100% rename from packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/src/platform_lib.c rename to packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/src/platform_lib.c diff --git a/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/src/platform_lib.h b/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/src/platform_lib.h similarity index 100% rename from packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/src/platform_lib.h rename to packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/src/platform_lib.h diff --git a/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/src/psui.c b/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/src/psui.c similarity index 100% rename from packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/src/psui.c rename to packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/src/psui.c diff --git a/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/src/sfpi.c b/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/src/sfpi.c similarity index 100% rename from packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/src/sfpi.c rename to packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/src/sfpi.c diff --git a/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/src/sysi.c b/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/src/sysi.c similarity index 100% rename from packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/src/sysi.c rename to packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/src/sysi.c diff --git a/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/src/thermali.c b/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/src/thermali.c similarity index 100% rename from packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/src/thermali.c rename to packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/src/thermali.c diff --git a/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/src/x86_64_netberg_aurora_710_config.c b/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/src/x86_64_netberg_aurora_710_config.c similarity index 91% rename from packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/src/x86_64_netberg_aurora_710_config.c rename to packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/src/x86_64_netberg_aurora_710_config.c index 1b852b5a..5e9235cc 100755 --- a/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/src/x86_64_netberg_aurora_710_config.c +++ b/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/src/x86_64_netberg_aurora_710_config.c @@ -64,11 +64,6 @@ x86_64_netberg_aurora_710_config_settings_t x86_64_netberg_aurora_710_config_set { __x86_64_netberg_aurora_710_config_STRINGIFY_NAME(X86_64_NETBERG_AURORA_710_CONFIG_INCLUDE_UCLI), __x86_64_netberg_aurora_710_config_STRINGIFY_VALUE(X86_64_NETBERG_AURORA_710_CONFIG_INCLUDE_UCLI) }, #else { X86_64_NETBERG_AURORA_710_CONFIG_INCLUDE_UCLI(__x86_64_netberg_aurora_710_config_STRINGIFY_NAME), "__undefined__" }, -#endif -#ifdef X86_64_NETBERG_AURORA_710_CONFIG_SFP_COUNT - { __x86_64_netberg_aurora_710_config_STRINGIFY_NAME(X86_64_NETBERG_AURORA_710_CONFIG_SFP_COUNT), __x86_64_netberg_aurora_710_config_STRINGIFY_VALUE(X86_64_NETBERG_AURORA_710_CONFIG_SFP_COUNT) }, -#else -{ X86_64_NETBERG_AURORA_710_CONFIG_SFP_COUNT(__x86_64_netberg_aurora_710_config_STRINGIFY_NAME), "__undefined__" }, #endif { NULL, NULL } }; @@ -80,7 +75,7 @@ x86_64_netberg_aurora_710_config_lookup(const char* setting) { int i; for(i = 0; x86_64_netberg_aurora_710_config_settings[i].name; i++) { - if(strcmp(x86_64_netberg_aurora_710_config_settings[i].name, setting)) { + if(!strcmp(x86_64_netberg_aurora_710_config_settings[i].name, setting)) { return x86_64_netberg_aurora_710_config_settings[i].value; } } diff --git a/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/src/x86_64_netberg_aurora_710_enums.c b/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/src/x86_64_netberg_aurora_710_enums.c similarity index 100% rename from packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/src/x86_64_netberg_aurora_710_enums.c rename to packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/src/x86_64_netberg_aurora_710_enums.c diff --git a/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/src/x86_64_netberg_aurora_710_int.h b/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/src/x86_64_netberg_aurora_710_int.h similarity index 100% rename from packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/src/x86_64_netberg_aurora_710_int.h rename to packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/src/x86_64_netberg_aurora_710_int.h diff --git a/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/src/x86_64_netberg_aurora_710_log.c b/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/src/x86_64_netberg_aurora_710_log.c similarity index 100% rename from packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/src/x86_64_netberg_aurora_710_log.c rename to packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/src/x86_64_netberg_aurora_710_log.c diff --git a/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/src/x86_64_netberg_aurora_710_log.h b/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/src/x86_64_netberg_aurora_710_log.h similarity index 100% rename from packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/src/x86_64_netberg_aurora_710_log.h rename to packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/src/x86_64_netberg_aurora_710_log.h diff --git a/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/src/x86_64_netberg_aurora_710_module.c b/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/src/x86_64_netberg_aurora_710_module.c similarity index 100% rename from packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/src/x86_64_netberg_aurora_710_module.c rename to packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/src/x86_64_netberg_aurora_710_module.c diff --git a/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/src/x86_64_netberg_aurora_710_ucli.c b/packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/src/x86_64_netberg_aurora_710_ucli.c similarity index 100% rename from packages/platforms/netberg/x86-64/aurora-710/onlp/builds/src/x86_64_netberg_aurora_710/module/src/x86_64_netberg_aurora_710_ucli.c rename to packages/platforms/netberg/x86-64/aurora-710/onlp/builds/x86_64_netberg_aurora_710/module/src/x86_64_netberg_aurora_710_ucli.c diff --git a/packages/platforms/nxp/arm64/any/arm64-nxp-layerscape/module/src/arm64_nxp_layerscape_config.c b/packages/platforms/nxp/arm64/any/arm64-nxp-layerscape/module/src/arm64_nxp_layerscape_config.c index bd74b87a..9d80fa0e 100644 --- a/packages/platforms/nxp/arm64/any/arm64-nxp-layerscape/module/src/arm64_nxp_layerscape_config.c +++ b/packages/platforms/nxp/arm64/any/arm64-nxp-layerscape/module/src/arm64_nxp_layerscape_config.c @@ -80,7 +80,7 @@ arm64_nxp_layerscape_config_lookup(const char* setting) { int i; for(i = 0; arm64_nxp_layerscape_config_settings[i].name; i++) { - if(strcmp(arm64_nxp_layerscape_config_settings[i].name, setting)) { + if(!strcmp(arm64_nxp_layerscape_config_settings[i].name, setting)) { return arm64_nxp_layerscape_config_settings[i].value; } } diff --git a/packages/platforms/quanta/x86-64/ix7-rglbmc/onlp/builds/src/x86_64_quanta_ix7_rglbmc/module/src/x86_64_quanta_ix7_rglbmc_config.c b/packages/platforms/quanta/x86-64/ix7-rglbmc/onlp/builds/src/x86_64_quanta_ix7_rglbmc/module/src/x86_64_quanta_ix7_rglbmc_config.c index 881cd788..a9e20590 100644 --- a/packages/platforms/quanta/x86-64/ix7-rglbmc/onlp/builds/src/x86_64_quanta_ix7_rglbmc/module/src/x86_64_quanta_ix7_rglbmc_config.c +++ b/packages/platforms/quanta/x86-64/ix7-rglbmc/onlp/builds/src/x86_64_quanta_ix7_rglbmc/module/src/x86_64_quanta_ix7_rglbmc_config.c @@ -75,7 +75,7 @@ x86_64_quanta_ix7_rglbmc_config_lookup(const char* setting) { int i; for(i = 0; x86_64_quanta_ix7_rglbmc_config_settings[i].name; i++) { - if(strcmp(x86_64_quanta_ix7_rglbmc_config_settings[i].name, setting)) { + if(!strcmp(x86_64_quanta_ix7_rglbmc_config_settings[i].name, setting)) { return x86_64_quanta_ix7_rglbmc_config_settings[i].value; } } diff --git a/packages/platforms/quanta/x86-64/ix7-rglbmc/onlp/builds/src/x86_64_quanta_ix7_rglbmc/module/src/x86_64_quanta_ix7_rglbmc_int.h b/packages/platforms/quanta/x86-64/ix7-rglbmc/onlp/builds/src/x86_64_quanta_ix7_rglbmc/module/src/x86_64_quanta_ix7_rglbmc_int.h index f0d72f37..7ff0b735 100644 --- a/packages/platforms/quanta/x86-64/ix7-rglbmc/onlp/builds/src/x86_64_quanta_ix7_rglbmc/module/src/x86_64_quanta_ix7_rglbmc_int.h +++ b/packages/platforms/quanta/x86-64/ix7-rglbmc/onlp/builds/src/x86_64_quanta_ix7_rglbmc/module/src/x86_64_quanta_ix7_rglbmc_int.h @@ -10,46 +10,102 @@ #include /* */ -/** thermal_oid */ -typedef enum thermal_oid_e { - THERMAL_OID_THERMAL1 = ONLP_THERMAL_ID_CREATE(1), - THERMAL_OID_THERMAL2 = ONLP_THERMAL_ID_CREATE(2), - THERMAL_OID_THERMAL3 = ONLP_THERMAL_ID_CREATE(3), - THERMAL_OID_THERMAL4 = ONLP_THERMAL_ID_CREATE(4), - THERMAL_OID_THERMAL5 = ONLP_THERMAL_ID_CREATE(5), - THERMAL_OID_THERMAL6 = ONLP_THERMAL_ID_CREATE(6), - THERMAL_OID_THERMAL7 = ONLP_THERMAL_ID_CREATE(7), - THERMAL_OID_THERMAL8 = ONLP_THERMAL_ID_CREATE(8), - THERMAL_OID_THERMAL9 = ONLP_THERMAL_ID_CREATE(9), - THERMAL_OID_THERMAL10 = ONLP_THERMAL_ID_CREATE(10), - THERMAL_OID_THERMAL11 = ONLP_THERMAL_ID_CREATE(11), - THERMAL_OID_THERMAL12 = ONLP_THERMAL_ID_CREATE(12), - THERMAL_OID_THERMAL13 = ONLP_THERMAL_ID_CREATE(13), - THERMAL_OID_THERMAL14 = ONLP_THERMAL_ID_CREATE(14), - THERMAL_OID_THERMAL15 = ONLP_THERMAL_ID_CREATE(15), - THERMAL_OID_THERMAL16 = ONLP_THERMAL_ID_CREATE(16), -} thermal_oid_t; +/** fan_id */ +typedef enum fan_id_e { + FAN_ID_FAN1 = 1, + FAN_ID_FAN2 = 2, + FAN_ID_FAN3 = 3, + FAN_ID_FAN4 = 4, + FAN_ID_FAN5 = 5, + FAN_ID_FAN6 = 6, + FAN_ID_FAN7 = 7, + FAN_ID_FAN8 = 8, + FAN_ID_FAN9 = 9, + FAN_ID_FAN10 = 10, +} fan_id_t; /** Enum names. */ -const char* thermal_oid_name(thermal_oid_t e); +const char* fan_id_name(fan_id_t e); /** Enum values. */ -int thermal_oid_value(const char* str, thermal_oid_t* e, int substr); +int fan_id_value(const char* str, fan_id_t* e, int substr); /** Enum descriptions. */ -const char* thermal_oid_desc(thermal_oid_t e); +const char* fan_id_desc(fan_id_t e); /** Enum validator. */ -int thermal_oid_valid(thermal_oid_t e); +int fan_id_valid(fan_id_t e); /** validator */ -#define THERMAL_OID_VALID(_e) \ - (thermal_oid_valid((_e))) +#define FAN_ID_VALID(_e) \ + (fan_id_valid((_e))) -/** thermal_oid_map table. */ -extern aim_map_si_t thermal_oid_map[]; -/** thermal_oid_desc_map table. */ -extern aim_map_si_t thermal_oid_desc_map[]; +/** fan_id_map table. */ +extern aim_map_si_t fan_id_map[]; +/** fan_id_desc_map table. */ +extern aim_map_si_t fan_id_desc_map[]; + +/** fan_oid */ +typedef enum fan_oid_e { + FAN_OID_FAN1 = ONLP_FAN_ID_CREATE(1), + FAN_OID_FAN2 = ONLP_FAN_ID_CREATE(2), + FAN_OID_FAN3 = ONLP_FAN_ID_CREATE(3), + FAN_OID_FAN4 = ONLP_FAN_ID_CREATE(4), + FAN_OID_FAN5 = ONLP_FAN_ID_CREATE(5), + FAN_OID_FAN6 = ONLP_FAN_ID_CREATE(6), + FAN_OID_FAN7 = ONLP_FAN_ID_CREATE(7), + FAN_OID_FAN8 = ONLP_FAN_ID_CREATE(8), + FAN_OID_FAN9 = ONLP_FAN_ID_CREATE(9), + FAN_OID_FAN10 = ONLP_FAN_ID_CREATE(10), +} fan_oid_t; + +/** Enum names. */ +const char* fan_oid_name(fan_oid_t e); + +/** Enum values. */ +int fan_oid_value(const char* str, fan_oid_t* e, int substr); + +/** Enum descriptions. */ +const char* fan_oid_desc(fan_oid_t e); + +/** Enum validator. */ +int fan_oid_valid(fan_oid_t e); + +/** validator */ +#define FAN_OID_VALID(_e) \ + (fan_oid_valid((_e))) + +/** fan_oid_map table. */ +extern aim_map_si_t fan_oid_map[]; +/** fan_oid_desc_map table. */ +extern aim_map_si_t fan_oid_desc_map[]; + +/** psu_id */ +typedef enum psu_id_e { + PSU_ID_PSU1 = 1, + PSU_ID_PSU2 = 2, +} psu_id_t; + +/** Enum names. */ +const char* psu_id_name(psu_id_t e); + +/** Enum values. */ +int psu_id_value(const char* str, psu_id_t* e, int substr); + +/** Enum descriptions. */ +const char* psu_id_desc(psu_id_t e); + +/** Enum validator. */ +int psu_id_valid(psu_id_t e); + +/** validator */ +#define PSU_ID_VALID(_e) \ + (psu_id_valid((_e))) + +/** psu_id_map table. */ +extern aim_map_si_t psu_id_map[]; +/** psu_id_desc_map table. */ +extern aim_map_si_t psu_id_desc_map[]; /** psu_oid */ typedef enum psu_oid_e { @@ -119,102 +175,46 @@ extern aim_map_si_t thermal_id_map[]; /** thermal_id_desc_map table. */ extern aim_map_si_t thermal_id_desc_map[]; -/** fan_id */ -typedef enum fan_id_e { - FAN_ID_FAN1 = 1, - FAN_ID_FAN2 = 2, - FAN_ID_FAN3 = 3, - FAN_ID_FAN4 = 4, - FAN_ID_FAN5 = 5, - FAN_ID_FAN6 = 6, - FAN_ID_FAN7 = 7, - FAN_ID_FAN8 = 8, - FAN_ID_FAN9 = 9, - FAN_ID_FAN10 = 10, -} fan_id_t; +/** thermal_oid */ +typedef enum thermal_oid_e { + THERMAL_OID_THERMAL1 = ONLP_THERMAL_ID_CREATE(1), + THERMAL_OID_THERMAL2 = ONLP_THERMAL_ID_CREATE(2), + THERMAL_OID_THERMAL3 = ONLP_THERMAL_ID_CREATE(3), + THERMAL_OID_THERMAL4 = ONLP_THERMAL_ID_CREATE(4), + THERMAL_OID_THERMAL5 = ONLP_THERMAL_ID_CREATE(5), + THERMAL_OID_THERMAL6 = ONLP_THERMAL_ID_CREATE(6), + THERMAL_OID_THERMAL7 = ONLP_THERMAL_ID_CREATE(7), + THERMAL_OID_THERMAL8 = ONLP_THERMAL_ID_CREATE(8), + THERMAL_OID_THERMAL9 = ONLP_THERMAL_ID_CREATE(9), + THERMAL_OID_THERMAL10 = ONLP_THERMAL_ID_CREATE(10), + THERMAL_OID_THERMAL11 = ONLP_THERMAL_ID_CREATE(11), + THERMAL_OID_THERMAL12 = ONLP_THERMAL_ID_CREATE(12), + THERMAL_OID_THERMAL13 = ONLP_THERMAL_ID_CREATE(13), + THERMAL_OID_THERMAL14 = ONLP_THERMAL_ID_CREATE(14), + THERMAL_OID_THERMAL15 = ONLP_THERMAL_ID_CREATE(15), + THERMAL_OID_THERMAL16 = ONLP_THERMAL_ID_CREATE(16), +} thermal_oid_t; /** Enum names. */ -const char* fan_id_name(fan_id_t e); +const char* thermal_oid_name(thermal_oid_t e); /** Enum values. */ -int fan_id_value(const char* str, fan_id_t* e, int substr); +int thermal_oid_value(const char* str, thermal_oid_t* e, int substr); /** Enum descriptions. */ -const char* fan_id_desc(fan_id_t e); +const char* thermal_oid_desc(thermal_oid_t e); /** Enum validator. */ -int fan_id_valid(fan_id_t e); +int thermal_oid_valid(thermal_oid_t e); /** validator */ -#define FAN_ID_VALID(_e) \ - (fan_id_valid((_e))) +#define THERMAL_OID_VALID(_e) \ + (thermal_oid_valid((_e))) -/** fan_id_map table. */ -extern aim_map_si_t fan_id_map[]; -/** fan_id_desc_map table. */ -extern aim_map_si_t fan_id_desc_map[]; - -/** psu_id */ -typedef enum psu_id_e { - PSU_ID_PSU1 = 1, - PSU_ID_PSU2 = 2, -} psu_id_t; - -/** Enum names. */ -const char* psu_id_name(psu_id_t e); - -/** Enum values. */ -int psu_id_value(const char* str, psu_id_t* e, int substr); - -/** Enum descriptions. */ -const char* psu_id_desc(psu_id_t e); - -/** Enum validator. */ -int psu_id_valid(psu_id_t e); - -/** validator */ -#define PSU_ID_VALID(_e) \ - (psu_id_valid((_e))) - -/** psu_id_map table. */ -extern aim_map_si_t psu_id_map[]; -/** psu_id_desc_map table. */ -extern aim_map_si_t psu_id_desc_map[]; - -/** fan_oid */ -typedef enum fan_oid_e { - FAN_OID_FAN1 = ONLP_FAN_ID_CREATE(1), - FAN_OID_FAN2 = ONLP_FAN_ID_CREATE(2), - FAN_OID_FAN3 = ONLP_FAN_ID_CREATE(3), - FAN_OID_FAN4 = ONLP_FAN_ID_CREATE(4), - FAN_OID_FAN5 = ONLP_FAN_ID_CREATE(5), - FAN_OID_FAN6 = ONLP_FAN_ID_CREATE(6), - FAN_OID_FAN7 = ONLP_FAN_ID_CREATE(7), - FAN_OID_FAN8 = ONLP_FAN_ID_CREATE(8), - FAN_OID_FAN9 = ONLP_FAN_ID_CREATE(9), - FAN_OID_FAN10 = ONLP_FAN_ID_CREATE(10), -} fan_oid_t; - -/** Enum names. */ -const char* fan_oid_name(fan_oid_t e); - -/** Enum values. */ -int fan_oid_value(const char* str, fan_oid_t* e, int substr); - -/** Enum descriptions. */ -const char* fan_oid_desc(fan_oid_t e); - -/** Enum validator. */ -int fan_oid_valid(fan_oid_t e); - -/** validator */ -#define FAN_OID_VALID(_e) \ - (fan_oid_valid((_e))) - -/** fan_oid_map table. */ -extern aim_map_si_t fan_oid_map[]; -/** fan_oid_desc_map table. */ -extern aim_map_si_t fan_oid_desc_map[]; +/** thermal_oid_map table. */ +extern aim_map_si_t thermal_oid_map[]; +/** thermal_oid_desc_map table. */ +extern aim_map_si_t thermal_oid_desc_map[]; /* */ /* psu info table */