[U-Boot] [PATCH v3 2/2] kconfig: add CONFIG_SUPPORT_TPL
Masahiro Yamada
yamada.m at jp.panasonic.com
Wed Oct 8 08:37:29 CEST 2014
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 at jp.panasonic.com>
---
Changes in v3: None
Changes in v2:
- bug fix. s/HAVE_SPL_SUPPORT/SUPPORT_SPL/
Kconfig | 5 ++++-
arch/powerpc/cpu/mpc85xx/Kconfig | 5 +++++
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/Kconfig b/Kconfig
index 29e0b92..932fc8b 100644
--- a/Kconfig
+++ b/Kconfig
@@ -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
diff --git a/arch/powerpc/cpu/mpc85xx/Kconfig b/arch/powerpc/cpu/mpc85xx/Kconfig
index 6dcc45a..c5ebd40 100644
--- a/arch/powerpc/cpu/mpc85xx/Kconfig
+++ b/arch/powerpc/cpu/mpc85xx/Kconfig
@@ -31,6 +31,7 @@ config TARGET_BSC9132QDS
config TARGET_C29XPCIE
bool "Support C29XPCIE"
select SUPPORT_SPL
+ select SUPPORT_TPL
config TARGET_P3041DS
bool "Support P3041DS"
@@ -77,10 +78,12 @@ config TARGET_MPC8572DS
config TARGET_P1010RDB
bool "Support P1010RDB"
select SUPPORT_SPL
+ select SUPPORT_TPL
config TARGET_P1022DS
bool "Support P1022DS"
select SUPPORT_SPL
+ select SUPPORT_TPL
config TARGET_P1023RDB
bool "Support P1023RDB"
@@ -88,10 +91,12 @@ config TARGET_P1023RDB
config TARGET_P1_P2_RDB
bool "Support P1_P2_RDB"
select SUPPORT_SPL
+ select SUPPORT_TPL
config TARGET_P1_P2_RDB_PC
bool "Support p1_p2_rdb_pc"
select SUPPORT_SPL
+ select SUPPORT_TPL
config TARGET_P1_TWR
bool "Support p1_twr"
--
1.9.1
More information about the U-Boot
mailing list