Jerome Forissier | 98ad145 | 2024-10-16 12:04:03 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* Copyright (C) 2024 Linaro Ltd. */ |
| 3 | |
| 4 | #include <command.h> |
| 5 | #include <net.h> |
| 6 | |
| 7 | #if defined(CONFIG_CMD_DHCP) |
| 8 | U_BOOT_CMD( |
| 9 | dhcp, 3, 1, do_dhcp, |
| 10 | "boot image via network using DHCP/TFTP protocol", |
| 11 | "[loadAddress] [[hostIPaddr:]bootfilename]" |
| 12 | ); |
| 13 | #endif |
Jerome Forissier | 4d4d783 | 2024-10-16 12:04:05 +0200 | [diff] [blame^] | 14 | |
| 15 | #if defined(CONFIG_CMD_TFTPBOOT) |
| 16 | U_BOOT_CMD( |
| 17 | tftpboot, 3, 0, do_tftpb, |
| 18 | "boot image via network using TFTP protocol\n", |
| 19 | "[loadAddress] [[hostIPaddr:]bootfilename]" |
| 20 | ); |
| 21 | #endif |