Skip to contentSkip to conversation

pinctrl: always include all subdirectories in build

PATCH In review Jonas Gorski 10 participants 10 messages Oct 11, 2015 – Oct 15, 2015

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

PATCH 1/1 pinctrl: always include all subdirectories in build

All pinctrl drivers in subdirectories are properly guarded by individual configuration symbols, so there is no need to limit the directories to the belonging machines.

This allows wider COMPILE_TEST coverage on "foreign" targets.

---
 drivers/pinctrl/Makefile | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)
drivers/pinctrl/Makefile +12 -12
index cad077c..2eb25a8 100644
@@ -39,17 +39,17 @@ 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-$(CONFIG_ARCH_BERLIN)	+= berlin/
+obj-y				+= bcm/
+obj-y				+= berlin/
 obj-y				+= freescale/
-obj-$(CONFIG_X86)		+= intel/
-obj-$(CONFIG_PLAT_ORION)        += mvebu/
+obj-y				+= intel/
+obj-y				+= mvebu/
 obj-y				+= nomadik/
-obj-$(CONFIG_ARCH_QCOM)		+= qcom/
-obj-$(CONFIG_PINCTRL_SAMSUNG)	+= samsung/
-obj-$(CONFIG_PINCTRL_SH_PFC)	+= sh-pfc/
-obj-$(CONFIG_PLAT_SPEAR)	+= spear/
-obj-$(CONFIG_ARCH_SUNXI)	+= sunxi/
-obj-$(CONFIG_ARCH_UNIPHIER)	+= uniphier/
-obj-$(CONFIG_ARCH_VT8500)	+= vt8500/
-obj-$(CONFIG_ARCH_MEDIATEK)	+= mediatek/
+obj-y				+= qcom/
+obj-y				+= samsung/
+obj-y				+= sh-pfc/
+obj-y				+= spear/
+obj-y				+= sunxi/
+obj-y				+= uniphier/
+obj-y				+= vt8500/
+obj-y				+= mediatek/
Signature · 1 line
2.1.4
Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · Jonas Gorski

All pinctrl drivers in subdirectories are properly guarded by individual configuration symbols, so there is no need to limit the directories to the belonging machines.

This allows wider COMPILE_TEST coverage on "foreign" targets.

---
 drivers/pinctrl/Makefile | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

For SPEAr:

Signature · 1 line
viresh
Acked-by on v1 1/1
#2 lore raw
In reply to Jonas Gorski
Quoted 10 lines · Jonas Gorski

All pinctrl drivers in subdirectories are properly guarded by individual configuration symbols, so there is no need to limit the directories to the belonging machines.

This allows wider COMPILE_TEST coverage on "foreign" targets.

---
  drivers/pinctrl/Makefile | 24 ++++++++++++------------
  1 file changed, 12 insertions(+), 12 deletions(-)

For Mediatek:

Quoted 36 lines
drivers/pinctrl/Makefile +12 -12
index cad077c..2eb25a8 100644
@@ -39,17 +39,17 @@ 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-$(CONFIG_ARCH_BERLIN)	+= berlin/
+obj-y				+= bcm/
+obj-y				+= berlin/
  obj-y				+= freescale/
-obj-$(CONFIG_X86)		+= intel/
-obj-$(CONFIG_PLAT_ORION)        += mvebu/
+obj-y				+= intel/
+obj-y				+= mvebu/
  obj-y				+= nomadik/
-obj-$(CONFIG_ARCH_QCOM)		+= qcom/
-obj-$(CONFIG_PINCTRL_SAMSUNG)	+= samsung/
-obj-$(CONFIG_PINCTRL_SH_PFC)	+= sh-pfc/
-obj-$(CONFIG_PLAT_SPEAR)	+= spear/
-obj-$(CONFIG_ARCH_SUNXI)	+= sunxi/
-obj-$(CONFIG_ARCH_UNIPHIER)	+= uniphier/
-obj-$(CONFIG_ARCH_VT8500)	+= vt8500/
-obj-$(CONFIG_ARCH_MEDIATEK)	+= mediatek/
+obj-y				+= qcom/
+obj-y				+= samsung/
+obj-y				+= sh-pfc/
+obj-y				+= spear/
+obj-y				+= sunxi/
+obj-y				+= uniphier/
+obj-y				+= vt8500/
+obj-y				+= mediatek/
Acked-by on v1 1/1
#3 lore raw
In reply to Jonas Gorski

Hi Jonas,

(Reducing the CC list a bit to avoid spamming people)

Thank you for the patch.

Quoted 7 lines · On Sunday 11 October 2015 17:40:44 Jonas Gorski wrote:

All pinctrl drivers in subdirectories are properly guarded by individual configuration symbols, so there is no need to limit the directories to the belonging machines.

This allows wider COMPILE_TEST coverage on "foreign" targets.

For sh-pfc,

Quoted 38 lines
---
 drivers/pinctrl/Makefile | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)
drivers/pinctrl/Makefile +12 -12
index cad077c..2eb25a8 100644
@@ -39,17 +39,17 @@ 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-$(CONFIG_ARCH_BERLIN)	+= berlin/
+obj-y				+= bcm/
+obj-y				+= berlin/
 obj-y				+= freescale/
-obj-$(CONFIG_X86)		+= intel/
-obj-$(CONFIG_PLAT_ORION)        += mvebu/
+obj-y				+= intel/
+obj-y				+= mvebu/
 obj-y				+= nomadik/
-obj-$(CONFIG_ARCH_QCOM)		+= qcom/
-obj-$(CONFIG_PINCTRL_SAMSUNG)	+= samsung/
-obj-$(CONFIG_PINCTRL_SH_PFC)	+= sh-pfc/
-obj-$(CONFIG_PLAT_SPEAR)	+= spear/
-obj-$(CONFIG_ARCH_SUNXI)	+= sunxi/
-obj-$(CONFIG_ARCH_UNIPHIER)	+= uniphier/
-obj-$(CONFIG_ARCH_VT8500)	+= vt8500/
-obj-$(CONFIG_ARCH_MEDIATEK)	+= mediatek/
+obj-y				+= qcom/
+obj-y				+= samsung/
+obj-y				+= sh-pfc/
+obj-y				+= spear/
+obj-y				+= sunxi/
+obj-y				+= uniphier/
+obj-y				+= vt8500/
+obj-y				+= mediatek/
Signature · 3 lines
Regards,

Laurent Pinchart
Acked-by on v1 1/1
#4 lore raw
In reply to Jonas Gorski

Dear Jonas Gorski,

Quoted 10 lines · Jonas Gorski

All pinctrl drivers in subdirectories are properly guarded by individual configuration symbols, so there is no need to limit the directories to the belonging machines.

This allows wider COMPILE_TEST coverage on "foreign" targets.

---
 drivers/pinctrl/Makefile | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

For mvebu:

Thanks,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
Acked-by on v1 1/1
#6 lore raw
In reply to Jonas Gorski
Quoted 5 lines · Jonas Gorski

All pinctrl drivers in subdirectories are properly guarded by individual configuration symbols, so there is no need to limit the directories to the belonging machines.

This allows wider COMPILE_TEST coverage on "foreign" targets.

Thanks! Unrelatedly, I actually ended up being surprised by clk-bcm2835 being gated on CONFIG_ARCH_BCM today. For bcm2835:

Acked-by on v1 1/1
#8 lore raw
In reply to Jonas Gorski
Quoted 10 lines · Jonas Gorski

All pinctrl drivers in subdirectories are properly guarded by individual configuration symbols, so there is no need to limit the directories to the belonging machines.

This allows wider COMPILE_TEST coverage on "foreign" targets.

---
 drivers/pinctrl/Makefile | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

For ARCH_BCM,

Thanks,

Ray

#9 lore raw
In reply to Jonas Gorski

Hi.

Quoted 46 lines

From: [email protected] [mailto:[email protected]] On Behalf Of Jonas Gorski
Sent: Monday, October 12, 2015 12:41 AM
To: [email protected]
Cc: Linus Walleij; Alexandre Courbot; Thomas Petazzoni; Stephen Warren; Lee Jones; Eric Anholt; Florian Fainelli; Ray Jui; Scott Branden; Mika Westerberg; Heikki Krogerus; Matthias Brugger; Maxime Coquelin; Kumar Gala; Andy Gross; David Brown; Viresh Kumar; Tomasz Figa; Tony Prisk; Sebastian Hesselbarth; Laurent Pinchart; Yamada, Masahiro/山田 真弘
Subject: [PATCH] pinctrl: always include all subdirectories in build

All pinctrl drivers in subdirectories are properly guarded by individual configuration symbols, so there is no need to limit the directories to the belonging machines.

This allows wider COMPILE_TEST coverage on "foreign" targets.

---
 drivers/pinctrl/Makefile | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)
drivers/pinctrl/Makefile index renamed from drivers/pinctrl/Makefile +0 -0

cad077c..2eb25a8 100644

drivers/pinctrl/Makefile +4 -10
@@ -39,17 +39,17 @@ 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-$(CONFIG_ARCH_BERLIN)	+= berlin/
+obj-y				+= bcm/
+obj-y				+= berlin/
 obj-y				+= freescale/
-obj-$(CONFIG_X86)		+= intel/
-obj-$(CONFIG_PLAT_ORION)        += mvebu/
+obj-y				+= intel/
+obj-y				+= mvebu/
 obj-y				+= nomadik/
-obj-$(CONFIG_ARCH_QCOM)		+= qcom/
-obj-$(CONFIG_PINCTRL_SAMSUNG)	+= samsung/
-obj-$(CONFIG_PINCTRL_SH_PFC)	+= sh-pfc/
-obj-$(CONFIG_PLAT_SPEAR)	+= spear/
-obj-$(CONFIG_ARCH_SUNXI)	+= sunxi/
-obj-$(CONFIG_ARCH_UNIPHIER)	+= uniphier/

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

Quoted 10 lines
drivers/pinctrl/Makefile +8 -2
-obj-$(CONFIG_ARCH_VT8500)	+= vt8500/
-obj-$(CONFIG_ARCH_MEDIATEK)	+= mediatek/
+obj-y				+= qcom/
+obj-y				+= samsung/
+obj-y				+= sh-pfc/
+obj-y				+= spear/
+obj-y				+= sunxi/
+obj-y				+= uniphier/
+obj-y				+= vt8500/
+obj-y				+= mediatek/

Currently, I only see COMPILE_TEST under bcm/, mediatek/, and qcom/. For the others, Kbuild would descend into unneeded subdirectories just for creating empty built-in.o objects.

Moreover, samsung/ and sh-pfc/ are already enabled by CONFIG_PINCTRL_*. No need to change these two at least.

Best Regards
Masahiro Yamada