utest: serial_v2: add depends on RT_USING_SERIAL_V2

Add dependent of RT_USING_SERIAL_V2 in Kconfig to
make sure utest for serial_v2 is only available
when RT_USING_SERIAL_V2 is enabled.

Otherwise menuconfig allow people enable UTEST_SERIAL_TC
but building of utestcases failed. It looks weird and
better to be fixed.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
This commit is contained in:
Chen Wang
2025-10-10 15:56:46 +08:00
committed by R b b666
parent cc8b0d9f39
commit ba795c6d65

View File

@@ -3,6 +3,7 @@ menu "Utest Serial Testcase"
config UTEST_SERIAL_TC config UTEST_SERIAL_TC
bool "Serial testcase" bool "Serial testcase"
default n default n
depends on RT_USING_SERIAL_V2
if UTEST_SERIAL_TC if UTEST_SERIAL_TC