x86: zboot: Set up a sub-command structure
authorSimon Glass <sjg@chromium.org>
Sat, 5 Sep 2020 20:50:43 +0000 (14:50 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 25 Sep 2020 03:27:08 +0000 (11:27 +0800)
commit5588e776b02d65afeae612d3dde92e7add2e03cc
tree284b6a49d48ba47a7a439191ca4cd982da193f2e
parente9d31b302d8a4b9c371c73d3385a1efd222ab4c0
x86: zboot: Set up a sub-command structure

Add subcommands to zboot. At present there is only one called 'start'
which does the whole boot. It is the default command so is optional.

Change the 's' string variable to const while we are here.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Wolfgang Wallner <wolfgang.wallner@br-automation.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
[bmeng: reduce maxargs to 6 of 'zboot start' subcommand]
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/lib/zimage.c