boot: zephyr: serial_adapter: Fail if USB CDC enabled with console
This prevents MCUboot from successfully building if console and serial recovery (USB CDC) are both enabled and they both point to the same device Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This commit is contained in:
parent
4a1effbc30
commit
822b6cb710
|
@ -25,12 +25,13 @@
|
|||
#if defined(CONFIG_BOOT_SERIAL_UART) && defined(CONFIG_UART_CONSOLE) && \
|
||||
(!DT_HAS_CHOSEN(zephyr_uart_mcumgr) || \
|
||||
DT_SAME_NODE(DT_CHOSEN(zephyr_uart_mcumgr), DT_CHOSEN(zephyr_console)))
|
||||
#error Zephyr UART console must been disabled if serial_adapter module is used.
|
||||
#error Zephyr UART console must be disabled if serial_adapter module is used.
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_BOOT_SERIAL_CDC_ACM) && \
|
||||
defined(CONFIG_UART_CONSOLE) && !DT_HAS_CHOSEN(zephyr_uart_mcumgr)
|
||||
#error Zephyr UART console must been disabled if CDC ACM is enabled and MCUmgr \
|
||||
defined(CONFIG_UART_CONSOLE) && (!DT_HAS_CHOSEN(zephyr_uart_mcumgr) || \
|
||||
DT_SAME_NODE(DT_CHOSEN(zephyr_uart_mcumgr), DT_CHOSEN(zephyr_console)))
|
||||
#error Zephyr UART console must be disabled if CDC ACM is enabled and MCUmgr \
|
||||
has not been redirected to other UART with DTS chosen zephyr,uart-mcumgr.
|
||||
#endif
|
||||
|
||||
|
@ -199,7 +200,6 @@ boot_uart_fifo_getline(char **line)
|
|||
static int
|
||||
boot_uart_fifo_init(void)
|
||||
{
|
||||
|
||||
#if defined(CONFIG_BOOT_SERIAL_UART)
|
||||
|
||||
#if DT_HAS_CHOSEN(zephyr_uart_mcumgr)
|
||||
|
|
Loading…
Reference in New Issue