aboutsummaryrefslogtreecommitdiff
path: root/cmd/net.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2018-04-15 08:42:37 -0400
committerTom Rini <trini@konsulko.com>2018-04-15 08:42:37 -0400
commitdf13a44377b36f438d15de06b07ad4645b89cf4f (patch)
treec25c837a617fa82826f15237b8f8ff6b81723af0 /cmd/net.c
parent6d0409f256127000a9b32f94d1b52a6ee83382bf (diff)
parent16879cd25a4089cde2f3393fb09567df53402679 (diff)
Merge git://git.denx.de/u-boot-net
Diffstat (limited to 'cmd/net.c')
-rw-r--r--cmd/net.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/net.c b/cmd/net.c
index d7c776aacf..67888d4e18 100644
--- a/cmd/net.c
+++ b/cmd/net.c
@@ -14,6 +14,7 @@
static int netboot_common(enum proto_t, cmd_tbl_t *, int, char * const []);
+#ifdef CONFIG_CMD_BOOTP
static int do_bootp(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
{
return netboot_common(BOOTP, cmdtp, argc, argv);
@@ -24,7 +25,9 @@ U_BOOT_CMD(
"boot image via network using BOOTP/TFTP protocol",
"[loadAddress] [[hostIPaddr:]bootfilename]"
);
+#endif
+#ifdef CONFIG_CMD_TFTPBOOT
int do_tftpb(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
{
int ret;
@@ -40,6 +43,7 @@ U_BOOT_CMD(
"boot image via network using TFTP protocol",
"[loadAddress] [[hostIPaddr:]bootfilename]"
);
+#endif
#ifdef CONFIG_CMD_TFTPPUT
static int do_tftpput(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])