Build failure: OMAP4430 failed due to exynos4 pinctrl
Subsystems (2)
Quoted 9 lines · Russell King - ARM Linux
Last night's randconfig for OMAP4430 failed with:
drivers/built-in.o:(.rodata+0x1a60): undefined reference to `exynos4210_pin_ctrl'
Config and log:
http://www.arm.linux.org.uk/developer/build/file.php?type=config&idx=2693
http://www.arm.linux.org.uk/developer/build/result.php?type=build&idx=2693
Oops, yeah right.
Thanks for pointing out :-)
Please test again with following?...
(+ Linus Walleij)
8<-------------------------------------------------------------
From: Kukjin Kim <[email protected]>
Subject: [PATCH] pinctrl/samsung: adds dependency for pinctrl-samsung/exynos
The pinctrl-exynos should be built with ARCH_EXYNOS and pinctrl-samsung should be built with pinctrl-exynos. If not, following error can be happened.
drivers/built-in.o:(.rodata+0x1a60): undefined reference to 'exynos4210_pin_ctrl'
--- drivers/pinctrl/Kconfig | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/pinctrl/Kconfig +2 -0
@@ -179,11 +179,13 @@ config PINCTRL_COH901 config PINCTRL_SAMSUNG bool "Samsung pinctrl driver" + depends on PLAT_SAMSUNG select PINMUX select PINCONF config PINCTRL_EXYNOS4 bool "Pinctrl driver data for Exynos4 SoC" + depends on PINCTRL_SAMSUNG && ARCH_EXYNOS4 select PINCTRL_SAMSUNG config PINCTRL_MVEBU
Signature · 13 lines
1.7.4.1 8<------------------------------------------------------------- Note, this is a re-sending due to failure of delivery... :-( Thanks. Best regards, Kgene. -- Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.
Quoted 4 lines · Kukjin Kim
Quoted 3 lines · Russell King - ARM Linux
Last night's randconfig for OMAP4430 failed with:
Quoted 8 lines
Quoted 6 lines
drivers/built-in.o:(.rodata+0x1a60): undefined reference to `exynos4210_pin_ctrl'
Config and log:
http://www.arm.linux.org.uk/developer/build/file.php?type=config&idx=2693
http://www.arm.linux.org.uk/developer/build/result.php?type=build&idx=2693Oops, yeah right.
Hmm, I found the same thing earlier and it got lost in my backlog of unsubmitted patches.
Quoted 6 lines
drivers/pinctrl/Kconfig +0
-0@@ -179,11 +179,13 @@ config PINCTRL_COH901
drivers/pinctrl/Kconfig config PINCTRL_COH901 · line 189
Quoted 10 lines
drivers/pinctrl/Kconfig +2
-0config PINCTRL_SAMSUNG bool "Samsung pinctrl driver" + depends on PLAT_SAMSUNG select PINMUX select PINCONF config PINCTRL_EXYNOS4 bool "Pinctrl driver data for Exynos4 SoC" + depends on PINCTRL_SAMSUNG && ARCH_EXYNOS4 select PINCTRL_SAMSUNG
This won't work. A driver can't "select" and "depend on" another symbol at the same time.
This is what I came up with earlier.
Arnd
8<----------------
Quoted 1 line
From
a15cc6277a3a43c8b5c1dd90ca71732b2ffe2b18Mon Sep 17 00:00:00 2001
From: Arnd Bergmann <[email protected]>
Date: Wed, 10 Oct 2012 13:31:45 +0000
Subject: [PATCH] pinctrl: samsung: don't allow enabling pinctrl-samsung
standalone
The main samsung pinctrl module references the specific exynos4210 pinctrl driver, which selects the main driver in Kconfig.
Making the main driver a silent "bool" option avoid this potential build error if CONFIG_PINCTRL_SAMSUNG=y && CONFIG_PINCTRL_EXYNOS4=n:
drivers/built-in.o:(.rodata+0x4e4): undefined reference to `exynos4210_pin_ctrl'
drivers/pinctrl/Kconfig +1 -1
@@ -178,7 +178,7 @@ config PINCTRL_COH901 ports of 8 GPIO pins each. config PINCTRL_SAMSUNG - bool "Samsung pinctrl driver" + bool select PINMUX select PINCONF
Kukjin Kim
Acked-byQuoted 1 line · Arnd Bergmann
[...]
Quoted 3 lines
This won't work. A driver can't "select" and "depend on" another symbol at the same time.
Ooooops. You're right. I missed :-(
Quoted 16 lines
This is what I came up with earlier.
Arnd
8<----------------
Froma15cc6277a3a43c8b5c1dd90ca71732b2ffe2b18Mon Sep 17 00:00:00 2001
From: Arnd Bergmann <[email protected]>
Date: Wed, 10 Oct 2012 13:31:45 +0000
Subject: [PATCH] pinctrl: samsung: don't allow enabling pinctrl-samsung
standaloneThe main samsung pinctrl module references the specific exynos4210 pinctrl driver, which selects the main driver in
Kconfig.Making the main driver a silent "bool" option avoid this potential build error if
CONFIG_PINCTRL_SAMSUNG=y&&CONFIG_PINCTRL_EXYNOS4=n:
Quoted 8 lines
drivers/built-in.o:(.rodata+0x4e4): undefined reference to `exynos4210_pin_ctrl'
Signed-off-by Arnd Bergmann <[email protected]>Cc Tomasz Figa <[email protected]>Cc Kyungmin Park <[email protected]>Cc Linus Walleij <[email protected]>Cc Kukjin Kim <[email protected]>
Linus, can you pick this up in your pinctrl/fixes ree?
Thanks.
Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.
Quoted 14 lines
drivers/pinctrl/Kconfig +1
-1@@ -178,7 +178,7 @@ config PINCTRL_COH901 ports of 8 GPIO pins each. config PINCTRL_SAMSUNG - bool "Samsung pinctrl driver" + bool select PINMUX select PINCONF
Quoted 20 lines · Kukjin Kim
Quoted 11 lines
From: Arnd Bergmann <[email protected]>
Date: Wed, 10 Oct 2012 13:31:45 +0000
Subject: [PATCH] pinctrl: samsung: don't allow enabling pinctrl-samsung
standaloneThe main samsung pinctrl module references the specific exynos4210 pinctrl driver, which selects the main driver in
Kconfig.Making the main driver a silent "bool" option avoid this potential build error if
CONFIG_PINCTRL_SAMSUNG=y&&CONFIG_PINCTRL_EXYNOS4=n:Quoted 8 lines
drivers/built-in.o:(.rodata+0x4e4): undefined reference to `exynos4210_pin_ctrl'
Signed-off-by Arnd Bergmann <[email protected]>Cc Tomasz Figa <[email protected]>Cc Kyungmin Park <[email protected]>Cc Linus Walleij <[email protected]>Cc Kukjin Kim <[email protected]>
Quoted 3 lines
Acked-by Kukjin Kim <[email protected]>Linus, can you pick this up in your pinctrl/fixes ree?
OK done.
Yours,
Linus Walleij