sandbox: Avoid binman error when run without device tree
authorSimon Glass <sjg@chromium.org>
Wed, 27 Apr 2022 19:47:57 +0000 (13:47 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 5 May 2022 13:29:57 +0000 (09:29 -0400)
commitccf24a9d7739241c08e17b45d7fbe74b9baa3dcc
treeb338cb1732254e3f240ce68b6f4679609f4f671e
parentee93f6129d0851b8667efaa5dc91ee201cce24b8
sandbox: Avoid binman error when run without device tree

With sandbox, U-Boot can be run without a device tree (i.e. no -d or -T
parameter). In this case an empty device tree is created for convenience.
With a recent change this causes an error due to the missing '/binman'
node.

Add this node to avoid the problem, as well as a test that U-Boot can
be run without a device tree.

Fixes: 059df5624b ("arch: Kconfig: imply BINMAN for SANDBOX")
Fixes: https://source.denx.de/u-boot/u-boot/-/issues/11
Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/cpu.c
test/py/tests/test_help.py