kconfig: add CONFIG_SUPPORT_TPL

CONFIG_TPL should not be enabled for boards that do not have TPL.
CONFIG_SUPPORT_TPL introduced by this commit should be "select"ed
by boards with TPL support and CONFIG_TPL should depend on it.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
This commit is contained in:
Masahiro Yamada
2014-10-20 17:45:57 +09:00
committed by Tom Rini
parent 02627356b6
commit cf6bbe4c61
2 changed files with 9 additions and 1 deletions

View File

@@ -73,6 +73,9 @@ config TPL_BUILD
config SUPPORT_SPL
bool
config SUPPORT_TPL
bool
config SPL
bool
depends on SUPPORT_SPL
@@ -83,7 +86,7 @@ config SPL
config TPL
bool
depends on SPL
depends on SPL && SUPPORT_TPL
prompt "Enable TPL" if !SPL_BUILD
default y if TPL_BUILD
default n