[RFC PATCH 5/5] riscv: Add a new BSP cfg variant to be built with llvm/clang
Hesham Almatary
Hesham.Almatary at cl.cam.ac.uk
Wed Oct 23 13:44:13 UTC 2019
---
bsps/riscv/riscv/config/rv64imafdc_clang.cfg | 14 ++++++++++++++
1 file changed, 14 insertions(+)
create mode 100644 bsps/riscv/riscv/config/rv64imafdc_clang.cfg
diff --git a/bsps/riscv/riscv/config/rv64imafdc_clang.cfg b/bsps/riscv/riscv/config/rv64imafdc_clang.cfg
new file mode 100644
index 0000000000..ab36c47304
--- /dev/null
+++ b/bsps/riscv/riscv/config/rv64imafdc_clang.cfg
@@ -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 -D__rtems__ --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
--
2.17.1
More information about the devel
mailing list