zephyr/drivers/serial/Kconfig.test
Bjarki Arge Andreasen d118d19293 drivers: serial: serial_test: Move ring buf dep to Kconfig
This commit moves the dependency management between the
RING_BUFFER and UART_ASYNC_API or UART_INTERRUPT_DRIVEN
options to the Kconfig Kconfig.test.

If either UART API options listed are selected, the
RING_BUFFER option must be selected. This is now handled
automatically by Kconfig instead of causing a build
assert.

The asserts where added with this PR #59880, and are
removed in this commit.

Signed-off-by: Bjarki Arge Andreasen <baa@trackunit.com>
2023-09-28 16:38:30 -04:00

12 lines
394 B
Plaintext

# Copyright (c) 2021, Thomas Stranger
# SPDX-License-Identifier: Apache-2.0
# Hidden option to enable the vnd,serial dummy driver used in testing.
config SERIAL_TEST
def_bool DT_HAS_VND_SERIAL_ENABLED
depends on DT_HAS_VND_SERIAL_ENABLED
select SERIAL_HAS_DRIVER
select SERIAL_SUPPORT_INTERRUPT
select SERIAL_SUPPORT_ASYNC
select RING_BUFFER if (UART_INTERRUPT_DRIVEN || UART_ASYNC_API)