From: Hebbar Date: Wed, 19 Dec 2007 00:03:07 +0000 (-0800) Subject: ARM: Display Ethernet info in do_bdinfo only if CONFIG_CMD_NET is defined X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=a41dbbd98d201d8aea31b5d21df4742c20cd7eda;p=u-boot.git 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 --- diff --git a/common/cmd_bdinfo.c b/common/cmd_bdinfo.c index c28a155453..4e7746120b 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);