blob: 3f5b9952c93d0d57bf8e5ebd9e15ba25a2af3aa0 [file] [log] [blame]
Jerome Forissier53a7e982025-06-25 15:19:12 +02001// SPDX-License-Identifier: GPL-2.0+
2/* Copyright (C) 2024-2025 Linaro Ltd. */
3
4#include <command.h>
5#include <net.h>
6
7U_BOOT_CMD(wget, 4, 1, do_wget,
8 "boot image via network using HTTP/HTTPS protocol"
9#if defined(CONFIG_WGET_CACERT)
10 "\nwget cacert - configure wget root certificates"
11#endif
12 ,
13 "[loadAddress] url\n"
14 "wget [loadAddress] [host:]path\n"
15 " - load file"
16#if defined(CONFIG_WGET_CACERT)
17 "\nwget cacert <address> <length>\n"
18 " - provide CA certificates (0 0 to remove current)"
19 "\nwget cacert none|optional|required\n"
20 " - set server certificate verification mode (default: optional)"
21#if defined(CONFIG_WGET_BUILTIN_CACERT)
22 "\nwget cacert builtin\n"
23 " - use the builtin CA certificates"
24#endif
25#endif
26);