Merge branch 'feat/support_change_ot_version_msg' into 'master'

feat(openthread): support changing openthread version information

See merge request espressif/esp-idf!31849
This commit is contained in:
Shu Chen 2024-07-25 15:48:43 +08:00
commit 93c32d4de9
6 changed files with 41 additions and 8 deletions

View File

@ -237,9 +237,9 @@ execute_process(
string(TIMESTAMP OT_BUILD_TIMESTAMP " %Y-%m-%d %H:%M:%S UTC" UTC)
string(CONCAT OT_FULL_VERSION_STRING
"openthread-esp32/"
"${CONFIG_OPENTHREAD_PACKAGE_NAME}/"
"${IDF_VERSION_FOR_OPENTHREAD_PACKAGE}-${OPENTHREAD_VERSION}\; "
"${CONFIG_IDF_TARGET}\; ${OT_BUILD_TIMESTAMP}")
"${CONFIG_OPENTHREAD_PLATFORM_INFO}\; ${OT_BUILD_TIMESTAMP}")
idf_component_register(SRC_DIRS "${src_dirs}"
EXCLUDE_SRCS "${exclude_srcs}"

View File

@ -170,6 +170,22 @@ menu "OpenThread"
Select this to enable SPI connection to host.
endchoice
menu "OpenThread version message"
depends on OPENTHREAD_ENABLED
config OPENTHREAD_PACKAGE_NAME
string "OpenThread package name"
default "openthread-esp32"
help
The OpenThread package name.
config OPENTHREAD_PLATFORM_INFO
string "platform information"
default IDF_TARGET
help
The OpenThread platform information.
endmenu
config OPENTHREAD_NCP_VENDOR_HOOK
bool "Enable vendor command for RCP"
depends on OPENTHREAD_RADIO

View File

@ -14,7 +14,7 @@
* The platform-specific string to insert into the OpenThread version string.
*
*/
#define OPENTHREAD_CONFIG_PLATFORM_INFO CONFIG_IDF_TARGET
#define OPENTHREAD_CONFIG_PLATFORM_INFO CONFIG_OPENTHREAD_PLATFORM_INFO
/**
* @def OPENTHREAD_CONFIG_PLATFORM_ASSERT_MANAGEMENT
@ -317,7 +317,7 @@
* Define to the full name of this package.
*
*/
#define PACKAGE_NAME "openthread-esp32"
#define PACKAGE_NAME CONFIG_OPENTHREAD_PACKAGE_NAME
/**
* @def PACKAGE_STRING

View File

@ -14,7 +14,7 @@
* The platform-specific string to insert into the OpenThread version string.
*
*/
#define OPENTHREAD_CONFIG_PLATFORM_INFO CONFIG_IDF_TARGET
#define OPENTHREAD_CONFIG_PLATFORM_INFO CONFIG_OPENTHREAD_PLATFORM_INFO
/**
* @def OPENTHREAD_CONFIG_PLATFORM_ASSERT_MANAGEMENT
@ -131,7 +131,7 @@
* Define to the full name of this package.
*
*/
#define PACKAGE_NAME "openthread-esp32"
#define PACKAGE_NAME CONFIG_OPENTHREAD_PACKAGE_NAME
/**
* @def PACKAGE_STRING

View File

@ -13,7 +13,7 @@
* The platform-specific string to insert into the OpenThread version string.
*
*/
#define OPENTHREAD_CONFIG_PLATFORM_INFO CONFIG_IDF_TARGET
#define OPENTHREAD_CONFIG_PLATFORM_INFO CONFIG_OPENTHREAD_PLATFORM_INFO
/**
* @def OPENTHREAD_CONFIG_PLATFORM_ASSERT_MANAGEMENT
@ -112,7 +112,7 @@
* Define to the full name of this package.
*
*/
#define PACKAGE_NAME "openthread-esp32"
#define PACKAGE_NAME CONFIG_OPENTHREAD_PACKAGE_NAME
/**
* @def PACKAGE_STRING

View File

@ -6,6 +6,23 @@
#pragma once
#include "sdkconfig.h"
/**
* @def OPENTHREAD_CONFIG_PLATFORM_INFO
*
* The platform-specific string to insert into the OpenThread version string.
*
*/
#define OPENTHREAD_CONFIG_PLATFORM_INFO CONFIG_OPENTHREAD_PLATFORM_INFO
/**
* @def PACKAGE_NAME
*
* Define to the full name of this package.
*
*/
#define PACKAGE_NAME CONFIG_OPENTHREAD_PACKAGE_NAME
/**
* @def OPENTHREAD_SPINEL_CONFIG_OPENTHREAD_MESSAGE_ENABLE
*