Build Failure on ppc64 with CONFIG_USB_GADGET not set.
Hi Andrew!
Kernel build fails on my ppc64 machine. It seems to be a dependency problem with CONFIG_USB_GADGET not set.
Config file is attached.
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1drivers/built-in.o: In function `oz99x_remove':drivers/i2c/chips/oz99x.c:660: undefined reference to .led_classdev_unregister' drivers/built-in.o: In function oz99x_configure_leds':drivers/i2c/chips/oz99x.c:314: undefined reference to `.led_classdev_register'
make: *** [.tmp_vmlinux1] Error 1
Thanks,
Sudhir Kumar
Quoted 6 lines · On Mon, 7 Jan 2008 16:53:58 +0530 "sudhir kumar" <[email protected]>…
Hi Andrew!
Kernel build fails on my ppc64 machine. It seems to be a dependency problem with
CONFIG_USB_GADGETnot set.
Config file is attached.
Quoted 9 lines
CC
init/version.o
LDinit/built-in.o
LD .tmp_vmlinux1drivers/built-in.o: In function `oz99x_remove':drivers/i2c/chips/oz99x.c:660: undefined reference to.led_classdev_unregister' drivers/built-in.o: In functionoz99x_configure_leds':drivers/i2c/chips/oz99x.c:314: undefined reference to `.led_classdev_register'
make: *** [.tmp_vmlinux1] Error 1
Strange.
oz99x-i2c-button-and-led-support-driver.patch has
+config OZ99X
+ tristate "O2 Micro/ETC OZ990/OZ992 SMBus chip"
+ depends on I2C
+ select INPUT_POLLDEV
+ select LEDS_CLASS
and your .config gives
box:/usr/src/25> grep LEDS .config
# CONFIG_NEW_LEDS is not setCONFIG_LEDS_CLASS=y
so drivers/leds/led-class.o should be linked into your vmlinux. But that obviously isn't happening.
Quoted 28 lines · Andrew Morton
Quoted 6 lines · On Mon, 7 Jan 2008 16:53:58 +0530 "sudhir kumar" <[email protected]>…
Hi Andrew!
Kernel build fails on my ppc64 machine. It seems to be a dependency problem with
CONFIG_USB_GADGETnot set.
Config file is attached.Quoted 9 lines
CC
init/version.o
LDinit/built-in.o
LD .tmp_vmlinux1drivers/built-in.o: In function `oz99x_remove':drivers/i2c/chips/oz99x.c:660: undefined reference to.led_classdev_unregister' drivers/built-in.o: In functionoz99x_configure_leds':drivers/i2c/chips/oz99x.c:314: undefined reference to `.led_classdev_register'
make: *** [.tmp_vmlinux1] Error 1Strange.
oz99x-i2c-button-and-led-support-driver.patch has
(quoted diff) +5
-0+config OZ99X + tristate "O2 Micro/ETC OZ990/OZ992 SMBus chip" + depends on I2C + select INPUT_POLLDEV + select LEDS_CLASS
Quoted 8 lines
and your .config gives
box:/usr/src/25> grep LEDS .config
#CONFIG_NEW_LEDSis not setCONFIG_LEDS_CLASS=yso
drivers/leds/led-class.oshould be linked into your vmlinux. But that obviously isn't happening.
Because CONFIG_NEW_LEDS is not set we do not visit drivers/leds due to:
obj-$(CONFIG_NEW_LEDS) += leds/
in drivers/Makefile
This is evil select playing games (again).
We have LEDS_CLASS equal y but NEW_LEDS equal n
Sam
Quoted 35 lines · On Mon, 7 Jan 2008 20:15:31 +0100 Sam Ravnborg <[email protected]> wrote:
Quoted 34 lines · Andrew Morton
Quoted 6 lines · On Mon, 7 Jan 2008 16:53:58 +0530 "sudhir kumar" <[email protected]>…
Hi Andrew!
Kernel build fails on my ppc64 machine. It seems to be a dependency problem with
CONFIG_USB_GADGETnot set.
Config file is attached.Quoted 9 lines
CC
init/version.o
LDinit/built-in.o
LD .tmp_vmlinux1drivers/built-in.o: In function `oz99x_remove':drivers/i2c/chips/oz99x.c:660: undefined reference to.led_classdev_unregister' drivers/built-in.o: In functionoz99x_configure_leds':drivers/i2c/chips/oz99x.c:314: undefined reference to `.led_classdev_register'
make: *** [.tmp_vmlinux1] Error 1Strange.
oz99x-i2c-button-and-led-support-driver.patch has
(quoted diff) +5
-0+config OZ99X + tristate "O2 Micro/ETC OZ990/OZ992 SMBus chip" + depends on I2C + select INPUT_POLLDEV + select LEDS_CLASSand your .config gives
box:/usr/src/25> grep LEDS .config
#CONFIG_NEW_LEDSis not setCONFIG_LEDS_CLASS=y
Quoted 9 lines
Quoted 2 lines
so
drivers/leds/led-class.oshould be linked into your vmlinux. But that obviously isn't happening.Because
CONFIG_NEW_LEDSis not set we do not visitdrivers/ledsdue to:
obj-$(CONFIG_NEW_LEDS) += leds/
indrivers/MakefileThis is evil select playing games (again).
We haveLEDS_CLASSequal y butNEW_LEDSequal n
Ah, OK, thanks.
I'll switch oz99x-i2c-button-and-led-support-driver.patch over to using non-evil `depends on LEDS_CLASS'.
Hi,
Am Montag 07 Januar 2008 schrieb Andrew Morton:
Quoted 8 lines
Quoted 2 lines · Sam Ravnborg
This is evil select playing games (again).
We haveLEDS_CLASSequal y butNEW_LEDSequal nAh, OK, thanks.
I'll switch oz99x-i2c-button-and-led-support-driver.patch over to using non-evil `depends on
LEDS_CLASS'.
If you wait a moment, I'll send you an updated patch that makes LED support optional in the driver.
HS