diff options
Diffstat (limited to 'include/spl.h')
-rw-r--r-- | include/spl.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/spl.h b/include/spl.h index b2978d8bbaf..3fc50cd9195 100644 --- a/include/spl.h +++ b/include/spl.h @@ -53,7 +53,7 @@ static inline bool xpl_is_first_phase(void) if (IS_ENABLED(CONFIG_TPL_BUILD)) return true; } else if (IS_ENABLED(CONFIG_SPL)) { - if (IS_ENABLED(CONFIG_SPL_BUILD)) + if (IS_ENABLED(CONFIG_XPL_BUILD)) return true; } else { return true; @@ -92,7 +92,7 @@ enum xpl_phase_t { * * To include code only in SPL, you might do: * - * #if defined(CONFIG_SPL_BUILD) && !defined(CONFIG_TPL_BUILD) + * #if defined(CONFIG_XPL_BUILD) && !defined(CONFIG_TPL_BUILD) * ... * #endif * @@ -104,7 +104,7 @@ enum xpl_phase_t { * * To include code only in U-Boot proper, you might do: * - * #ifndef CONFIG_SPL_BUILD + * #ifndef CONFIG_XPL_BUILD * ... * #endif * @@ -122,7 +122,7 @@ static inline enum xpl_phase_t xpl_phase(void) return PHASE_TPL; #elif defined(CONFIG_VPL_BUILD) return PHASE_VPL; -#elif defined(CONFIG_SPL_BUILD) +#elif defined(CONFIG_XPL_BUILD) return PHASE_SPL; #else DECLARE_GLOBAL_DATA_PTR; @@ -137,7 +137,7 @@ static inline enum xpl_phase_t xpl_phase(void) /* returns true if in U-Boot proper, false if in xPL */ static inline bool not_xpl(void) { -#ifdef CONFIG_SPL_BUILD +#ifdef CONFIG_XPL_BUILD return false; #endif @@ -166,7 +166,7 @@ static inline enum xpl_phase_t xpl_prev_phase(void) return PHASE_NONE; #elif defined(CONFIG_VPL_BUILD) return PHASE_TPL; /* VPL requires TPL */ -#elif defined(CONFIG_SPL_BUILD) +#elif defined(CONFIG_XPL_BUILD) return IS_ENABLED(CONFIG_VPL) ? PHASE_VPL : IS_ENABLED(CONFIG_TPL) ? PHASE_TPL : PHASE_NONE; @@ -239,7 +239,7 @@ static inline const char *xpl_prefix(enum xpl_phase_t phase) } /* A string name for SPL or TPL */ -#ifdef CONFIG_SPL_BUILD +#ifdef CONFIG_XPL_BUILD # ifdef CONFIG_TPL_BUILD # define SPL_TPL_NAME "TPL" # elif defined(CONFIG_VPL_BUILD) |