1 # SPDX-License-Identifier: GPL-2.0+
3 # Copyright (C) 2017 Andes Technology Corporation.
4 # Rick Chen, Andes Technology Corporation <rick@andestech.com>
6 ifeq ($(CONFIG_ARCH_RV64I),y)
10 ifeq ($(CONFIG_ARCH_RV32I),y)
14 ifeq ($(CONFIG_RISCV_ISA_A),y)
17 ifeq ($(CONFIG_RISCV_ISA_C),y)
20 ifeq ($(CONFIG_CMODEL_MEDLOW),y)
23 ifeq ($(CONFIG_CMODEL_MEDANY),y)
27 ARCH_FLAGS = -march=$(ARCH_BASE)$(ARCH_A)$(ARCH_C) -mabi=$(ABI) \
30 PLATFORM_CPPFLAGS += $(ARCH_FLAGS)
31 CFLAGS_EFI += $(ARCH_FLAGS)
33 head-y := arch/riscv/cpu/start.o
35 libs-y += arch/riscv/cpu/
36 libs-y += arch/riscv/cpu/$(CPU)/
37 libs-y += arch/riscv/lib/