]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cmd: pxe_utils: sysboot: Add zboot support to boot x86 Linux kernel image
authorKory Maincent <kory.maincent@bootlin.com>
Tue, 2 Feb 2021 15:42:29 +0000 (16:42 +0100)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 3 Feb 2021 15:16:44 +0000 (23:16 +0800)
Add "zboot" command to the list of supported boot in the
label_boot function.

Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
[bmeng: add component tags in the summary]
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
cmd/pxe_utils.c
include/command.h

index 81150b162ba1458cdcdcdea93666851283d06f02..71c5af4c25d8cb1e9306ffe3398a6017cfbf7529 100644 (file)
@@ -655,6 +655,9 @@ static int label_boot(struct cmd_tbl *cmdtp, struct pxe_label *label)
        /* Try booting a Image */
        else if (IS_ENABLED(CONFIG_CMD_BOOTZ))
                do_bootz(cmdtp, 0, bootm_argc, bootm_argv);
+       /* Try booting an x86_64 Linux kernel image */
+       else if (IS_ENABLED(CONFIG_CMD_ZBOOT))
+               do_zboot_parent(cmdtp, 0, bootm_argc, bootm_argv, NULL);
 
        unmap_sysmem(buf);
 
index 27604758a43406a405432b4ad6985bc46f77b2b3..747f8f80958e74cf3ab971c3c48770ffb92becc0 100644 (file)
@@ -165,6 +165,9 @@ int do_bootz(struct cmd_tbl *cmdtp, int flag, int argc,
 int do_booti(struct cmd_tbl *cmdtp, int flag, int argc,
             char *const argv[]);
 
+int do_zboot_parent(struct cmd_tbl *cmdtp, int flag, int argc,
+                   char *const argv[], int *repeatable);
+
 int common_diskboot(struct cmd_tbl *cmdtp, const char *intf, int argc,
                    char *const argv[]);