summaryrefslogtreecommitdiffstats
path: root/bsps/riscv/riscv/config/rv32iac_clang.cfg
blob: 071fbfd17a412e53c811f7b0f5fa100a8a0b0cba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
include $(RTEMS_ROOT)/make/custom/default.cfg

RTEMS_CPU = riscv

CPU_CFLAGS = -march=rv32iac -mabi=ilp32

# Clang-related flags
CPU_CFLAGS += -target riscv32-unknown-rtems6 --sysroot=$(NEWLIB_SYSROOT)

LDFLAGS = -Wl,--gc-sections -L$(RTEMS_BSP_LIBBSP_PATH) -L$(PROJECT_LIB) -L$(RTEMS_BSP_ARCH_LINKCMDS_PATH)

# Clang-related flags

CFLAGS_OPTIMIZE_V ?= -O0 -g -ffunction-sections -fdata-sections