bootstd: Include the device tree in the bootflow
authorSimon Glass <sjg@chromium.org>
Tue, 17 Jan 2023 17:47:56 +0000 (10:47 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 23 Jan 2023 23:11:40 +0000 (18:11 -0500)
commit7638c85190dccc2dfacb86fc3b70deb165337b4b
tree75c5ef7a384c65309bdfeb2d7b1904a5ce662b10
parent3e18860e3f3425bd2649e62cd2635bd008fe5f4d
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>
boot/bootflow.c
cmd/bootflow.c
include/bootflow.h
test/boot/bootflow.c