pinctrl: always include all subdirectories in build
Subsystems (2)
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
@@ -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
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_TESTcoverage on "foreign" targets.Signed-off-by Jonas Gorski <[email protected]>--- drivers/pinctrl/Makefile | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-)
For SPEAr:
Signature · 1 line
viresh
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_TESTcoverage on "foreign" targets.Signed-off-by Jonas Gorski <[email protected]>--- drivers/pinctrl/Makefile | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-)
For Mediatek:
Quoted 36 lines
drivers/pinctrl/Makefile +12
-12@@ -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/
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_TESTcoverage on "foreign" targets.Signed-off-by Jonas Gorski <[email protected]>
For sh-pfc,
Quoted 38 lines
--- drivers/pinctrl/Makefile | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-)drivers/pinctrl/Makefile +12
-12@@ -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
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_TESTcoverage on "foreign" targets.Signed-off-by Jonas Gorski <[email protected]>--- 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
Quoted 7 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_TESTcoverage on "foreign" targets.Signed-off-by Jonas Gorski <[email protected]>
...
Quoted 1 line
+obj-y += intel/
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_TESTcoverage on "foreign" targets.
Thanks! Unrelatedly, I actually ended up being surprised by clk-bcm2835 being gated on CONFIG_ARCH_BCM today. For bcm2835:
On Sun, Oct 11, 2015 at 8:40 AM, Jonas Gorski <[email protected]> wrote:
[..]
Quoted 1 line
drivers/pinctrl/Makefile +0
-0
[..]
Quoted 1 line
+obj-y += qcom/
Regards,
Bjorn
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_TESTcoverage on "foreign" targets.Signed-off-by Jonas Gorski <[email protected]>--- drivers/pinctrl/Makefile | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-)
For ARCH_BCM,
Thanks,
Ray
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 buildAll 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_TESTcoverage on "foreign" targets.Signed-off-by Jonas Gorski <[email protected]>--- drivers/pinctrl/Makefile | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-)drivers/pinctrl/Makefile index renamed from drivers/pinctrl/Makefile +0
-0cad077c..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