bootstd: Support reading a script from network or SPI flash
authorSimon Glass <sjg@chromium.org>
Tue, 17 Jan 2023 17:48:04 +0000 (10:48 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 23 Jan 2023 23:11:41 +0000 (18:11 -0500)
commit5143a41e10da67fe9542a42e947b6a375f0a08d6
treed2154456d206f3ff036a37fb189dfba42e899029
parent0c1f4a9fb13a54780f550d6e5bc4cd37a58f879e
bootstd: Support reading a script from network or SPI flash

At present this bootmeth only supports a block device and the sandbox
host filesystem. Add support for obtaining the script from a network
device. Also implement the set_bootflow() method so that it is easy
for other bootdevs (such as enabling SPI flash to support scripts).

Signed-off-by: Simon Glass <sjg@chromium.org>
boot/bootmeth_script.c