blob: c4cc41434b0b4ca5b4f924b5e26c81930c9c626a [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
Rick Chen6eedd922017-12-26 13:55:49 +08002#
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>
Rick Chen6eedd922017-12-26 13:55:49 +08008
9obj-$(CONFIG_CMD_BOOTM) += bootm.o
Atish Patra583b4092019-05-06 17:49:39 -070010obj-$(CONFIG_CMD_BOOTI) += bootm.o image.o
Rick Chen6eedd922017-12-26 13:55:49 +080011obj-$(CONFIG_CMD_GO) += boot.o
12obj-y += cache.o
Lukas Auer61346592019-08-21 21:14:43 +020013ifeq ($(CONFIG_$(SPL_)RISCV_MMODE),y)
Bin Meng614b1d82021-05-11 20:04:12 +080014obj-$(CONFIG_$(SPL_)SIFIVE_CLINT) += sifive_clint.o
Rick Chen6df4ed02019-04-02 15:56:39 +080015obj-$(CONFIG_ANDES_PLIC) += andes_plic.o
Lukas Auer61346592019-08-21 21:14:43 +020016else
Bin Mengee3bcd02020-03-09 19:35:28 -070017obj-$(CONFIG_SBI) += sbi.o
Lukas Auer61346592019-08-21 21:14:43 +020018obj-$(CONFIG_SBI_IPI) += sbi_ipi.o
19endif
Rick Chen6eedd922017-12-26 13:55:49 +080020obj-y += interrupts.o
Bin Mengc71f1002020-06-22 22:29:44 -070021ifeq ($(CONFIG_$(SPL_)SYSRESET),)
Bin Mengde8d80e2018-09-26 06:55:22 -070022obj-y += reset.o
Bin Mengc71f1002020-06-22 22:29:44 -070023endif
Alexander Graf3bb8f012018-04-23 07:59:43 +020024obj-y += setjmp.o
Bin Mengb161f902020-04-16 08:09:30 -070025obj-$(CONFIG_$(SPL_)SMP) += smp.o
Lukas Auer396f0bd2019-08-21 21:14:45 +020026obj-$(CONFIG_SPL_BUILD) += spl.o
Atish Patra111b8042020-04-21 11:15:01 -070027obj-y += fdt_fixup.o
Alexander Graf31bdde92018-04-23 07:59:45 +020028
29# For building EFI apps
Joel Peshkin369d87a2021-04-11 11:21:58 +020030CFLAGS_NON_EFI := -fstack-protector-strong
Alexander Graf31bdde92018-04-23 07:59:45 +020031CFLAGS_$(EFI_CRT0) := $(CFLAGS_EFI)
32CFLAGS_REMOVE_$(EFI_CRT0) := $(CFLAGS_NON_EFI)
33
34CFLAGS_$(EFI_RELOC) := $(CFLAGS_EFI)
35CFLAGS_REMOVE_$(EFI_RELOC) := $(CFLAGS_NON_EFI)
36
37extra-$(CONFIG_CMD_BOOTEFI_HELLO_COMPILE) += $(EFI_CRT0) $(EFI_RELOC)
38extra-$(CONFIG_CMD_BOOTEFI_SELFTEST) += $(EFI_CRT0) $(EFI_RELOC)
39extra-$(CONFIG_EFI) += $(EFI_CRT0) $(EFI_RELOC)
Heinrich Schuchardt23caf662021-03-27 12:37:04 +010040
41obj-$(CONFIG_$(SPL_TPL_)USE_ARCH_MEMSET) += memset.o
42obj-$(CONFIG_$(SPL_TPL_)USE_ARCH_MEMMOVE) += memmove.o
43obj-$(CONFIG_$(SPL_TPL_)USE_ARCH_MEMCPY) += memcpy.o