commit | df30d41cda0c0ea71091c9462cff29e9a763f88a | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Sat Sep 05 14:50:40 2020 -0600 |
committer | Bin Meng <bmeng.cn@gmail.com> | Fri Sep 25 11:27:07 2020 +0800 |
tree | 184141afa9bbbd2675522c639f744821a120b10b | |
parent | 3a177173a9e9fe948eba5e579ed3d28935252b1a [diff] |
x86: zboot: Move kernel-version code into a function To help reduce the size and complexity of load_zimage(), move the code that reads the kernel version into a separate function. Update get_boot_protocol() to allow printing the 'Magic signature' message only once, under control of its callers. 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>