aboutsummaryrefslogtreecommitdiff
path: root/cmd/sysboot.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-10-14 12:47:59 -0600
committerTom Rini <trini@konsulko.com>2021-11-11 19:02:19 -0500
commit8018b9af57b5cd0cfddf48a8d12f04dba8b77a65 (patch)
tree091bd6efbffc90818cc297493fce681dcb196fec /cmd/sysboot.c
parent4ad5d51edb6525402b371cc8f8a3bee1b6a42414 (diff)
downloadu-boot-8018b9af57b5cd0cfddf48a8d12f04dba8b77a65.zip
u-boot-8018b9af57b5cd0cfddf48a8d12f04dba8b77a65.tar.gz
u-boot-8018b9af57b5cd0cfddf48a8d12f04dba8b77a65.tar.bz2
pxe: Tidy up the is_pxe global
Move this into the context to avoid a global variable. Also rename it since the current name does not explain what it actually affects. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Artem Lapkin <email2tema@gmail.com> Tested-by: Artem Lapkin <email2tema@gmail.com> Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Diffstat (limited to 'cmd/sysboot.c')
-rw-r--r--cmd/sysboot.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/cmd/sysboot.c b/cmd/sysboot.c
index 5615e81..85fa5d8 100644
--- a/cmd/sysboot.c
+++ b/cmd/sysboot.c
@@ -65,8 +65,6 @@ static int do_sysboot(struct cmd_tbl *cmdtp, int flag, int argc,
char *filename;
int prompt = 0;
- is_pxe = false;
-
if (argc > 1 && strstr(argv[1], "-p")) {
prompt = 1;
argc--;
@@ -91,7 +89,7 @@ static int do_sysboot(struct cmd_tbl *cmdtp, int flag, int argc,
env_set("bootfile", filename);
}
- pxe_setup_ctx(&ctx, cmdtp, NULL, NULL);
+ pxe_setup_ctx(&ctx, cmdtp, NULL, NULL, true);
if (strstr(argv[3], "ext2")) {
ctx.getfile = do_get_ext2;
} else if (strstr(argv[3], "fat")) {