Fix compile error related to r8a66597-hcd & usb
PATCH 1/1 Fix compile error related to r8a66597-hcd & usb
When building the 8544DS board we get this error:
In file included from r8a66597-hcd.c:22:u-boot/include/usb.h:190:2: error: #error USB Lowlevel not defined make[1]: *** [r8a66597-hcd.o] Error 1
The cleanest fix is to only build r8a66597-hcd.c if CONFIG_USB_R8A66597_HCD is set.
Signed-off-by Kumar Gala <[email protected]>
--- drivers/usb/Makefile | 3 ++- drivers/usb/r8a66597-hcd.c | 5 ----- 2 files changed, 2 insertions(+), 6 deletions(-)
drivers/usb/Makefile +2 -1
@@ -25,10 +25,11 @@ include $(TOPDIR)/config.mk LIB := $(obj)libusb.a +COBJS-$(CONFIG_USB_R8A66597_HCD) += r8a66597-hcd.o + COBJS-y += isp116x-hcd.o COBJS-y += sl811_usb.o COBJS-y += usb_ohci.o -COBJS-y += r8a66597-hcd.o COBJS-y += usbdcore.o COBJS-y += usbdcore_ep0.o COBJS-y += usbdcore_mpc8xx.o
drivers/usb/r8a66597-hcd.c +0 -5
@@ -24,8 +24,6 @@#include "r8a66597.h" -#if defined(CONFIG_USB_R8A66597_HCD ) -#ifdef R8A66597_DEBUG #define R8A66597_DPRINT printf#else
@@ -919,6 +917,3 @@ int usb_lowlevel_stop(void)return 0 ; } - -#endif /* CONFIG_USB_R8A66597_HCD */ -
Signature · 1 line
1.5.5.1
Wolfgang Denk
AppliedPATCH 1/1 Fix compile error related to r8a66597-hcd & usb
Dear Kumar Gala,
Quoted 6 lines · In message <[email protected]> you wrote:
When building the 8544DS board we get this error:
In file included from r8a66597-hcd.c:22:
u-boot/include/usb.h:190:2: error: #error USB Lowlevel not defined make[1]: *** [r8a66597-hcd.o] Error 1
Quoted 8 lines
The cleanest fix is to only build
r8a66597-hcd.cifCONFIG_USB_R8A66597_HCDis set.Signed-off-by Kumar Gala <[email protected]>--- drivers/usb/Makefile | 3 ++- drivers/usb/r8a66597-hcd.c | 5 ----- 2 files changed, 2 insertions(+), 6 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 9 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
I don't care if you *ARE* on a bondage-and-discipline post-technical
system pawned off by the nation's largest oughta-be-illegal monopoly
who cannot escape the sins of their forefathers -- namely, using the
wrong slash for directories when the C language and its brethren use
it for something else that's very important.
-- Tom Christiansen in <[email protected]>