OMAP build failure after this merge window - caused by usb or phy Kconfig krap
There's no other way to say it, and I've no idea who is responsible for this:
LD init/built-in.odrivers/built-in.o: In function `omap_usb2_remove':
powercap_sys.c:(.text+0x1c60): undefined reference to usb_remove_phy' drivers/built-in.o: In function omap_usb_power_off':
powercap_sys.c:(.text+0x1c84): undefined reference to omap_control_usb_phy_power' drivers/built-in.o: In function omap_usb_power_on':
powercap_sys.c:(.text+0x1ca8): undefined reference to omap_control_usb_phy_power' drivers/built-in.o: In function omap_usb2_probe':
powercap_sys.c:(.text+0x1dac): undefined reference to omap_control_usb_phy_power' powercap_sys.c:(.text+0x1e5c): undefined reference to usb_add_phy_dev' drivers/built-in.o: In function `omap_usb2_suspend':
powercap_sys.c:(.text+0x1ec8): undefined reference to omap_control_usb_phy_power' powercap_sys.c:(.text+0x1f20): undefined reference to omap_control_usb_phy_power' drivers/built-in.o: In function `omap_usb2_set_comparator':
powercap_sys.c:(.text+0x1f54): undefined reference to usb_get_phy' arch/arm/mach-omap2/built-in.o: In function usbhs_init_phys':
dss-common.c:(.text+0xf824): undefined reference to `usb_bind_phy' make[1]: *** [vmlinux] Error 1
make: *** [sub-make] Error 2
These warnings probably have something to do with it:
scripts/kconfig/conf --silentoldconfig Kconfig
warning: (OMAP_USB2 && TWL4030_USB) selects USB_PHY which has unmet direct dependencies (USB_SUPPORT)
warning: (OMAP_USB2) selects OMAP_CONTROL_USB which has unmet direct dependencies (USB_SUPPORT && (ARCH_OMAP2PLUS || COMPILE_TEST))
warning: (OMAP_USB2 && TWL4030_USB) selects USB_PHY which has unmet direct dependencies (USB_SUPPORT)
warning: (OMAP_USB2) selects OMAP_CONTROL_USB which has unmet direct dependencies (USB_SUPPORT && (ARCH_OMAP2PLUS || COMPILE_TEST))
which just illustrates why "select" in Kconfig is soo fscking bad that it shouldn't be used.
It certainly should not be used without running through a series of randconfig builds to make absolutely sure you have the dependencies correct... or an allnoconfig with just the options required to select the new option enabled.
Quoted 2 lines · Russell King - ARM Linux
which just illustrates why "select" in
Kconfigis soo fscking bad that it shouldn't be used.
The problem is that instinctively people assume that select is the opposite from depends. Unfortunately, it is not and it is a pitfall for many.
Gr. AvS
Hi,
Quoted 14 lines · Russell King - ARM Linux
There's no other way to say it, and I've no idea who is responsible for this:
LD
init/built-in.odrivers/built-in.o: In function `omap_usb2_remove':
powercap_sys.c:(.text+0x1c60): undefined reference tousb_remove_phy' drivers/built-in.o: In functionomap_usb_power_off':
powercap_sys.c:(.text+0x1c84): undefined reference toomap_control_usb_phy_power' drivers/built-in.o: In functionomap_usb_power_on':
powercap_sys.c:(.text+0x1ca8): undefined reference toomap_control_usb_phy_power' drivers/built-in.o: In functionomap_usb2_probe':
powercap_sys.c:(.text+0x1dac): undefined reference toomap_control_usb_phy_power' powercap_sys.c:(.text+0x1e5c): undefined reference tousb_add_phy_dev'drivers/built-in.o: In function `omap_usb2_suspend':
Quoted 8 lines
powercap_sys.c:(.text+0x1ec8): undefined reference to
omap_control_usb_phy_power' powercap_sys.c:(.text+0x1f20): undefined reference toomap_control_usb_phy_power'drivers/built-in.o: In function `omap_usb2_set_comparator':
powercap_sys.c:(.text+0x1f54): undefined reference tousb_get_phy' arch/arm/mach-omap2/built-in.o: In functionusbhs_init_phys':
dss-common.c:(.text+0xf824): undefined reference to `usb_bind_phy' make[1]: *** [vmlinux] Error 1
make: *** [sub-make] Error 2
Kishon, can you send a patch fixing these ?
Signature · 8 lines
balbi -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20131125/a69737e3/attachment.sig>