[toranj] enable OTNS in posix build instead of simulation (#13622)

This commit updates Toranj configurations to enable OTNS on the POSIX
platform build instead of the simulation platform build.

The simulation platform config is used when running Toranj tests
(CLI/NCP) and unit tests. Disabling OTNS there prevents verbose OTNS
status logs from polluting test outputs. Enabling it in the POSIX
config ensures OTNS compilation continues to be validated in CI
(under `toranj-build-posix`).
This commit is contained in:
Abtin Keshavarzian
2026-09-18 11:43:35 -07:00
committed by GitHub
parent c9d105449a
commit bb3b44994a
2 changed files with 3 additions and 1 deletions
@@ -101,4 +101,6 @@
#define OPENTHREAD_CONFIG_SRP_CLIENT_COUNTERS_ENABLE 0
#define OPENTHREAD_CONFIG_OTNS_ENABLE 1
#endif // OT_TORANJ_OPENTHREAD_CORE_TORANJ_CONFIG_POSIX_H_
@@ -124,6 +124,6 @@
#define OPENTHREAD_CONFIG_TREL_USE_HEAP_ENABLE 0
#define OPENTHREAD_CONFIG_OTNS_ENABLE 1
#define OPENTHREAD_CONFIG_OTNS_ENABLE 0
#endif // OT_TORANJ_OPENTHREAD_CORE_TORANJ_CONFIG_SIMULATION_H_