blob: 608118135d7a18c1cb0b597a3c2f6991ec7fae69 [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
Tom Rini793921e2024-04-18 08:29:35 -06009obj-$(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
Zong Lic39544c2021-09-01 15:01:41 +080013obj-$(CONFIG_SIFIVE_CACHE) += sifive_cache.o
Simon Glass86adc2e2024-09-29 19:49:53 -060014ifeq ($(CONFIG_$(XPL_)RISCV_MMODE),y)
15obj-$(CONFIG_$(XPL_)RISCV_ACLINT) += aclint_ipi.o
Yu Chien Peter Lin739cd6f2022-10-25 23:03:50 +080016obj-$(CONFIG_ANDES_PLICSW) += andes_plicsw.o
Lukas Auer61346592019-08-21 21:14:43 +020017else
Bin Mengee3bcd02020-03-09 19:35:28 -070018obj-$(CONFIG_SBI) += sbi.o
Lukas Auer61346592019-08-21 21:14:43 +020019obj-$(CONFIG_SBI_IPI) += sbi_ipi.o
20endif
Rick Chen6eedd922017-12-26 13:55:49 +080021obj-y += interrupts.o
Simon Glass86adc2e2024-09-29 19:49:53 -060022ifeq ($(CONFIG_$(XPL_)SYSRESET),)
Bin Mengde8d80e2018-09-26 06:55:22 -070023obj-y += reset.o
Bin Mengc71f1002020-06-22 22:29:44 -070024endif
Alexander Graf3bb8f012018-04-23 07:59:43 +020025obj-y += setjmp.o
Simon Glass86adc2e2024-09-29 19:49:53 -060026obj-$(CONFIG_$(XPL_)SMP) += smp.o
Simon Glass85ed77d2024-09-29 19:49:46 -060027obj-$(CONFIG_XPL_BUILD) += spl.o
Atish Patra111b8042020-04-21 11:15:01 -070028obj-y += fdt_fixup.o
Heinrich Schuchardt946c3fc2024-06-07 10:41:17 +020029obj-$(CONFIG_$(SPL)CMD_BDI) += bdinfo.o
Alexander Graf31bdde92018-04-23 07:59:45 +020030
31# For building EFI apps
Joel Peshkin369d87a2021-04-11 11:21:58 +020032CFLAGS_NON_EFI := -fstack-protector-strong
Alexander Graf31bdde92018-04-23 07:59:45 +020033CFLAGS_$(EFI_CRT0) := $(CFLAGS_EFI)
34CFLAGS_REMOVE_$(EFI_CRT0) := $(CFLAGS_NON_EFI)
35
36CFLAGS_$(EFI_RELOC) := $(CFLAGS_EFI)
37CFLAGS_REMOVE_$(EFI_RELOC) := $(CFLAGS_NON_EFI)
38
39extra-$(CONFIG_CMD_BOOTEFI_HELLO_COMPILE) += $(EFI_CRT0) $(EFI_RELOC)
40extra-$(CONFIG_CMD_BOOTEFI_SELFTEST) += $(EFI_CRT0) $(EFI_RELOC)
41extra-$(CONFIG_EFI) += $(EFI_CRT0) $(EFI_RELOC)
Heinrich Schuchardt23caf662021-03-27 12:37:04 +010042
Simon Glass4cafa212024-09-29 19:49:54 -060043obj-$(CONFIG_$(PHASE_)USE_ARCH_MEMSET) += memset.o
44obj-$(CONFIG_$(PHASE_)USE_ARCH_MEMMOVE) += memmove.o
45obj-$(CONFIG_$(PHASE_)USE_ARCH_MEMCPY) += memcpy.o
46obj-$(CONFIG_$(PHASE_)USE_ARCH_STRLEN) += strlen_zbb.o
47obj-$(CONFIG_$(PHASE_)USE_ARCH_STRCMP) += strcmp_zbb.o
48obj-$(CONFIG_$(PHASE_)USE_ARCH_STRNCMP) += strncmp_zbb.o
Kautuk Consulc86cb4a2022-12-07 17:12:35 +053049
Simon Glass4cafa212024-09-29 19:49:54 -060050obj-$(CONFIG_$(PHASE_)SEMIHOSTING) += semihosting.o