hardkernel / linux

Linux kernel source tree
Other
427 stars 408 forks source link

Missing dependancy on CONFIG_USB_GADGET #265

Open pmjdebruijn opened 7 years ago

pmjdebruijn commented 7 years ago

Regarding: https://github.com/hardkernel/linux/tree/odroidc2-3.14.y

I ran into a build failure: drivers/built-in.o: In function pcd_init': odroid-battery.c:(.text+0x1e6008): undefined reference tousb_add_gadget_udc' odroid-battery.c:(.text+0x1e6008): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `usb_add_gadget_udc' Makefile:831: recipe for target 'vmlinux' failed make[2]: *** [vmlinux] Error 1

Apparently USB Gadget support needs to be enabled (compiling as a module isn't sufficient). CONFIG_USB_GADGET=y

This would imply there is a missing dependancy, in a relevant Config.in.