2018-05-06 21:58:06 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2017-12-26 05:55:49 +00:00
|
|
|
#
|
|
|
|
# (C) Copyright 2000-2006
|
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
#
|
|
|
|
# Copyright (C) 2017 Andes Technology Corporation
|
|
|
|
# Rick Chen, Andes Technology Corporation <rick@andestech.com>
|
|
|
|
|
|
|
|
obj-$(CONFIG_CMD_BOOTM) += bootm.o
|
2019-05-07 00:49:39 +00:00
|
|
|
obj-$(CONFIG_CMD_BOOTI) += bootm.o image.o
|
2017-12-26 05:55:49 +00:00
|
|
|
obj-$(CONFIG_CMD_GO) += boot.o
|
|
|
|
obj-y += cache.o
|
2021-09-01 07:01:41 +00:00
|
|
|
obj-$(CONFIG_SIFIVE_CACHE) += sifive_cache.o
|
2019-08-21 19:14:43 +00:00
|
|
|
ifeq ($(CONFIG_$(SPL_)RISCV_MMODE),y)
|
2021-05-11 12:04:12 +00:00
|
|
|
obj-$(CONFIG_$(SPL_)SIFIVE_CLINT) += sifive_clint.o
|
2022-10-25 15:03:50 +00:00
|
|
|
obj-$(CONFIG_ANDES_PLICSW) += andes_plicsw.o
|
2019-08-21 19:14:43 +00:00
|
|
|
else
|
2020-03-10 02:35:28 +00:00
|
|
|
obj-$(CONFIG_SBI) += sbi.o
|
2019-08-21 19:14:43 +00:00
|
|
|
obj-$(CONFIG_SBI_IPI) += sbi_ipi.o
|
|
|
|
endif
|
2017-12-26 05:55:49 +00:00
|
|
|
obj-y += interrupts.o
|
2020-06-23 05:29:44 +00:00
|
|
|
ifeq ($(CONFIG_$(SPL_)SYSRESET),)
|
2018-09-26 13:55:22 +00:00
|
|
|
obj-y += reset.o
|
2020-06-23 05:29:44 +00:00
|
|
|
endif
|
2018-04-23 05:59:43 +00:00
|
|
|
obj-y += setjmp.o
|
2020-04-16 15:09:30 +00:00
|
|
|
obj-$(CONFIG_$(SPL_)SMP) += smp.o
|
2019-08-21 19:14:45 +00:00
|
|
|
obj-$(CONFIG_SPL_BUILD) += spl.o
|
2020-04-21 18:15:01 +00:00
|
|
|
obj-y += fdt_fixup.o
|
2018-04-23 05:59:45 +00:00
|
|
|
|
|
|
|
# For building EFI apps
|
2021-04-11 09:21:58 +00:00
|
|
|
CFLAGS_NON_EFI := -fstack-protector-strong
|
2018-04-23 05:59:45 +00:00
|
|
|
CFLAGS_$(EFI_CRT0) := $(CFLAGS_EFI)
|
|
|
|
CFLAGS_REMOVE_$(EFI_CRT0) := $(CFLAGS_NON_EFI)
|
|
|
|
|
|
|
|
CFLAGS_$(EFI_RELOC) := $(CFLAGS_EFI)
|
|
|
|
CFLAGS_REMOVE_$(EFI_RELOC) := $(CFLAGS_NON_EFI)
|
|
|
|
|
|
|
|
extra-$(CONFIG_CMD_BOOTEFI_HELLO_COMPILE) += $(EFI_CRT0) $(EFI_RELOC)
|
|
|
|
extra-$(CONFIG_CMD_BOOTEFI_SELFTEST) += $(EFI_CRT0) $(EFI_RELOC)
|
|
|
|
extra-$(CONFIG_EFI) += $(EFI_CRT0) $(EFI_RELOC)
|
2021-03-27 11:37:04 +00:00
|
|
|
|
|
|
|
obj-$(CONFIG_$(SPL_TPL_)USE_ARCH_MEMSET) += memset.o
|
|
|
|
obj-$(CONFIG_$(SPL_TPL_)USE_ARCH_MEMMOVE) += memmove.o
|
|
|
|
obj-$(CONFIG_$(SPL_TPL_)USE_ARCH_MEMCPY) += memcpy.o
|