Kaynağa Gözat

add a gpio feature for devices supporting the generic GPIO interface

SVN-Revision: 10879
Nicolas Thill 17 yıl önce
ebeveyn
işleme
ddc57879ec
3 değiştirilmiş dosya ile 7 ekleme ve 0 silme
  1. 3 0
      include/target.mk
  2. 1 0
      scripts/metadata.pl
  3. 3 0
      target/Config.in

+ 3 - 0
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

+ 1 - 0
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";

+ 3 - 0
target/Config.in

@@ -11,6 +11,9 @@ config LINUX_2_6
 config DISPLAY_SUPPORT
 	bool
 
+config GPIO_SUPPORT
+	bool
+
 config PCI_SUPPORT
 	bool