Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
Rick Chen | 8bbb290 | 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 | 8bbb290 | 2017-12-26 13:55:49 +0800 | [diff] [blame] | 8 | |
| 9 | obj-$(CONFIG_CMD_BOOTM) += bootm.o |
Atish Patra | 3cedc97 | 2019-05-06 17:49:39 -0700 | [diff] [blame] | 10 | obj-$(CONFIG_CMD_BOOTI) += bootm.o image.o |
Rick Chen | 8bbb290 | 2017-12-26 13:55:49 +0800 | [diff] [blame] | 11 | obj-$(CONFIG_CMD_GO) += boot.o |
| 12 | obj-y += cache.o |
Lukas Auer | fbfd92b | 2019-08-21 21:14:43 +0200 | [diff] [blame] | 13 | ifeq ($(CONFIG_$(SPL_)RISCV_MMODE),y) |
Bin Meng | a6d7e8c | 2021-05-11 20:04:12 +0800 | [diff] [blame^] | 14 | obj-$(CONFIG_$(SPL_)SIFIVE_CLINT) += sifive_clint.o |
Rick Chen | 0d38946 | 2019-04-02 15:56:39 +0800 | [diff] [blame] | 15 | obj-$(CONFIG_ANDES_PLIC) += andes_plic.o |
Lukas Auer | fbfd92b | 2019-08-21 21:14:43 +0200 | [diff] [blame] | 16 | else |
Bin Meng | f58fc34 | 2020-03-09 19:35:28 -0700 | [diff] [blame] | 17 | obj-$(CONFIG_SBI) += sbi.o |
Lukas Auer | fbfd92b | 2019-08-21 21:14:43 +0200 | [diff] [blame] | 18 | obj-$(CONFIG_SBI_IPI) += sbi_ipi.o |
| 19 | endif |
Rick Chen | 8bbb290 | 2017-12-26 13:55:49 +0800 | [diff] [blame] | 20 | obj-y += interrupts.o |
Bin Meng | fd31e4f | 2020-06-22 22:29:44 -0700 | [diff] [blame] | 21 | ifeq ($(CONFIG_$(SPL_)SYSRESET),) |
Bin Meng | b984ddc | 2018-09-26 06:55:22 -0700 | [diff] [blame] | 22 | obj-y += reset.o |
Bin Meng | fd31e4f | 2020-06-22 22:29:44 -0700 | [diff] [blame] | 23 | endif |
Alexander Graf | a7f99e5 | 2018-04-23 07:59:43 +0200 | [diff] [blame] | 24 | obj-y += setjmp.o |
Bin Meng | 191636e | 2020-04-16 08:09:30 -0700 | [diff] [blame] | 25 | obj-$(CONFIG_$(SPL_)SMP) += smp.o |
Lukas Auer | 8c59f20 | 2019-08-21 21:14:45 +0200 | [diff] [blame] | 26 | obj-$(CONFIG_SPL_BUILD) += spl.o |
Atish Patra | d4ea649 | 2020-04-21 11:15:01 -0700 | [diff] [blame] | 27 | obj-y += fdt_fixup.o |
Alexander Graf | 493d1e8 | 2018-04-23 07:59:45 +0200 | [diff] [blame] | 28 | |
| 29 | # For building EFI apps |
Joel Peshkin | 4e9bce1 | 2021-04-11 11:21:58 +0200 | [diff] [blame] | 30 | CFLAGS_NON_EFI := -fstack-protector-strong |
Alexander Graf | 493d1e8 | 2018-04-23 07:59:45 +0200 | [diff] [blame] | 31 | CFLAGS_$(EFI_CRT0) := $(CFLAGS_EFI) |
| 32 | CFLAGS_REMOVE_$(EFI_CRT0) := $(CFLAGS_NON_EFI) |
| 33 | |
| 34 | CFLAGS_$(EFI_RELOC) := $(CFLAGS_EFI) |
| 35 | CFLAGS_REMOVE_$(EFI_RELOC) := $(CFLAGS_NON_EFI) |
| 36 | |
| 37 | extra-$(CONFIG_CMD_BOOTEFI_HELLO_COMPILE) += $(EFI_CRT0) $(EFI_RELOC) |
| 38 | extra-$(CONFIG_CMD_BOOTEFI_SELFTEST) += $(EFI_CRT0) $(EFI_RELOC) |
| 39 | extra-$(CONFIG_EFI) += $(EFI_CRT0) $(EFI_RELOC) |
Heinrich Schuchardt | 8f0dc4c | 2021-03-27 12:37:04 +0100 | [diff] [blame] | 40 | |
| 41 | obj-$(CONFIG_$(SPL_TPL_)USE_ARCH_MEMSET) += memset.o |
| 42 | obj-$(CONFIG_$(SPL_TPL_)USE_ARCH_MEMMOVE) += memmove.o |
| 43 | obj-$(CONFIG_$(SPL_TPL_)USE_ARCH_MEMCPY) += memcpy.o |