Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
Rick Chen | 6eedd92 | 2017-12-26 13:55:49 +0800 | [diff] [blame] | 2 | # |
| 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 Chen | 6eedd92 | 2017-12-26 13:55:49 +0800 | [diff] [blame] | 8 | |
Tom Rini | 793921e | 2024-04-18 08:29:35 -0600 | [diff] [blame] | 9 | obj-$(CONFIG_CMD_BOOTM) += bootm.o |
Atish Patra | 583b409 | 2019-05-06 17:49:39 -0700 | [diff] [blame] | 10 | obj-$(CONFIG_CMD_BOOTI) += bootm.o image.o |
Rick Chen | 6eedd92 | 2017-12-26 13:55:49 +0800 | [diff] [blame] | 11 | obj-$(CONFIG_CMD_GO) += boot.o |
| 12 | obj-y += cache.o |
Zong Li | c39544c | 2021-09-01 15:01:41 +0800 | [diff] [blame] | 13 | obj-$(CONFIG_SIFIVE_CACHE) += sifive_cache.o |
Simon Glass | 86adc2e | 2024-09-29 19:49:53 -0600 | [diff] [blame] | 14 | ifeq ($(CONFIG_$(XPL_)RISCV_MMODE),y) |
| 15 | obj-$(CONFIG_$(XPL_)RISCV_ACLINT) += aclint_ipi.o |
Yu Chien Peter Lin | 739cd6f | 2022-10-25 23:03:50 +0800 | [diff] [blame] | 16 | obj-$(CONFIG_ANDES_PLICSW) += andes_plicsw.o |
Lukas Auer | 6134659 | 2019-08-21 21:14:43 +0200 | [diff] [blame] | 17 | else |
Bin Meng | ee3bcd0 | 2020-03-09 19:35:28 -0700 | [diff] [blame] | 18 | obj-$(CONFIG_SBI) += sbi.o |
Lukas Auer | 6134659 | 2019-08-21 21:14:43 +0200 | [diff] [blame] | 19 | obj-$(CONFIG_SBI_IPI) += sbi_ipi.o |
| 20 | endif |
Rick Chen | 6eedd92 | 2017-12-26 13:55:49 +0800 | [diff] [blame] | 21 | obj-y += interrupts.o |
Simon Glass | 86adc2e | 2024-09-29 19:49:53 -0600 | [diff] [blame] | 22 | ifeq ($(CONFIG_$(XPL_)SYSRESET),) |
Bin Meng | de8d80e | 2018-09-26 06:55:22 -0700 | [diff] [blame] | 23 | obj-y += reset.o |
Bin Meng | c71f100 | 2020-06-22 22:29:44 -0700 | [diff] [blame] | 24 | endif |
Alexander Graf | 3bb8f01 | 2018-04-23 07:59:43 +0200 | [diff] [blame] | 25 | obj-y += setjmp.o |
Simon Glass | 86adc2e | 2024-09-29 19:49:53 -0600 | [diff] [blame] | 26 | obj-$(CONFIG_$(XPL_)SMP) += smp.o |
Simon Glass | 85ed77d | 2024-09-29 19:49:46 -0600 | [diff] [blame] | 27 | obj-$(CONFIG_XPL_BUILD) += spl.o |
Atish Patra | 111b804 | 2020-04-21 11:15:01 -0700 | [diff] [blame] | 28 | obj-y += fdt_fixup.o |
Heinrich Schuchardt | 946c3fc | 2024-06-07 10:41:17 +0200 | [diff] [blame] | 29 | obj-$(CONFIG_$(SPL)CMD_BDI) += bdinfo.o |
Alexander Graf | 31bdde9 | 2018-04-23 07:59:45 +0200 | [diff] [blame] | 30 | |
| 31 | # For building EFI apps |
Joel Peshkin | 369d87a | 2021-04-11 11:21:58 +0200 | [diff] [blame] | 32 | CFLAGS_NON_EFI := -fstack-protector-strong |
Alexander Graf | 31bdde9 | 2018-04-23 07:59:45 +0200 | [diff] [blame] | 33 | CFLAGS_$(EFI_CRT0) := $(CFLAGS_EFI) |
| 34 | CFLAGS_REMOVE_$(EFI_CRT0) := $(CFLAGS_NON_EFI) |
| 35 | |
| 36 | CFLAGS_$(EFI_RELOC) := $(CFLAGS_EFI) |
| 37 | CFLAGS_REMOVE_$(EFI_RELOC) := $(CFLAGS_NON_EFI) |
| 38 | |
| 39 | extra-$(CONFIG_CMD_BOOTEFI_HELLO_COMPILE) += $(EFI_CRT0) $(EFI_RELOC) |
| 40 | extra-$(CONFIG_CMD_BOOTEFI_SELFTEST) += $(EFI_CRT0) $(EFI_RELOC) |
| 41 | extra-$(CONFIG_EFI) += $(EFI_CRT0) $(EFI_RELOC) |
Heinrich Schuchardt | 23caf66 | 2021-03-27 12:37:04 +0100 | [diff] [blame] | 42 | |
Simon Glass | 4cafa21 | 2024-09-29 19:49:54 -0600 | [diff] [blame] | 43 | obj-$(CONFIG_$(PHASE_)USE_ARCH_MEMSET) += memset.o |
| 44 | obj-$(CONFIG_$(PHASE_)USE_ARCH_MEMMOVE) += memmove.o |
| 45 | obj-$(CONFIG_$(PHASE_)USE_ARCH_MEMCPY) += memcpy.o |
| 46 | obj-$(CONFIG_$(PHASE_)USE_ARCH_STRLEN) += strlen_zbb.o |
| 47 | obj-$(CONFIG_$(PHASE_)USE_ARCH_STRCMP) += strcmp_zbb.o |
| 48 | obj-$(CONFIG_$(PHASE_)USE_ARCH_STRNCMP) += strncmp_zbb.o |
Kautuk Consul | c86cb4a | 2022-12-07 17:12:35 +0530 | [diff] [blame] | 49 | |
Simon Glass | 4cafa21 | 2024-09-29 19:49:54 -0600 | [diff] [blame] | 50 | obj-$(CONFIG_$(PHASE_)SEMIHOSTING) += semihosting.o |