[PATCH v2 14/14] vbe: Add a test for VBE device tree fixups

Simon Glass sjg at chromium.org
Mon Oct 17 23:30:05 CEST 2022


When a FIT includes some OS requests, U-Boot should process these and add
the requested info to corresponding subnodes of the /chosen node. Add a
pytest for this, which sets up the FIT, runs bootm and then uses a C
unit test to check that everything looks OK.

The test needs to run on sandbox_flattree since we don't support
device tree fixups on sandbox (live tree) yet. So enable BOOTMETH_VBE and
disable bootflow_system(), since EFI is not supported on
sandbox_flattree.

Add a link to the initial documentation.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

(no changes since v1)

 configs/sandbox_flattree_defconfig |   2 +-
 doc/develop/vbe.rst                |   3 +-
 test/boot/Makefile                 |   1 +
 test/boot/bootflow.c               |   2 +
 test/boot/vbe_fixup.c              |  59 ++++++++++++++
 test/py/tests/fit_util.py          |   5 +-
 test/py/tests/test_vbe.py          | 123 +++++++++++++++++++++++++++++
 7 files changed, 192 insertions(+), 3 deletions(-)
 create mode 100644 test/boot/vbe_fixup.c
 create mode 100644 test/py/tests/test_vbe.py

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list