1# SPDX-License-Identifier: GPL-2.0+ 2# 3# (C) Copyright 2000-2006 4# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 5# 6# Copyright (C) 2017 Andes Technology Corporation 7# Rick Chen, Andes Technology Corporation <rick@andestech.com> 8 9obj-$(CONFIG_CMD_BOOTM) += bootm.o 10obj-$(CONFIG_CMD_BOOTI) += bootm.o image.o 11obj-$(CONFIG_CMD_GO) += boot.o 12obj-y += cache.o 13ifeq ($(CONFIG_$(SPL_)RISCV_MMODE),y) 14obj-$(CONFIG_SIFIVE_CLINT) += sifive_clint.o 15obj-$(CONFIG_ANDES_PLIC) += andes_plic.o 16else 17obj-$(CONFIG_SBI) += sbi.o 18obj-$(CONFIG_SBI_IPI) += sbi_ipi.o 19endif 20obj-y += interrupts.o 21ifeq ($(CONFIG_$(SPL_)SYSRESET),) 22obj-y += reset.o 23endif 24obj-y += setjmp.o 25obj-$(CONFIG_$(SPL_)SMP) += smp.o 26obj-$(CONFIG_SPL_BUILD) += spl.o 27obj-y += fdt_fixup.o 28 29# For building EFI apps 30CFLAGS_$(EFI_CRT0) := $(CFLAGS_EFI) 31CFLAGS_REMOVE_$(EFI_CRT0) := $(CFLAGS_NON_EFI) 32 33CFLAGS_$(EFI_RELOC) := $(CFLAGS_EFI) 34CFLAGS_REMOVE_$(EFI_RELOC) := $(CFLAGS_NON_EFI) 35 36extra-$(CONFIG_CMD_BOOTEFI_HELLO_COMPILE) += $(EFI_CRT0) $(EFI_RELOC) 37extra-$(CONFIG_CMD_BOOTEFI_SELFTEST) += $(EFI_CRT0) $(EFI_RELOC) 38extra-$(CONFIG_EFI) += $(EFI_CRT0) $(EFI_RELOC) 39