x86: zboot: Allow setting a separate setup base address
authorSimon Glass <sjg@chromium.org>
Sat, 5 Sep 2020 20:50:49 +0000 (14:50 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 25 Sep 2020 03:27:10 +0000 (11:27 +0800)
commitf82cd7b725fc25a20a5ed32038650f15120336a9
tree599e2b2eadd607d9d6944df3924aefeb4d42dd09
parent126f47c3b81b4c429f8ddccaf3e2c70b665598f9
x86: zboot: Allow setting a separate setup base address

At present the setup block is always obtained from the image
automatically. In some cases it can be useful to use a setup block
obtained elsewhere, e.g. if the image has already been unpacked. Add an
argument to support this and update the logic to use it if provided.

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: adjust maxargs to 7 for 'zboot start']
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/lib/zimage.c