Now that SPL means SPL (only) and is not defined for TPL, simplify some checks for SPL.
Signed-off-by: Simon Glass <s...@chromium.org> --- arch/mips/mach-mtmips/mt7621/Makefile | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/arch/mips/mach-mtmips/mt7621/Makefile b/arch/mips/mach-mtmips/mt7621/Makefile index f48083e3559..3ddd6771051 100644 --- a/arch/mips/mach-mtmips/mt7621/Makefile +++ b/arch/mips/mach-mtmips/mt7621/Makefile @@ -3,12 +3,5 @@ obj-y += init.o obj-y += serial.o -ifeq ($(CONFIG_XPL_BUILD),y) -ifeq ($(CONFIG_TPL_BUILD),y) -obj-y += tpl/ -else -obj-y += spl/ -endif - -obj-y += sram_init.o -endif +obj-$(CONFIG_SPL_BUILD) += spl/ sram_init.o +obj-$(CONFIG_TPL_BUILD) += tpl/ sram_init.o -- 2.43.0