diff mbox series

[2/3] test/hush: Add CONFIG_CONSOLE_RECORD where required

Message ID 20241028164844.2308549-2-trini@konsulko.com
State Accepted
Commit 2d42f7d9018a9c7bf7e65780d6505280a46c0cda
Delegated to: Tom Rini
Headers show
Series [1/3] test/cmd: Make some "ut dm" tests only available on sandbox | expand

Commit Message

Tom Rini Oct. 28, 2024, 4:48 p.m. UTC
The "dollar" tests require CONFIG_CONSOLE_RECORD to be enabled so guard
with that.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
 test/hush/Makefile | 2 ++
 1 file changed, 2 insertions(+)

Comments

Heinrich Schuchardt Oct. 28, 2024, 9:08 p.m. UTC | #1
On 10/28/24 17:48, Tom Rini wrote:
> The "dollar" tests require CONFIG_CONSOLE_RECORD to be enabled so guard
> with that.
> 
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
>   test/hush/Makefile | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/test/hush/Makefile b/test/hush/Makefile
> index a2d98815e501..4c3a0be857ae 100644
> --- a/test/hush/Makefile
> +++ b/test/hush/Makefile
> @@ -5,6 +5,8 @@
>   
>   obj-y += cmd_ut_hush.o
>   obj-y += if.o
> +ifdef CONFIG_CONSOLE_RECORD
>   obj-y += dollar.o

Or to keep it simpler:

obj-$(CONFIG_CONSOLE_RECORD) += dollar.o

Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>

> +endif
>   obj-y += list.o
>   obj-y += loop.o
diff mbox series

Patch

diff --git a/test/hush/Makefile b/test/hush/Makefile
index a2d98815e501..4c3a0be857ae 100644
--- a/test/hush/Makefile
+++ b/test/hush/Makefile
@@ -5,6 +5,8 @@ 
 
 obj-y += cmd_ut_hush.o
 obj-y += if.o
+ifdef CONFIG_CONSOLE_RECORD
 obj-y += dollar.o
+endif
 obj-y += list.o
 obj-y += loop.o