diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2018-01-26 09:58:56 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-02-09 10:26:38 +0100 |
commit | ed1dded0898faa1f917309172f2065014756c59f (patch) | |
tree | a6d6faf2dae2e4464de07c2db55c52c228b696d2 /common/efi/efi.c | |
parent | e5098495d4be465d6a93b4bbd9a59257c48ce068 (diff) | |
download | barebox-ed1dded0898faa1f917309172f2065014756c59f.tar.gz barebox-ed1dded0898faa1f917309172f2065014756c59f.tar.xz |
usb: gadget: fastboot: Add external command execution support
Custom projects may need vendor specific expansions to the fastboot
command execution. Allow these to be implemented without messing in
the fastboot code directly.
We have a hook for all commands and also one for the "flash" command.
Each hook can decide if the generic command parser is executed
afterwards (return value FASTBOOT_CMD_FALLTHROUGH) or if the generic
parser shall be skipped (return value 0 or negative error code).
This allows board code to implement vendor specific "oem" commands
or to handle the downloaded image in a special way (i.e. do signature
checks on them)
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/efi/efi.c')
0 files changed, 0 insertions, 0 deletions