[PATCH] bsps/riscv_generic: Rename and add riscv BSPs to match supported RISC-V ISA variants
Hesham Almatary
Hesham.Almatary at cl.cam.ac.uk
Mon May 28 11:14:12 UTC 2018
---
bsps/riscv/riscv_generic/config/riscv64_generic.cfg | 7 -------
bsps/riscv/riscv_generic/config/riscv_generic.cfg | 7 -------
bsps/riscv/riscv_generic/config/rv32i.cfg | 7 +++++++
bsps/riscv/riscv_generic/config/rv32iac.cfg | 7 +++++++
bsps/riscv/riscv_generic/config/rv32im.cfg | 7 +++++++
bsps/riscv/riscv_generic/config/rv32imac.cfg | 7 +++++++
bsps/riscv/riscv_generic/config/rv32imafc.cfg | 7 +++++++
bsps/riscv/riscv_generic/config/rv64imac.cfg | 7 +++++++
bsps/riscv/riscv_generic/config/rv64imafdc.cfg | 7 +++++++
9 files changed, 49 insertions(+), 14 deletions(-)
delete mode 100644 bsps/riscv/riscv_generic/config/riscv64_generic.cfg
delete mode 100644 bsps/riscv/riscv_generic/config/riscv_generic.cfg
create mode 100644 bsps/riscv/riscv_generic/config/rv32i.cfg
create mode 100644 bsps/riscv/riscv_generic/config/rv32iac.cfg
create mode 100644 bsps/riscv/riscv_generic/config/rv32im.cfg
create mode 100644 bsps/riscv/riscv_generic/config/rv32imac.cfg
create mode 100644 bsps/riscv/riscv_generic/config/rv32imafc.cfg
create mode 100644 bsps/riscv/riscv_generic/config/rv64imac.cfg
create mode 100644 bsps/riscv/riscv_generic/config/rv64imafdc.cfg
diff --git a/bsps/riscv/riscv_generic/config/riscv64_generic.cfg b/bsps/riscv/riscv_generic/config/riscv64_generic.cfg
deleted file mode 100644
index 04897e5..0000000
--- a/bsps/riscv/riscv_generic/config/riscv64_generic.cfg
+++ /dev/null
@@ -1,7 +0,0 @@
-include $(RTEMS_ROOT)/make/custom/default.cfg
-
-RTEMS_CPU = riscv
-
-CPU_CFLAGS = -mcmodel=medany
-
-CFLAGS_OPTIMIZE_V ?= -O0 -g
diff --git a/bsps/riscv/riscv_generic/config/riscv_generic.cfg b/bsps/riscv/riscv_generic/config/riscv_generic.cfg
deleted file mode 100644
index 785ac42..0000000
--- a/bsps/riscv/riscv_generic/config/riscv_generic.cfg
+++ /dev/null
@@ -1,7 +0,0 @@
-include $(RTEMS_ROOT)/make/custom/default.cfg
-
-RTEMS_CPU = riscv
-
-CPU_CFLAGS =
-
-CFLAGS_OPTIMIZE_V ?= -Os
diff --git a/bsps/riscv/riscv_generic/config/rv32i.cfg b/bsps/riscv/riscv_generic/config/rv32i.cfg
new file mode 100644
index 0000000..44a7416
--- /dev/null
+++ b/bsps/riscv/riscv_generic/config/rv32i.cfg
@@ -0,0 +1,7 @@
+include $(RTEMS_ROOT)/make/custom/default.cfg
+
+RTEMS_CPU = riscv
+
+CPU_CFLAGS = -march=rv32i -mabi=ilp32
+
+CFLAGS_OPTIMIZE_V ?= -Os
diff --git a/bsps/riscv/riscv_generic/config/rv32iac.cfg b/bsps/riscv/riscv_generic/config/rv32iac.cfg
new file mode 100644
index 0000000..c321aef
--- /dev/null
+++ b/bsps/riscv/riscv_generic/config/rv32iac.cfg
@@ -0,0 +1,7 @@
+include $(RTEMS_ROOT)/make/custom/default.cfg
+
+RTEMS_CPU = riscv
+
+CPU_CFLAGS = -march=rv32iac -mabi=ilp32
+
+CFLAGS_OPTIMIZE_V ?= -Os
diff --git a/bsps/riscv/riscv_generic/config/rv32im.cfg b/bsps/riscv/riscv_generic/config/rv32im.cfg
new file mode 100644
index 0000000..c4171ba
--- /dev/null
+++ b/bsps/riscv/riscv_generic/config/rv32im.cfg
@@ -0,0 +1,7 @@
+include $(RTEMS_ROOT)/make/custom/default.cfg
+
+RTEMS_CPU = riscv
+
+CPU_CFLAGS = -march=rv32im -mabi=ilp32
+
+CFLAGS_OPTIMIZE_V ?= -Os
diff --git a/bsps/riscv/riscv_generic/config/rv32imac.cfg b/bsps/riscv/riscv_generic/config/rv32imac.cfg
new file mode 100644
index 0000000..644cadb
--- /dev/null
+++ b/bsps/riscv/riscv_generic/config/rv32imac.cfg
@@ -0,0 +1,7 @@
+include $(RTEMS_ROOT)/make/custom/default.cfg
+
+RTEMS_CPU = riscv
+
+CPU_CFLAGS = -march=rv32imac -mabi=ilp32
+
+CFLAGS_OPTIMIZE_V ?= -Os
diff --git a/bsps/riscv/riscv_generic/config/rv32imafc.cfg b/bsps/riscv/riscv_generic/config/rv32imafc.cfg
new file mode 100644
index 0000000..2e24a2c
--- /dev/null
+++ b/bsps/riscv/riscv_generic/config/rv32imafc.cfg
@@ -0,0 +1,7 @@
+include $(RTEMS_ROOT)/make/custom/default.cfg
+
+RTEMS_CPU = riscv
+
+CPU_CFLAGS = -march=rv32imafc -mabi=ilp32f
+
+CFLAGS_OPTIMIZE_V ?= -Os
diff --git a/bsps/riscv/riscv_generic/config/rv64imac.cfg b/bsps/riscv/riscv_generic/config/rv64imac.cfg
new file mode 100644
index 0000000..6fc31c1
--- /dev/null
+++ b/bsps/riscv/riscv_generic/config/rv64imac.cfg
@@ -0,0 +1,7 @@
+include $(RTEMS_ROOT)/make/custom/default.cfg
+
+RTEMS_CPU = riscv
+
+CPU_CFLAGS = -mcmodel=medany -march=rv64imac -mabi=lp64
+
+CFLAGS_OPTIMIZE_V ?= -O0 -g
diff --git a/bsps/riscv/riscv_generic/config/rv64imafdc.cfg b/bsps/riscv/riscv_generic/config/rv64imafdc.cfg
new file mode 100644
index 0000000..9caac56
--- /dev/null
+++ b/bsps/riscv/riscv_generic/config/rv64imafdc.cfg
@@ -0,0 +1,7 @@
+include $(RTEMS_ROOT)/make/custom/default.cfg
+
+RTEMS_CPU = riscv
+
+CPU_CFLAGS = -mcmodel=medany -march=rv64imafdc -mabi=lp64d
+
+CFLAGS_OPTIMIZE_V ?= -O0 -g
--
2.7.4
More information about the devel
mailing list