aboutsummaryrefslogtreecommitdiff
path: root/common/cmd_net.c
diff options
context:
space:
mode:
authorPeter Tyser <ptyser@xes-inc.com>2010-09-30 11:25:48 -0500
committerBen Warren <biggerbadderben@gmail.com>2010-10-11 23:00:29 -0700
commitbf6cb247a5df202fbed4fd43df477d863b68fbe1 (patch)
tree364503e9fb4b160fbf0f985aee02a486d2d2aed5 /common/cmd_net.c
parent3f91ec0fa1ceab413fa2e74b4ffd37ab505cc66c (diff)
downloadu-boot-linaro-natty-bf6cb247a5df202fbed4fd43df477d863b68fbe1.tar.gz
rarp: Condtionally compile rarp support
Most people don't use the 'rarpboot' command, so only enable it when CONFIG_CMD_RARP is defined. Signed-off-by: Peter Tyser <ptyser@xes-inc.com> Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'common/cmd_net.c')
-rw-r--r--common/cmd_net.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/cmd_net.c b/common/cmd_net.c
index 3ffb9df1d..44d17db19 100644
--- a/common/cmd_net.c
+++ b/common/cmd_net.c
@@ -54,6 +54,7 @@ U_BOOT_CMD(
"[loadAddress] [[hostIPaddr:]bootfilename]"
);
+#ifdef CONFIG_CMD_RARP
int do_rarpb (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
{
return netboot_common (RARP, cmdtp, argc, argv);
@@ -64,6 +65,7 @@ U_BOOT_CMD(
"boot image via network using RARP/TFTP protocol",
"[loadAddress] [[hostIPaddr:]bootfilename]"
);
+#endif
#if defined(CONFIG_CMD_DHCP)
int do_dhcp (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])