]> git.dujemihanovic.xyz Git - u-boot.git/commit
sandbox: Add a -T flag to use the test device tree
authorSimon Glass <sjg@chromium.org>
Wed, 25 Sep 2019 14:56:07 +0000 (08:56 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 8 Oct 2019 05:57:41 +0000 (13:57 +0800)
commit189882c9337bd4fa0a6b2c5de3031cd6f4b8e262
treee66d566ec146c814cd00492eba44af00f18e37a6
parent37a1cf9c9c4c670e074feb8fb2fc6b4a40a80b1b
sandbox: Add a -T flag to use the test device tree

U-Boot already supports using -D to indicate that it should use the normal
device tree. It is sometimes useful to run with the test device tree, e.g.
when running a test. Add a -T option for this along with some
documentation.

It can be used like this:

   /tmp/b/sandbox/u-boot -T -c "ut dm pci_busdev"

(this will use /tmp/b/sandbox/arch/sandbox/dts/test.dtb as the DT)

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
arch/sandbox/cpu/start.c
doc/arch/sandbox.rst