Skip to contentSkip to conversation

pinctrl: Always recurse into bcm folder

PATCH In review Florian Fainelli 3 participants 3 messages Jun 8, 2016 – Jun 13, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pinctrl: Always recurse into bcm folder

drivers/pinctrl/bcm/Makefile properly builds individual drivers based on their respective Kconfig symbols. ARCH_BCM is currently a menuconfig option from arch/arm/mach-bcm/Kconfig, which is fine, but prevents ARM64 platforms which do not have such menuconfig option from building their pinctrl drivers, so let's get rid of that dependency.

---
 drivers/pinctrl/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pinctrl/Makefile +1 -1
index 25ec45090620..8ebd7b8e1621 100644
@@ -37,7 +37,7 @@ obj-$(CONFIG_PINCTRL_TB10X)	+= pinctrl-tb10x.o
 obj-$(CONFIG_PINCTRL_ST) 	+= pinctrl-st.o
 obj-$(CONFIG_PINCTRL_ZYNQ)	+= pinctrl-zynq.o
 
-obj-$(CONFIG_ARCH_BCM)		+= bcm/
+obj-y				+= bcm/
 obj-$(CONFIG_PINCTRL_BERLIN)	+= berlin/
 obj-y				+= freescale/
 obj-$(CONFIG_X86)		+= intel/
Signature · 1 line
2.7.4
Acked-by on v1 1/1
#1 lore raw

Looks good.

Quoted 7 lines · Florian Fainelli

drivers/pinctrl/bcm/Makefile properly builds individual drivers based on their respective Kconfig symbols. ARCH_BCM is currently a menuconfig option from arch/arm/mach-bcm/Kconfig, which is fine, but prevents ARM64 platforms which do not have such menuconfig option from building their pinctrl drivers, so let's get rid of that dependency.

Quoted 10 lines
---
  drivers/pinctrl/Makefile | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pinctrl/Makefile +0 -0
index 25ec45090620..8ebd7b8e1621 100644

drivers/pinctrl/Makefile obj-$(CONFIG_PINCTRL_TB10X) += pinctrl-tb10x.o · line 43

Quoted 8 lines
drivers/pinctrl/Makefile +1 -1
@@ -37,7 +37,7 @@ obj-$(CONFIG_PINCTRL_TB10X)	+= pinctrl-tb10x.o
  obj-$(CONFIG_PINCTRL_ST) 	+= pinctrl-st.o
  obj-$(CONFIG_PINCTRL_ZYNQ)	+= pinctrl-zynq.o
 
-obj-$(CONFIG_ARCH_BCM)		+= bcm/
+obj-y				+= bcm/
  obj-$(CONFIG_PINCTRL_BERLIN)	+= berlin/
  obj-y				+= freescale/
  obj-$(CONFIG_X86)		+= intel/

Regards,
Scott

#2 lore raw
In reply to Florian Fainelli
Quoted 7 lines · Florian Fainelli

drivers/pinctrl/bcm/Makefile properly builds individual drivers based on their respective Kconfig symbols. ARCH_BCM is currently a menuconfig option from arch/arm/mach-bcm/Kconfig, which is fine, but prevents ARM64 platforms which do not have such menuconfig option from building their pinctrl drivers, so let's get rid of that dependency.

Patch applied with Scott's ACK.

Yours,
Linus Walleij