mirror of
https://xff.cz/git/u-boot/
synced 2025-09-04 02:02:08 +02:00
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>
This commit is contained in:
@@ -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);
|
print_num("-> size", bd->bi_dram[i].size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(CONFIG_CMD_NET)
|
||||||
puts ("ethaddr =");
|
puts ("ethaddr =");
|
||||||
for (i=0; i<6; ++i) {
|
for (i=0; i<6; ++i) {
|
||||||
printf ("%c%02X", i ? ':' : ' ', bd->bi_enetaddr[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"
|
puts ( "\n"
|
||||||
"ip_addr = ");
|
"ip_addr = ");
|
||||||
print_IPaddr (bd->bi_ip_addr);
|
print_IPaddr (bd->bi_ip_addr);
|
||||||
|
#endif
|
||||||
printf ("\n"
|
printf ("\n"
|
||||||
"baudrate = %d bps\n", bd->bi_baudrate);
|
"baudrate = %d bps\n", bd->bi_baudrate);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user