diff options
author | Simon Glass | 2022-10-20 18:23:14 -0600 |
---|---|---|
committer | Tom Rini | 2022-10-31 11:04:00 -0400 |
commit | a56f663f07073713042bb0fd08053aeb667e717b (patch) | |
tree | e2b9b511a30a5d09fb2b56bb29217fb505088ce6 /test/boot | |
parent | 4218456b3fac98966a320c3f2db36d543a32ec17 (diff) |
vbe: Add info about the VBE device to the fwupd node
At present we put the driver in the /chosen node in U-Boot. This is a bit
strange, since U-Boot doesn't normally use that node itself. It is better
to put it under the bootstd node.
To make this work we need to copy create the node under /chosen when
fixing up the device tree. Copy over all the properties so that fwupd
knows what to do.
Update the sandbox device tree accordingly.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/boot')
-rw-r--r-- | test/boot/vbe_simple.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/boot/vbe_simple.c b/test/boot/vbe_simple.c index a50785dbbf6..5e61840652c 100644 --- a/test/boot/vbe_simple.c +++ b/test/boot/vbe_simple.c @@ -16,7 +16,12 @@ #include <test/ut.h> #include "bootstd_common.h" -/* Basic test of reading nvdata and updating a fwupd node in the device tree */ +/* + * Basic test of reading nvdata and updating a fwupd node in the device tree + * + * This sets up its own VBE info in the device, using bootstd_setup_for_tests() + * then does a VBE fixup and checks that everything is present. + */ static int vbe_simple_test_base(struct unit_test_state *uts) { const char *version, *bl_version; |