[PATCH 02/16] x86: zimage: Use a state struct to hold the state

Wolfgang Wallner wolfgang.wallner at br-automation.com
Thu Aug 13 13:22:12 CEST 2020


Hi Simon,

-----"Simon Glass" <sjg at chromium.org> schrieb: -----
> Betreff: [PATCH 02/16] x86: zimage: Use a state struct to hold the state
> 
> At present the 'zboot' command does everything in one go. It would be
> better if it supported sub-commands like bootm, so it is possible to
> examine what will be booted before actually booting it.
> 
> In preparation for this, move the 'state' of the command into a struct.
> This will allow it to be shared among multiple functions in this file.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
> 
>  arch/x86/lib/zimage.c | 44 ++++++++++++++++++++++++++++---------------
>  1 file changed, 29 insertions(+), 15 deletions(-)

Reviewed-by: Wolfgang Wallner <wolfgang.wallner at br-automation.com>


More information about the U-Boot mailing list