[U-Boot] [PATCH 18/31] binman: Allow control of whether a fake DT is used

Simon Glass sjg at chromium.org
Tue Oct 2 11:20:00 UTC 2018


On 14 September 2018 at 03:57, Simon Glass <sjg at chromium.org> wrote:
> We use a fake device tree in tests most of the time since tests don't
> normally care about the actual data. For example, for U-Boot proper we use
> U_BOOT_DTB_DATA which is just a four-character string. This makes testing
> the image output against an expected value very easy.
>
> However in some cases, such as when the test wants to check that the DT
> output containing particular nodes, we do actually need the real DT. Add
> support for this, along with a command-line option to select 'test mode'.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
>  tools/binman/cmdline.py | 2 ++
>  tools/binman/control.py | 1 +
>  tools/binman/ftest.py   | 4 +++-
>  tools/binman/state.py   | 2 +-
>  4 files changed, 7 insertions(+), 2 deletions(-)

Applied to u-boot-dm, and now in mainline.


More information about the U-Boot mailing list