diff mbox

[U-Boot] u-boot compilation broken for OMAP4 if no USB_HOST_ETHER

Message ID 542C52F2.9000702@gentil.com
State Deferred
Delegated to: Tom Rini
Headers show

Commit Message

Gregoire Gentil Oct. 1, 2014, 7:16 p.m. UTC
Hello,

If you try to compile u-boot head for OMAP4 without 
CONFIG_USB_HOST_ETHER, it's failing.



Grégoire
diff mbox

Patch

--- a/arch/arm/cpu/armv7/omap-common/utils.c
+++ b/arch/arm/cpu/armv7/omap-common/utils.c
@@ -57,6 +57,8 @@  void __weak usb_fake_mac_from_die_id(u32 *id)
                 device_mac[4] = id[0] & 0xff;
                 device_mac[5] = (id[0] >> 8) & 0xff;

+#ifdef CONFIG_USB_HOST_ETHER
                 eth_setenv_enetaddr("usbethaddr", device_mac);
+#endif
         }
  }