target: add a feature flag for RTC support
target: add a feature flag for RTC support

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31777 3c298f89-4303-0410-b956-a3cf2f4a3e73

--- a/include/target.mk
+++ b/include/target.mk
@@ -182,6 +182,9 @@
     endif
     ifneq ($(CONFIG_VGA_CONSOLE)$(CONFIG_FB),)
       FEATURES += display
+    endif
+    ifneq ($(CONFIG_RTC_CLASS),)
+      FEATURES += rtc
     endif
 
     # remove duplicates

--- a/scripts/metadata.pl
+++ b/scripts/metadata.pl
@@ -161,6 +161,7 @@
 		/usb/ and $ret .= "\tselect USB_SUPPORT\n";
 		/usbgadget/ and $ret .= "\tselect USB_GADGET_SUPPORT\n";
 		/pcmcia/ and $ret .= "\tselect PCMCIA_SUPPORT\n";
+		/rtc/ and $ret .= "\tselect RTC_SUPPORT\n";
 		/squashfs/ and $ret .= "\tselect USES_SQUASHFS\n";
 		/jffs2/ and $ret .= "\tselect USES_JFFS2\n";
 		/ext4/ and $ret .= "\tselect USES_EXT4\n";

--- a/target/Config.in
+++ b/target/Config.in
@@ -31,6 +31,9 @@
 	bool
 
 config USB_GADGET_SUPPORT
+	bool
+
+config RTC_SUPPORT
 	bool
 
 config BIG_ENDIAN

comments