mirror of
https://github.com/espressif/openthread.git
synced 2026-08-22 18:39:50 +00:00
[scripts] add 1.2 build test without additional features (#5425)
This commit is contained in:
@@ -88,6 +88,7 @@ build_all_features()
|
||||
"-DOPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE=1"
|
||||
"-DOPENTHREAD_CONFIG_MAC_CSL_RECEIVER_ENABLE=1"
|
||||
"-DOPENTHREAD_CONFIG_DUA_ENABLE=1"
|
||||
"-DOPENTHREAD_CONFIG_MLR_ENABLE=1"
|
||||
)
|
||||
|
||||
export CPPFLAGS="${options[*]} -DOPENTHREAD_CONFIG_LOG_LEVEL=OT_LOG_LEVEL_NONE"
|
||||
|
||||
@@ -38,14 +38,25 @@ reset_source()
|
||||
|
||||
build_all_features()
|
||||
{
|
||||
# Build Thread 1.1 with full features
|
||||
reset_source
|
||||
"$(dirname "$0")"/cmake-build simulation
|
||||
|
||||
# Build Thread 1.2 with full features
|
||||
reset_source
|
||||
"$(dirname "$0")"/cmake-build simulation -DOT_OTNS=ON -DOT_SIMULATION_VIRTUAL_TIME=ON
|
||||
reset_source
|
||||
"$(dirname "$0")"/cmake-build simulation -DOT_OTNS=ON -DOT_SIMULATION_VIRTUAL_TIME=ON -DOT_ASSERT=OFF
|
||||
"$(dirname "$0")"/cmake-build simulation -DOT_OTNS=ON -DOT_SIMULATION_VIRTUAL_TIME=ON -DOT_THREAD_VERSION=1.2 -DOT_DUA=ON -DOT_MLR=ON -DOT_BACKBONE_ROUTER=ON -DOT_CSL_RECEIVER=ON
|
||||
|
||||
# Build with Vendor Extension
|
||||
reset_source
|
||||
"$(dirname "$0")"/cmake-build simulation -DOT_VENDOR_EXTENSION=../../src/core/common/extension_example.cpp
|
||||
|
||||
# Build Thread 1.2 with no additional features
|
||||
reset_source
|
||||
"$(dirname "$0")"/cmake-build simulation -DOT_THREAD_VERSION=1.2
|
||||
|
||||
# Build Thread 1.2 with full features and OT_ASSERT=OFF
|
||||
reset_source
|
||||
"$(dirname "$0")"/cmake-build simulation -DOT_OTNS=ON -DOT_SIMULATION_VIRTUAL_TIME=ON -DOT_THREAD_VERSION=1.2 -DOT_DUA=ON -DOT_MLR=ON -DOT_BACKBONE_ROUTER=ON -DOT_CSL_RECEIVER=ON -DOT_ASSERT=OFF
|
||||
}
|
||||
|
||||
build_toranj()
|
||||
|
||||
@@ -336,10 +336,10 @@ void DuaManager::HandleTimeTick(void)
|
||||
{
|
||||
bool attempt = false;
|
||||
|
||||
#if OPENTHREAD_CONFIG_DUA_ENABLE
|
||||
otLogDebgDua("regdelay %d, reregdelay %d, checkdelay %d", mDelay.mFields.mRegistrationDelay,
|
||||
mDelay.mFields.mReregistrationDelay, mDelay.mFields.mCheckDelay);
|
||||
|
||||
#if OPENTHREAD_CONFIG_DUA_ENABLE
|
||||
if (mDuaState != kNotExist && TimerMilli::GetNow() > mLastRegistrationTime + Mle::kDuaDadPeriod)
|
||||
{
|
||||
mDomainUnicastAddress.mPreferred = true;
|
||||
@@ -349,6 +349,8 @@ void DuaManager::HandleTimeTick(void)
|
||||
{
|
||||
attempt = true;
|
||||
}
|
||||
#else
|
||||
otLogDebgDua("reregdelay %d, checkdelay %d", mDelay.mFields.mReregistrationDelay, mDelay.mFields.mCheckDelay);
|
||||
#endif
|
||||
|
||||
if ((mDelay.mFields.mCheckDelay > 0) && (--mDelay.mFields.mCheckDelay == 0))
|
||||
|
||||
Reference in New Issue
Block a user