summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorHebbar <gururajakr@sanyo.co.in>2007-12-18 16:03:07 -0800
committerWolfgang Denk <wd@denx.de>2008-02-04 23:17:01 +0100
commita41dbbd98d201d8aea31b5d21df4742c20cd7eda (patch)
tree2702a7f947f258229d0244d84866f5a66bf1ff4c /common
parentf7ad79b6f9f0f45437b62e19b45356cc2aaf4884 (diff)
downloadu-boot-imx-a41dbbd98d201d8aea31b5d21df4742c20cd7eda.zip
u-boot-imx-a41dbbd98d201d8aea31b5d21df4742c20cd7eda.tar.gz
u-boot-imx-a41dbbd98d201d8aea31b5d21df4742c20cd7eda.tar.bz2
ARM: Display Ethernet info in do_bdinfo only if CONFIG_CMD_NET is defined
Add ifdef to bdinfo command to display ethernet information only if CONFIG_CMD_NET is defined for arm modules. Signed-off-by: K R Gururaja Hebbar <gururajakr@sanyo.co.in>
Diffstat (limited to 'common')
-rw-r--r--common/cmd_bdinfo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/cmd_bdinfo.c b/common/cmd_bdinfo.c
index c28a155..4e77461 100644
--- a/common/cmd_bdinfo.c
+++ b/common/cmd_bdinfo.c
@@ -316,6 +316,7 @@ int do_bdinfo ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
print_num("-> size", bd->bi_dram[i].size);
}
+#if defined(CONFIG_CMD_NET)
puts ("ethaddr =");
for (i=0; i<6; ++i) {
printf ("%c%02X", i ? ':' : ' ', bd->bi_enetaddr[i]);
@@ -323,6 +324,7 @@ int do_bdinfo ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
puts ( "\n"
"ip_addr = ");
print_IPaddr (bd->bi_ip_addr);
+#endif
printf ("\n"
"baudrate = %d bps\n", bd->bi_baudrate);