arch: 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:
@@ -2,7 +2,7 @@
|
||||
|
||||
head-y := arch/mips/cpu/start.o
|
||||
|
||||
ifeq ($(CONFIG_SPL_BUILD),y)
|
||||
ifeq ($(CONFIG_XPL_BUILD),y)
|
||||
head-$(CONFIG_ARCH_JZ47XX) := arch/mips/mach-jz47xx/start.o
|
||||
head-$(CONFIG_SOC_MT7621) := arch/mips/mach-mtmips/mt7621/spl/start.o
|
||||
endif
|
||||
|
||||
@@ -53,7 +53,7 @@ PLATFORM_ELFFLAGS += -B mips $(OBJCOPYFLAGS)
|
||||
# LDFLAGS_vmlinux += -G 0 -static -n -nostdlib
|
||||
# MODFLAGS += -mlong-calls
|
||||
#
|
||||
ifndef CONFIG_SPL_BUILD
|
||||
ifndef CONFIG_XPL_BUILD
|
||||
OBJCOPYFLAGS += -j .data.reloc -j .dtb.init.rodata
|
||||
LDFLAGS_FINAL += --emit-relocs
|
||||
endif
|
||||
|
||||
@@ -12,6 +12,6 @@ obj-y += traps.o
|
||||
|
||||
obj-$(CONFIG_CMD_BOOTM) += bootm.o
|
||||
obj-$(CONFIG_CMD_GO) += boot.o
|
||||
obj-$(CONFIG_SPL_BUILD) += spl.o
|
||||
obj-$(CONFIG_XPL_BUILD) += spl.o
|
||||
|
||||
lib-$(CONFIG_USE_PRIVATE_LIBGCC) += ashldi3.o ashrdi3.o lshrdi3.o udivdi3.o
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
|
||||
extra-$(CONFIG_SPL_BUILD) := start.o
|
||||
extra-$(CONFIG_XPL_BUILD) := start.o
|
||||
|
||||
obj-$(CONFIG_SOC_JZ4780) += jz4780/
|
||||
|
||||
@@ -94,7 +94,7 @@ void jz4780_efuse_init(u32 ahb2_rate);
|
||||
|
||||
void jz4780_tcu_wdt_start(void);
|
||||
|
||||
#ifdef CONFIG_SPL_BUILD
|
||||
#ifdef CONFIG_XPL_BUILD
|
||||
int jz_mmc_init(void __iomem *base);
|
||||
#endif
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
#include <mmc.h>
|
||||
#include <spl.h>
|
||||
|
||||
#ifdef CONFIG_SPL_BUILD
|
||||
#ifdef CONFIG_XPL_BUILD
|
||||
/* Pointer to the global data structure for SPL */
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
gd_t gdata __section(".bss");
|
||||
@@ -73,7 +73,7 @@ void board_init_f(ulong dummy)
|
||||
|
||||
hang();
|
||||
}
|
||||
#endif /* CONFIG_SPL_BUILD */
|
||||
#endif /* CONFIG_XPL_BUILD */
|
||||
|
||||
phys_addr_t board_get_usable_ram_top(phys_size_t total_size)
|
||||
{
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
.globl _start
|
||||
.text
|
||||
_start:
|
||||
#ifdef CONFIG_SPL_BUILD
|
||||
#ifdef CONFIG_XPL_BUILD
|
||||
|
||||
/* magic value ("MSPL") */
|
||||
.word 0x4d53504c
|
||||
@@ -95,4 +95,4 @@ enable_caches:
|
||||
.end enable_caches
|
||||
|
||||
#endif /* CONFIG_SOC_JZ4780 */
|
||||
#endif /* !CONFIG_SPL_BUILD */
|
||||
#endif /* !CONFIG_XPL_BUILD */
|
||||
|
||||
@@ -5,7 +5,7 @@ obj-y += cpu.o
|
||||
ifneq ($(CONFIG_SOC_MT7621),y)
|
||||
obj-y += ddr_init.o
|
||||
obj-y += ddr_cal.o
|
||||
obj-$(CONFIG_SPL_BUILD) += spl.o
|
||||
obj-$(CONFIG_XPL_BUILD) += spl.o
|
||||
endif
|
||||
|
||||
obj-$(CONFIG_SOC_MT7620) += mt7620/
|
||||
|
||||
@@ -21,7 +21,7 @@ int dram_init(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
#ifndef CONFIG_XPL_BUILD
|
||||
static int last_stage_init(void)
|
||||
{
|
||||
void *src, *dst;
|
||||
|
||||
@@ -5,6 +5,6 @@ obj-y += init.o
|
||||
obj-y += dram.o
|
||||
obj-y += serial.o
|
||||
|
||||
ifndef CONFIG_SPL_BUILD
|
||||
ifndef CONFIG_XPL_BUILD
|
||||
obj-y += sysc.o
|
||||
endif
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
obj-y += init.o
|
||||
obj-y += serial.o
|
||||
|
||||
ifeq ($(CONFIG_SPL_BUILD),y)
|
||||
ifeq ($(CONFIG_XPL_BUILD),y)
|
||||
ifeq ($(CONFIG_TPL_BUILD),y)
|
||||
obj-y += tpl/
|
||||
else
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
obj-y += lowlevel_init.o
|
||||
obj-y += init.o
|
||||
obj-y += ddr.o
|
||||
obj-$(CONFIG_SPL_BUILD) += serial.o
|
||||
obj-$(CONFIG_XPL_BUILD) += serial.o
|
||||
|
||||
Reference in New Issue
Block a user