board: Use CONFIG_XPL_BUILD instead of CONFIG_SPL_BUILD
Use the new symbol to refer to any 'SPL' build, including TPL and VPL Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -147,7 +147,7 @@ static int coral_get_str(struct udevice *dev, int id, size_t size, char *val)
|
||||
{
|
||||
int ret;
|
||||
|
||||
if (IS_ENABLED(CONFIG_SPL_BUILD))
|
||||
if (IS_ENABLED(CONFIG_XPL_BUILD))
|
||||
return -ENOSYS;
|
||||
|
||||
switch (id) {
|
||||
|
@@ -7,7 +7,7 @@
|
||||
#include <init.h>
|
||||
#include <asm/arch-rockchip/clock.h>
|
||||
|
||||
#ifdef CONFIG_SPL_BUILD
|
||||
#ifdef CONFIG_XPL_BUILD
|
||||
/* provided to defeat compiler optimisation in board_init_f() */
|
||||
void gru_dummy_function(int i)
|
||||
{
|
||||
@@ -33,7 +33,7 @@ int board_early_init_f(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
#ifndef CONFIG_XPL_BUILD
|
||||
int board_early_init_r(void)
|
||||
{
|
||||
struct udevice *clk;
|
||||
|
@@ -5,7 +5,7 @@
|
||||
|
||||
obj-y += imx8mq_phanbell.o
|
||||
|
||||
ifdef CONFIG_SPL_BUILD
|
||||
ifdef CONFIG_XPL_BUILD
|
||||
obj-y += spl.o
|
||||
obj-$(CONFIG_IMX8M_LPDDR4) += lpddr4_timing_1g.o
|
||||
endif
|
||||
|
@@ -19,7 +19,7 @@
|
||||
* There is a U-Boot driver for this but it may need to add support for the
|
||||
* 'voltage-table' property.
|
||||
*/
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
#ifndef CONFIG_XPL_BUILD
|
||||
#if !CONFIG_IS_ENABLED(ROCKCHIP_BACK_TO_BROM)
|
||||
static int veyron_init(void)
|
||||
{
|
||||
|
Reference in New Issue
Block a user