Browse Source

build: define RTC_SUPPORT as a bool

Currently, RTC_SUPPORT is defined as a tristate, with 'depends on m',
which is supposed to only let it be set to 'm' or 'n'.  However,
scripts/target-metadata.pl will 'select' it, or setting it to 'y', which
defeats it's 'depends on m' restriction.  The users of the symbol are
not expecting it to be necessarily 'm' either, so we can safely use it
as bool.

Newer versions of Linux 'conf' will issue a warning when it detects such
unmet dependencies, and will set it to 'n' instead of 'y', as the
current version does.  In all cases, 'm' is never used.

Signed-off-by: Eneas U de Queiroz <[email protected]>
Eneas U de Queiroz 5 years ago
parent
commit
ccad1d6817
1 changed files with 1 additions and 2 deletions
  1. 1 2
      target/Config.in

+ 1 - 2
target/Config.in

@@ -37,8 +37,7 @@ config USB_GADGET_SUPPORT
 	bool
 
 config RTC_SUPPORT
-	tristate
-	depends on m
+	bool
 
 config BIG_ENDIAN
 	bool