Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
riscv: Add new BSP cfg variants to be built with llvm/clang
- Loading branch information
1 parent
ce5988e
commit 94481ce
Showing
8 changed files
with
112 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |