From 21cf3a6344f4526a2b82356abf55e59ac900214e Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Wed, 28 Jun 2017 09:01:44 -0500 Subject: [PATCH] samples: Fix filtering on UART_CONSOLE There were a few different issues with the UART_CONSOLE filtering: * Filter was incorrect - UART_CONSOLE should be CONFIG_UART_CONSOLE * platform_exclude was used for drivers that had a #error for lack of interrupt support. We can now use CONFIG_SERIAL_SUPPORT_INTERRUPT in the filter for that. This catches all the various drivers that needed don't support uart interrupts, not just the onces that had a #error Signed-off-by: Kumar Gala --- samples/subsys/console/echo/sample.yaml | 3 +-- samples/subsys/console/getchar/sample.yaml | 3 +-- samples/subsys/console/getline/sample.yaml | 3 +-- samples/subsys/shell/shell/sample.yaml | 2 +- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/samples/subsys/console/echo/sample.yaml b/samples/subsys/console/echo/sample.yaml index 831a5aedd5a..b8d51e3a8de 100644 --- a/samples/subsys/console/echo/sample.yaml +++ b/samples/subsys/console/echo/sample.yaml @@ -4,6 +4,5 @@ sample: tests: - test: build_only: true - filter: CONFIG_UART_CONSOLE - platform_exclude: qemu_riscv32 qemu_nios2 + filter: CONFIG_UART_CONSOLE and CONFIG_SERIAL_SUPPORT_INTERRUPT tags: samples diff --git a/samples/subsys/console/getchar/sample.yaml b/samples/subsys/console/getchar/sample.yaml index 35596fc432f..b8d51e3a8de 100644 --- a/samples/subsys/console/getchar/sample.yaml +++ b/samples/subsys/console/getchar/sample.yaml @@ -4,6 +4,5 @@ sample: tests: - test: build_only: true - filter: UART_CONSOLE - platform_exclude: qemu_riscv32 qemu_nios2 + filter: CONFIG_UART_CONSOLE and CONFIG_SERIAL_SUPPORT_INTERRUPT tags: samples diff --git a/samples/subsys/console/getline/sample.yaml b/samples/subsys/console/getline/sample.yaml index 35596fc432f..b8d51e3a8de 100644 --- a/samples/subsys/console/getline/sample.yaml +++ b/samples/subsys/console/getline/sample.yaml @@ -4,6 +4,5 @@ sample: tests: - test: build_only: true - filter: UART_CONSOLE - platform_exclude: qemu_riscv32 qemu_nios2 + filter: CONFIG_UART_CONSOLE and CONFIG_SERIAL_SUPPORT_INTERRUPT tags: samples diff --git a/samples/subsys/shell/shell/sample.yaml b/samples/subsys/shell/shell/sample.yaml index 258b86b7b3c..b8d51e3a8de 100644 --- a/samples/subsys/shell/shell/sample.yaml +++ b/samples/subsys/shell/shell/sample.yaml @@ -4,5 +4,5 @@ sample: tests: - test: build_only: true - filter: UART_CONSOLE + filter: CONFIG_UART_CONSOLE and CONFIG_SERIAL_SUPPORT_INTERRUPT tags: samples