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 obj-$(CONFIG_SIFIVE_CACHE) += sifive_cache.o
14 ifeq ($(CONFIG_$(SPL_)RISCV_MMODE),y)
15 obj-$(CONFIG_$(SPL_)RISCV_ACLINT) += aclint_ipi.o
16 obj-$(CONFIG_ANDES_PLICSW) += andes_plicsw.o
18 obj-$(CONFIG_SBI) += sbi.o
19 obj-$(CONFIG_SBI_IPI) += sbi_ipi.o
22 ifeq ($(CONFIG_$(SPL_)SYSRESET),)
26 obj-$(CONFIG_$(SPL_)SMP) += smp.o
27 obj-$(CONFIG_SPL_BUILD) += spl.o
30 # For building EFI apps
31 CFLAGS_NON_EFI := -fstack-protector-strong
32 CFLAGS_$(EFI_CRT0) := $(CFLAGS_EFI)
33 CFLAGS_REMOVE_$(EFI_CRT0) := $(CFLAGS_NON_EFI)
35 CFLAGS_$(EFI_RELOC) := $(CFLAGS_EFI)
36 CFLAGS_REMOVE_$(EFI_RELOC) := $(CFLAGS_NON_EFI)
38 extra-$(CONFIG_CMD_BOOTEFI_HELLO_COMPILE) += $(EFI_CRT0) $(EFI_RELOC)
39 extra-$(CONFIG_CMD_BOOTEFI_SELFTEST) += $(EFI_CRT0) $(EFI_RELOC)
40 extra-$(CONFIG_EFI) += $(EFI_CRT0) $(EFI_RELOC)
42 obj-$(CONFIG_$(SPL_TPL_)USE_ARCH_MEMSET) += memset.o
43 obj-$(CONFIG_$(SPL_TPL_)USE_ARCH_MEMMOVE) += memmove.o
44 obj-$(CONFIG_$(SPL_TPL_)USE_ARCH_MEMCPY) += memcpy.o
45 obj-$(CONFIG_$(SPL_TPL_)USE_ARCH_STRLEN) += strlen_zbb.o
46 obj-$(CONFIG_$(SPL_TPL_)USE_ARCH_STRCMP) += strcmp_zbb.o
47 obj-$(CONFIG_$(SPL_TPL_)USE_ARCH_STRNCMP) += strncmp_zbb.o
49 obj-$(CONFIG_$(SPL_TPL_)SEMIHOSTING) += semihosting.o