]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
targets: add PINCTRL_SUPPORT auto-feature
authorDaniel Golle <daniel@makrotopia.org>
Thu, 17 Jul 2025 18:25:38 +0000 (19:25 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Sat, 19 Jul 2025 12:54:22 +0000 (13:54 +0100)
Not all targets have CONFIG_PINCTRL=y set in their kernel config.
Let's introduce a feature for that so kernel module packages which
select or depend on CONFIG_PINCTRL=y may depend on that, so we can
try to prevent leaking CONFIG_PINCTRL=y also into targets which do
not require it.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
include/target.mk
scripts/target-metadata.pl
target/Config.in

index 6eae23d5f65d3c0f2a8d6375870bba1da4daa318..786c3ec5ce5d3e22979d8c386f7f9c11d58e7373 100644 (file)
@@ -315,6 +315,9 @@ ifeq ($(DUMP),1)
     ifneq ($(CONFIG_PCIEPORTBUS),)
       FEATURES += pcie
     endif
+    ifneq ($(CONFIG_PINCTRL),)
+      FEATURES += pinctrl
+    endif
     ifneq ($(CONFIG_PWM),)
       FEATURES += pwm
     endif
index 299dee92a7b6096b96ad52dad1d09342ae9f7cdb..751f66c7de2671c816b39618b207115f6a486e57 100755 (executable)
@@ -33,6 +33,7 @@ sub target_config_features(@) {
                /^pci$/ and $ret .= "\tselect PCI_SUPPORT\n";
                /^pcie$/ and $ret .= "\tselect PCIE_SUPPORT\n";
                /^pcmcia$/ and $ret .= "\tselect PCMCIA_SUPPORT\n";
+               /^pinctrl$/ and $ret .= "\tselect PINCTRL_SUPPORT\n";
                /^powerpc64$/ and $ret .= "\tselect powerpc64\n";
                /^pwm$/ and $ret .= "\select PWM_SUPPORT\n";
                /^ramdisk$/ and $ret .= "\tselect USES_INITRAMFS\n";
index c0f3237ca9cfa78aa4f9c5ac56885a47e4c69df5..38ff716d693b43bedda3efc2a1d52f888241abb8 100644 (file)
@@ -32,6 +32,9 @@ config PCIE_SUPPORT
 config PCMCIA_SUPPORT
        bool
 
+config PINCTRL_SUPPORT
+       bool
+
 config PWM_SUPPORT
        bool