mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-22 13:15:54 +08:00
riscv: Add new BSP cfg variants to be built with llvm/clang
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
include $(RTEMS_ROOT)/make/custom/default.cfg
|
||||
|
||||
RTEMS_CPU = riscv
|
||||
|
||||
CPU_CFLAGS = -march=rv32i -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
|
||||
@@ -0,0 +1,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
|
||||
@@ -0,0 +1,14 @@
|
||||
include $(RTEMS_ROOT)/make/custom/default.cfg
|
||||
|
||||
RTEMS_CPU = riscv
|
||||
|
||||
CPU_CFLAGS = -march=rv32im -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
|
||||
@@ -0,0 +1,14 @@
|
||||
include $(RTEMS_ROOT)/make/custom/default.cfg
|
||||
|
||||
RTEMS_CPU = riscv
|
||||
|
||||
CPU_CFLAGS = -march=rv32imac -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
|
||||
@@ -0,0 +1,14 @@
|
||||
include $(RTEMS_ROOT)/make/custom/default.cfg
|
||||
|
||||
RTEMS_CPU = riscv
|
||||
|
||||
CPU_CFLAGS = -march=rv32imafc -mabi=ilp32d
|
||||
|
||||
# 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
|
||||
@@ -0,0 +1,14 @@
|
||||
include $(RTEMS_ROOT)/make/custom/default.cfg
|
||||
|
||||
RTEMS_CPU = riscv
|
||||
|
||||
CPU_CFLAGS = -march=rv32imafd -mabi=ilp32d
|
||||
|
||||
# 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
|
||||
@@ -0,0 +1,14 @@
|
||||
include $(RTEMS_ROOT)/make/custom/default.cfg
|
||||
|
||||
RTEMS_CPU = riscv
|
||||
|
||||
CPU_CFLAGS = -march=rv32imafdc -mabi=ilp32d
|
||||
|
||||
# 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
|
||||
@@ -0,0 +1,14 @@
|
||||
include $(RTEMS_ROOT)/make/custom/default.cfg
|
||||
|
||||
RTEMS_CPU = riscv
|
||||
|
||||
CPU_CFLAGS = -march=rv64imafdc -mabi=lp64d
|
||||
|
||||
# Clang-related flags
|
||||
CPU_CFLAGS += -target riscv64-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
|
||||
Reference in New Issue
Block a user