blob: e5a81ba7223edb785ac986363b362b04740fc450 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
Rick Chen8bbb2902017-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 Chen8bbb2902017-12-26 13:55:49 +08008
9obj-$(CONFIG_CMD_BOOTM) += bootm.o
Atish Patra3cedc972019-05-06 17:49:39 -070010obj-$(CONFIG_CMD_BOOTI) += bootm.o image.o
Rick Chen8bbb2902017-12-26 13:55:49 +080011obj-$(CONFIG_CMD_GO) += boot.o
12obj-y += cache.o
Zong Li213ed172021-09-01 15:01:41 +080013obj-$(CONFIG_SIFIVE_CACHE) += sifive_cache.o
Lukas Auerfbfd92b2019-08-21 21:14:43 +020014ifeq ($(CONFIG_$(SPL_)RISCV_MMODE),y)
Bin Menga6d7e8c2021-05-11 20:04:12 +080015obj-$(CONFIG_$(SPL_)SIFIVE_CLINT) += sifive_clint.o
Yu Chien Peter Lina5dfa3b2022-10-25 23:03:50 +080016obj-$(CONFIG_ANDES_PLICSW) += andes_plicsw.o
Lukas Auerfbfd92b2019-08-21 21:14:43 +020017else
Bin Mengf58fc342020-03-09 19:35:28 -070018obj-$(CONFIG_SBI) += sbi.o
Lukas Auerfbfd92b2019-08-21 21:14:43 +020019obj-$(CONFIG_SBI_IPI) += sbi_ipi.o
20endif
Rick Chen8bbb2902017-12-26 13:55:49 +080021obj-y += interrupts.o
Bin Mengfd31e4f2020-06-22 22:29:44 -070022ifeq ($(CONFIG_$(SPL_)SYSRESET),)
Bin Mengb984ddc2018-09-26 06:55:22 -070023obj-y += reset.o
Bin Mengfd31e4f2020-06-22 22:29:44 -070024endif
Alexander Grafa7f99e52018-04-23 07:59:43 +020025obj-y += setjmp.o
Bin Meng191636e2020-04-16 08:09:30 -070026obj-$(CONFIG_$(SPL_)SMP) += smp.o
Lukas Auer8c59f202019-08-21 21:14:45 +020027obj-$(CONFIG_SPL_BUILD) += spl.o
Atish Patrad4ea6492020-04-21 11:15:01 -070028obj-y += fdt_fixup.o
Alexander Graf493d1e82018-04-23 07:59:45 +020029
30# For building EFI apps
Joel Peshkin4e9bce12021-04-11 11:21:58 +020031CFLAGS_NON_EFI := -fstack-protector-strong
Alexander Graf493d1e82018-04-23 07:59:45 +020032CFLAGS_$(EFI_CRT0) := $(CFLAGS_EFI)
33CFLAGS_REMOVE_$(EFI_CRT0) := $(CFLAGS_NON_EFI)
34
35CFLAGS_$(EFI_RELOC) := $(CFLAGS_EFI)
36CFLAGS_REMOVE_$(EFI_RELOC) := $(CFLAGS_NON_EFI)
37
38extra-$(CONFIG_CMD_BOOTEFI_HELLO_COMPILE) += $(EFI_CRT0) $(EFI_RELOC)
39extra-$(CONFIG_CMD_BOOTEFI_SELFTEST) += $(EFI_CRT0) $(EFI_RELOC)
40extra-$(CONFIG_EFI) += $(EFI_CRT0) $(EFI_RELOC)
Heinrich Schuchardt8f0dc4c2021-03-27 12:37:04 +010041
42obj-$(CONFIG_$(SPL_TPL_)USE_ARCH_MEMSET) += memset.o
43obj-$(CONFIG_$(SPL_TPL_)USE_ARCH_MEMMOVE) += memmove.o
44obj-$(CONFIG_$(SPL_TPL_)USE_ARCH_MEMCPY) += memcpy.o
Kautuk Consulae3527f2022-12-07 17:12:35 +053045
46obj-$(CONFIG_$(SPL_TPL_)SEMIHOSTING) += semihosting.o