1 # SPDX-License-Identifier: GPL-2.0+
3 # (C) Copyright 2000-2006
6 # Copyright (C) 2017 Andes Technology Corporation
9 obj-$(CONFIG_CMD_BOOTM) += bootm.o
10 obj-$(CONFIG_CMD_BOOTI) += bootm.o image.o
11 obj-$(CONFIG_CMD_GO) += boot.o
13 ifeq ($(CONFIG_$(SPL_)RISCV_MMODE),y)
14 obj-$(CONFIG_SIFIVE_CLINT) += sifive_clint.o
15 obj-$(CONFIG_ANDES_PLIC) += andes_plic.o
17 obj-$(CONFIG_SBI) += sbi.o
18 obj-$(CONFIG_SBI_IPI) += sbi_ipi.o
21 ifeq ($(CONFIG_$(SPL_)SYSRESET),)
25 obj-$(CONFIG_$(SPL_)SMP) += smp.o
26 obj-$(CONFIG_SPL_BUILD) += spl.o
29 # For building EFI apps
30 CFLAGS_NON_EFI := -fstack-protector-strong
31 CFLAGS_$(EFI_CRT0) := $(CFLAGS_EFI)
32 CFLAGS_REMOVE_$(EFI_CRT0) := $(CFLAGS_NON_EFI)
34 CFLAGS_$(EFI_RELOC) := $(CFLAGS_EFI)
35 CFLAGS_REMOVE_$(EFI_RELOC) := $(CFLAGS_NON_EFI)
37 extra-$(CONFIG_CMD_BOOTEFI_HELLO_COMPILE) += $(EFI_CRT0) $(EFI_RELOC)
38 extra-$(CONFIG_CMD_BOOTEFI_SELFTEST) += $(EFI_CRT0) $(EFI_RELOC)
39 extra-$(CONFIG_EFI) += $(EFI_CRT0) $(EFI_RELOC)
41 obj-$(CONFIG_$(SPL_TPL_)USE_ARCH_MEMSET) += memset.o
42 obj-$(CONFIG_$(SPL_TPL_)USE_ARCH_MEMMOVE) += memmove.o
43 obj-$(CONFIG_$(SPL_TPL_)USE_ARCH_MEMCPY) += memcpy.o