forked from espressif/esp-idf
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:
@ -237,9 +237,9 @@ execute_process(
|
|||||||
|
|
||||||
string(TIMESTAMP OT_BUILD_TIMESTAMP " %Y-%m-%d %H:%M:%S UTC" UTC)
|
string(TIMESTAMP OT_BUILD_TIMESTAMP " %Y-%m-%d %H:%M:%S UTC" UTC)
|
||||||
string(CONCAT OT_FULL_VERSION_STRING
|
string(CONCAT OT_FULL_VERSION_STRING
|
||||||
"openthread-esp32/"
|
"${CONFIG_OPENTHREAD_PACKAGE_NAME}/"
|
||||||
"${IDF_VERSION_FOR_OPENTHREAD_PACKAGE}-${OPENTHREAD_VERSION}\; "
|
"${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}"
|
idf_component_register(SRC_DIRS "${src_dirs}"
|
||||||
EXCLUDE_SRCS "${exclude_srcs}"
|
EXCLUDE_SRCS "${exclude_srcs}"
|
||||||
|
@ -170,6 +170,22 @@ menu "OpenThread"
|
|||||||
Select this to enable SPI connection to host.
|
Select this to enable SPI connection to host.
|
||||||
endchoice
|
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
|
config OPENTHREAD_NCP_VENDOR_HOOK
|
||||||
bool "Enable vendor command for RCP"
|
bool "Enable vendor command for RCP"
|
||||||
depends on OPENTHREAD_RADIO
|
depends on OPENTHREAD_RADIO
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* The platform-specific string to insert into the OpenThread version string.
|
* 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
|
* @def OPENTHREAD_CONFIG_PLATFORM_ASSERT_MANAGEMENT
|
||||||
@ -317,7 +317,7 @@
|
|||||||
* Define to the full name of this package.
|
* Define to the full name of this package.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#define PACKAGE_NAME "openthread-esp32"
|
#define PACKAGE_NAME CONFIG_OPENTHREAD_PACKAGE_NAME
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @def PACKAGE_STRING
|
* @def PACKAGE_STRING
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* The platform-specific string to insert into the OpenThread version string.
|
* 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
|
* @def OPENTHREAD_CONFIG_PLATFORM_ASSERT_MANAGEMENT
|
||||||
@ -131,7 +131,7 @@
|
|||||||
* Define to the full name of this package.
|
* Define to the full name of this package.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#define PACKAGE_NAME "openthread-esp32"
|
#define PACKAGE_NAME CONFIG_OPENTHREAD_PACKAGE_NAME
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @def PACKAGE_STRING
|
* @def PACKAGE_STRING
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
* The platform-specific string to insert into the OpenThread version string.
|
* 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
|
* @def OPENTHREAD_CONFIG_PLATFORM_ASSERT_MANAGEMENT
|
||||||
@ -112,7 +112,7 @@
|
|||||||
* Define to the full name of this package.
|
* Define to the full name of this package.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#define PACKAGE_NAME "openthread-esp32"
|
#define PACKAGE_NAME CONFIG_OPENTHREAD_PACKAGE_NAME
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @def PACKAGE_STRING
|
* @def PACKAGE_STRING
|
||||||
|
@ -6,6 +6,23 @@
|
|||||||
|
|
||||||
#pragma once
|
#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
|
* @def OPENTHREAD_SPINEL_CONFIG_OPENTHREAD_MESSAGE_ENABLE
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user