xref: /openbmc/u-boot/arch/riscv/lib/Makefile (revision dbb0696b)
1# SPDX-License-Identifier: GPL-2.0+
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>
8
9obj-$(CONFIG_CMD_BOOTM) += bootm.o
10obj-$(CONFIG_CMD_GO) += boot.o
11obj-y	+= cache.o
12obj-$(CONFIG_RISCV_RDTIME) += rdtime.o
13obj-$(CONFIG_SIFIVE_CLINT) += sifive_clint.o
14obj-y	+= interrupts.o
15obj-y	+= reset.o
16obj-y   += setjmp.o
17
18# For building EFI apps
19CFLAGS_$(EFI_CRT0) := $(CFLAGS_EFI)
20CFLAGS_REMOVE_$(EFI_CRT0) := $(CFLAGS_NON_EFI)
21
22CFLAGS_$(EFI_RELOC) := $(CFLAGS_EFI)
23CFLAGS_REMOVE_$(EFI_RELOC) := $(CFLAGS_NON_EFI)
24
25extra-$(CONFIG_CMD_BOOTEFI_HELLO_COMPILE) += $(EFI_CRT0) $(EFI_RELOC)
26extra-$(CONFIG_CMD_BOOTEFI_SELFTEST) += $(EFI_CRT0) $(EFI_RELOC)
27extra-$(CONFIG_EFI) += $(EFI_CRT0) $(EFI_RELOC)
28