summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2008-04-20 09:46:45 +0000
committerNicolas Thill <nico@openwrt.org>2008-04-20 09:46:45 +0000
commitddc57879ec7e2310ff544d5f9cc4bc02d7f07d05 (patch)
tree5de42b2021348aa6ece28b913751c1713a8a2232
parent1f666fa4597abc453c0923de99b27a473730ca0c (diff)
downloadmtk-20170518-ddc57879ec7e2310ff544d5f9cc4bc02d7f07d05.zip
mtk-20170518-ddc57879ec7e2310ff544d5f9cc4bc02d7f07d05.tar.gz
mtk-20170518-ddc57879ec7e2310ff544d5f9cc4bc02d7f07d05.tar.bz2
add a gpio feature for devices supporting the generic GPIO interface
SVN-Revision: 10879
-rw-r--r--include/target.mk3
-rwxr-xr-xscripts/metadata.pl1
-rw-r--r--target/Config.in3
3 files changed, 7 insertions, 0 deletions
diff --git a/include/target.mk b/include/target.mk
index 4f10a3d..ce842da 100644
--- a/include/target.mk
+++ b/include/target.mk
@@ -126,6 +126,9 @@ ifeq ($(DUMP),1)
.SILENT: $(TMP_CONFIG)
.PRECIOUS: $(TMP_CONFIG)
+ ifneq ($(CONFIG_GENERIC_GPIO),)
+ FEATURES += gpio
+ endif
ifneq ($(CONFIG_PCI),)
FEATURES += pci
endif
diff --git a/scripts/metadata.pl b/scripts/metadata.pl
index 6d75345..51dcc42 100755
--- a/scripts/metadata.pl
+++ b/scripts/metadata.pl
@@ -152,6 +152,7 @@ sub target_config_features(@) {
while ($_ = shift @_) {
/broken/ and $ret .= "\tdepends BROKEN\n";
/display/ and $ret .= "\tselect DISPLAY_SUPPORT\n";
+ /gpio/ and $ret .= "\tselect GPIO_SUPPORT\n";
/pci/ and $ret .= "\tselect PCI_SUPPORT\n";
/usb/ and $ret .= "\tselect USB_SUPPORT\n";
/pcmcia/ and $ret .= "\tselect PCMCIA_SUPPORT\n";
diff --git a/target/Config.in b/target/Config.in
index aabe9c3..505fcc9 100644
--- a/target/Config.in
+++ b/target/Config.in
@@ -11,6 +11,9 @@ config LINUX_2_6
config DISPLAY_SUPPORT
bool
+config GPIO_SUPPORT
+ bool
+
config PCI_SUPPORT
bool