diff options
author | Simon Glass <sjg@chromium.org> | 2023-01-17 10:47:56 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-01-23 18:11:40 -0500 |
commit | 7638c85190dccc2dfacb86fc3b70deb165337b4b (patch) | |
tree | 75c5ef7a384c65309bdfeb2d7b1904a5ce662b10 /boot | |
parent | 3e18860e3f3425bd2649e62cd2635bd008fe5f4d (diff) | |
download | u-boot-7638c85190dccc2dfacb86fc3b70deb165337b4b.tar.gz |
bootstd: Include the device tree in the bootflow
Some bootmeths provide a way to load a device tree as well as the base
OS image. Add a way to store this in the bootflow. Update the
'bootflow info' command to show this information.
Note that the device tree is not allocated, but instead is stored at
an address provided by an environment variable. This may need to be
adjusted at some point, but for now it works well and fits in with the
existing distro-boot scripts.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'boot')
-rw-r--r-- | boot/bootflow.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/boot/bootflow.c b/boot/bootflow.c index 0345755f58..52cc2f9d54 100644 --- a/boot/bootflow.c +++ b/boot/bootflow.c @@ -355,6 +355,7 @@ void bootflow_free(struct bootflow *bflow) free(bflow->fname); free(bflow->buf); free(bflow->os_name); + free(bflow->fdt_fname); } void bootflow_remove(struct bootflow *bflow) |