aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-05-17 15:28:09 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-05-17 15:28:09 +0000
commitd73794f9a2e7a5ca61305248ce0bcb37cb3fb26c (patch)
treebb0296678a15f4980fecae9b300a01f8fe95b675
parent20c32c30e0438a49c3c34f39f90e3a97a0da3680 (diff)
downloadmaster-187ad058-d73794f9a2e7a5ca61305248ce0bcb37cb3fb26c.tar.gz
master-187ad058-d73794f9a2e7a5ca61305248ce0bcb37cb3fb26c.tar.bz2
master-187ad058-d73794f9a2e7a5ca61305248ce0bcb37cb3fb26c.zip
target: add a feature flag for RTC support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31777 3c298f89-4303-0410-b956-a3cf2f4a3e73
-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 61ae108d54..61cdf0640e 100644
--- a/include/target.mk
+++ b/include/target.mk
@@ -183,6 +183,9 @@ ifeq ($(DUMP),1)
ifneq ($(CONFIG_VGA_CONSOLE)$(CONFIG_FB),)
FEATURES += display
endif
+ ifneq ($(CONFIG_RTC_CLASS),)
+ FEATURES += rtc
+ endif
# remove duplicates
FEATURES:=$(sort $(FEATURES))
diff --git a/scripts/metadata.pl b/scripts/metadata.pl
index 41e6e9cd58..d250a71978 100755
--- a/scripts/metadata.pl
+++ b/scripts/metadata.pl
@@ -161,6 +161,7 @@ sub target_config_features(@) {
/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";
diff --git a/target/Config.in b/target/Config.in
index 9e0263e4c2..cc42ad1266 100644
--- a/target/Config.in
+++ b/target/Config.in
@@ -33,6 +33,9 @@ config USB_SUPPORT
config USB_GADGET_SUPPORT
bool
+config RTC_SUPPORT
+ bool
+
config BIG_ENDIAN
bool