dfu: add 'SCRIPT' entity
authorMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 22 Dec 2020 10:32:22 +0000 (11:32 +0100)
committerMarek Vasut <marex@denx.de>
Sun, 31 Jan 2021 13:08:56 +0000 (14:08 +0100)
commitc533f94c102127b94abda206dbe41fe026bcde76
tree6e428d7a3dba6ba5e9da1e532952b5e76f6c35dc
parentb5f3405b9d8666bd0ab627c298cea1c927da081a
dfu: add 'SCRIPT' entity

Define a new 'SCRIPT' type for DFU entities. The downloaded data are
treated as simple u-boot's scripts and executed with run_command_list()
function.

Flashing the 'SCRIPT' entity might result in changing the 'dfu_alt_info'
environment variable from the flashed script, so add a global variable
for tracking the potential need to reinitialize the dfu_alt_info related
structures.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
doc/README.dfu
drivers/dfu/dfu.c
drivers/dfu/dfu_mmc.c
include/dfu.h