[ncp] add NCP based implementation (empty) of platform InfraIf APIs (#10638)

This implementation will be used on all platforms for NCP nodes
(simulation, any vendor platforms). However the simulation platform
already has a different implementation. To avoid conflicts, the commit
adds a control flag in simulation config so that we can choose whether
to enable the simulation implementation.
This commit is contained in:
Li Cao
2024-09-04 07:48:59 -07:00
committed by GitHub
parent 01cb5b08cf
commit c36c0ed760
9 changed files with 109 additions and 8 deletions
+4
View File
@@ -148,6 +148,10 @@ build_simulation()
options+=("${ot_extra_options[@]}")
fi
if [[ ${OT_NODE_TYPE} == rcp* ]]; then
options+=("-DOT_SIMULATION_INFRA_IF=OFF")
fi
OT_CMAKE_BUILD_DIR="${OT_BUILDDIR}/openthread-simulation-${version}" "${OT_SRCDIR}"/script/cmake-build simulation "${options[@]}"
if [[ ${VIRTUAL_TIME} == 1 ]] && [[ ${OT_NODE_TYPE} == rcp* ]]; then