summaryrefslogtreecommitdiffstats
path: root/src/arch/riscv32/Makefile
blob: 0d8b7ef50b2c92a1b4aa50cebe06ea08f5fc6245 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Specify compressor
#
ZBIN		= $(ZBIN32)

# RISCV32-specific directories containing source files
#
SRCDIRS		+= arch/riscv32/core
SRCDIRS		+= arch/riscv32/libgcc

# RISCV32-specific flags
#
CFLAGS		+= -march=rv32gc -mabi=ilp32d
ASFLAGS		+= -march=rv32gc -mabi=ilp32d
LDFLAGS		+= -m elf32lriscv

# Include common RISCV Makefile
#
MAKEDEPS	+= arch/riscv/Makefile
include arch/riscv/Makefile

# Include platform-specific Makefile
#
MAKEDEPS	+= arch/riscv32/Makefile.$(PLATFORM)
include arch/riscv32/Makefile.$(PLATFORM)