diff mbox series

[1/1] test: test/bloblist.c depends on asm/state.h

Message ID 20201031073806.30736-1-xypron.glpk@gmx.de
State Accepted
Commit c961b1b594df3a9099afb425d46e820e07dfc315
Delegated to: Simon Glass
Headers show
Series [1/1] test: test/bloblist.c depends on asm/state.h | expand

Commit Message

Heinrich Schuchardt Oct. 31, 2020, 7:38 a.m. UTC
Building test/bloblist.c fails for non sandbox devices:

test/bloblist.c:10:10: fatal error: asm/state.h: No such file or directory
 #include <asm/state.h>
          ^~~~~~~~~~~~~

Build the test only on the sandbox.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
 test/Makefile | 2 ++
 1 file changed, 2 insertions(+)

--
2.20.1

Comments

Simon Glass Nov. 3, 2020, 3:12 p.m. UTC | #1
On Sat, 31 Oct 2020 at 01:38, Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
>
> Building test/bloblist.c fails for non sandbox devices:
>
> test/bloblist.c:10:10: fatal error: asm/state.h: No such file or directory
>  #include <asm/state.h>
>           ^~~~~~~~~~~~~
>
> Build the test only on the sandbox.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> ---
>  test/Makefile | 2 ++
>  1 file changed, 2 insertions(+)
>

Reviewed-by: Simon Glass <sjg@chromium.org>
Simon Glass Nov. 3, 2020, 11:02 p.m. UTC | #2
On Sat, 31 Oct 2020 at 01:38, Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
>
> Building test/bloblist.c fails for non sandbox devices:
>
> test/bloblist.c:10:10: fatal error: asm/state.h: No such file or directory
>  #include <asm/state.h>
>           ^~~~~~~~~~~~~
>
> Build the test only on the sandbox.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> ---
>  test/Makefile | 2 ++
>  1 file changed, 2 insertions(+)
>

Reviewed-by: Simon Glass <sjg@chromium.org>

Applied to u-boot-dm, thanks!
diff mbox series

Patch

diff --git a/test/Makefile b/test/Makefile
index 1c930b3148..39ae04a3d2 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -2,7 +2,9 @@ 
 #
 # (C) Copyright 2012 The Chromium Authors

+ifneq ($(CONFIG_SANDBOX),)
 obj-$(CONFIG_$(SPL_)CMDLINE) += bloblist.o
+endif
 obj-$(CONFIG_$(SPL_)CMDLINE) += cmd/
 obj-$(CONFIG_$(SPL_)CMDLINE) += cmd_ut.o
 obj-$(CONFIG_$(SPL_)CMDLINE) += command_ut.o