targets: add PINCTRL_SUPPORT auto-feature
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>
This commit is contained in:
parent
58f0f87786
commit
801529f725
3 changed files with 7 additions and 0 deletions
|
@ -315,6 +315,9 @@ ifeq ($(DUMP),1)
|
||||||
ifneq ($(CONFIG_PCIEPORTBUS),)
|
ifneq ($(CONFIG_PCIEPORTBUS),)
|
||||||
FEATURES += pcie
|
FEATURES += pcie
|
||||||
endif
|
endif
|
||||||
|
ifneq ($(CONFIG_PINCTRL),)
|
||||||
|
FEATURES += pinctrl
|
||||||
|
endif
|
||||||
ifneq ($(CONFIG_PWM),)
|
ifneq ($(CONFIG_PWM),)
|
||||||
FEATURES += pwm
|
FEATURES += pwm
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -33,6 +33,7 @@ sub target_config_features(@) {
|
||||||
/^pci$/ and $ret .= "\tselect PCI_SUPPORT\n";
|
/^pci$/ and $ret .= "\tselect PCI_SUPPORT\n";
|
||||||
/^pcie$/ and $ret .= "\tselect PCIE_SUPPORT\n";
|
/^pcie$/ and $ret .= "\tselect PCIE_SUPPORT\n";
|
||||||
/^pcmcia$/ and $ret .= "\tselect PCMCIA_SUPPORT\n";
|
/^pcmcia$/ and $ret .= "\tselect PCMCIA_SUPPORT\n";
|
||||||
|
/^pinctrl$/ and $ret .= "\tselect PINCTRL_SUPPORT\n";
|
||||||
/^powerpc64$/ and $ret .= "\tselect powerpc64\n";
|
/^powerpc64$/ and $ret .= "\tselect powerpc64\n";
|
||||||
/^pwm$/ and $ret .= "\select PWM_SUPPORT\n";
|
/^pwm$/ and $ret .= "\select PWM_SUPPORT\n";
|
||||||
/^ramdisk$/ and $ret .= "\tselect USES_INITRAMFS\n";
|
/^ramdisk$/ and $ret .= "\tselect USES_INITRAMFS\n";
|
||||||
|
|
|
@ -32,6 +32,9 @@ config PCIE_SUPPORT
|
||||||
config PCMCIA_SUPPORT
|
config PCMCIA_SUPPORT
|
||||||
bool
|
bool
|
||||||
|
|
||||||
|
config PINCTRL_SUPPORT
|
||||||
|
bool
|
||||||
|
|
||||||
config PWM_SUPPORT
|
config PWM_SUPPORT
|
||||||
bool
|
bool
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue