]> git.baikalelectronics.ru Git - uboot.git/commit
binman: Allow control of whether a fake DT is used
authorSimon Glass <sjg@chromium.org>
Fri, 14 Sep 2018 10:57:23 +0000 (04:57 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 28 Sep 2018 17:09:01 +0000 (11:09 -0600)
commit1d7037973568e6939ffcc7f37e6f111d8196f73d
treefad1afcd03a46ccc13c9dd5e49a52b0f52a2fb4f
parent12e33369427eba887e64baeb7852333f4533c61d
binman: Allow control of whether a fake DT is used

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@chromium.org>
tools/binman/cmdline.py
tools/binman/control.py
tools/binman/ftest.py
tools/binman/state.py