[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH 2/2] Adding necessary files for Andes platforms, cores to ena
From: |
Ruinland Chuan-Tzu Tsai |
Subject: |
[RFC PATCH 2/2] Adding necessary files for Andes platforms, cores to enable custom CSR support |
Date: |
Thu, 26 Aug 2021 23:13:32 +0800 |
From: Ruinland ChuanTzu Tsai <ruinland@andestech.com>
Since Andes A25/AX25 is an extented "target" to existing, we suggest that if a
vendor flavored RISC-V platform or core is presented, it could utilize the
fact that `configure` the way how a "target" is defined by making corresponding
mak files. `rv_custom` is presented for the mere use that the `meson.build`
uses minikconf to parse `default-configs/devices/*.mak`, we want to use
minimize the change of logics.
---
.../devices/riscv32-andes-softmmu.mak | 17 +++++++++++++++++
.../devices/riscv64-andes-softmmu.mak | 17 +++++++++++++++++
.../targets/riscv32-andes-linux-user.mak | 1 +
.../targets/riscv32-andes-softmmu.mak | 1 +
.../targets/riscv64-andes-linux-user.mak | 1 +
.../targets/riscv64-andes-softmmu.mak | 1 +
default-configs/targets/rv_custom/no_custom.mak | 0
.../rv_custom/riscv32-andes-linux-user.mak | 1 +
.../targets/rv_custom/riscv32-andes-softmmu.mak | 1 +
.../targets/rv_custom/riscv32-linux-user.mak | 1 +
.../targets/rv_custom/riscv32-softmmu.mak | 1 +
.../rv_custom/riscv64-andes-linux-user.mak | 1 +
.../targets/rv_custom/riscv64-andes-softmmu.mak | 1 +
.../targets/rv_custom/riscv64-linux-user.mak | 1 +
.../targets/rv_custom/riscv64-softmmu.mak | 1 +
15 files changed, 46 insertions(+)
create mode 100644 default-configs/devices/riscv32-andes-softmmu.mak
create mode 100644 default-configs/devices/riscv64-andes-softmmu.mak
create mode 120000 default-configs/targets/riscv32-andes-linux-user.mak
create mode 120000 default-configs/targets/riscv32-andes-softmmu.mak
create mode 120000 default-configs/targets/riscv64-andes-linux-user.mak
create mode 120000 default-configs/targets/riscv64-andes-softmmu.mak
create mode 100644 default-configs/targets/rv_custom/no_custom.mak
create mode 100644
default-configs/targets/rv_custom/riscv32-andes-linux-user.mak
create mode 100644 default-configs/targets/rv_custom/riscv32-andes-softmmu.mak
create mode 120000 default-configs/targets/rv_custom/riscv32-linux-user.mak
create mode 120000 default-configs/targets/rv_custom/riscv32-softmmu.mak
create mode 100644
default-configs/targets/rv_custom/riscv64-andes-linux-user.mak
create mode 100644 default-configs/targets/rv_custom/riscv64-andes-softmmu.mak
create mode 120000 default-configs/targets/rv_custom/riscv64-linux-user.mak
create mode 120000 default-configs/targets/rv_custom/riscv64-softmmu.mak
diff --git a/default-configs/devices/riscv32-andes-softmmu.mak
b/default-configs/devices/riscv32-andes-softmmu.mak
new file mode 100644
index 0000000..8f2e781
--- /dev/null
+++ b/default-configs/devices/riscv32-andes-softmmu.mak
@@ -0,0 +1,17 @@
+# Default configuration for riscv32-softmmu
+
+# Uncomment the following lines to disable these optional devices:
+#
+#CONFIG_PCI_DEVICES=n
+CONFIG_SEMIHOSTING=y
+CONFIG_ARM_COMPATIBLE_SEMIHOSTING=y
+
+# Boards:
+#
+CONFIG_ANDES_AE350=y
+CONFIG_SPIKE=y
+CONFIG_SIFIVE_E=y
+CONFIG_SIFIVE_U=y
+CONFIG_RISCV_VIRT=y
+CONFIG_OPENTITAN=y
+CONFIG_ANDES_CORE=y
diff --git a/default-configs/devices/riscv64-andes-softmmu.mak
b/default-configs/devices/riscv64-andes-softmmu.mak
new file mode 100644
index 0000000..7120cb8
--- /dev/null
+++ b/default-configs/devices/riscv64-andes-softmmu.mak
@@ -0,0 +1,17 @@
+# Default configuration for riscv64-softmmu
+
+# Uncomment the following lines to disable these optional devices:
+#
+#CONFIG_PCI_DEVICES=n
+CONFIG_SEMIHOSTING=y
+CONFIG_ARM_COMPATIBLE_SEMIHOSTING=y
+
+# Boards:
+#
+CONFIG_ANDES_AE350=y
+CONFIG_SPIKE=y
+CONFIG_SIFIVE_E=y
+CONFIG_SIFIVE_U=y
+CONFIG_RISCV_VIRT=y
+CONFIG_MICROCHIP_PFSOC=y
+CONFIG_ANDES_CORE=y
diff --git a/default-configs/targets/riscv32-andes-linux-user.mak
b/default-configs/targets/riscv32-andes-linux-user.mak
new file mode 120000
index 0000000..640a619
--- /dev/null
+++ b/default-configs/targets/riscv32-andes-linux-user.mak
@@ -0,0 +1 @@
+./riscv32-linux-user.mak
\ No newline at end of file
diff --git a/default-configs/targets/riscv32-andes-softmmu.mak
b/default-configs/targets/riscv32-andes-softmmu.mak
new file mode 120000
index 0000000..e806510
--- /dev/null
+++ b/default-configs/targets/riscv32-andes-softmmu.mak
@@ -0,0 +1 @@
+./riscv32-softmmu.mak
\ No newline at end of file
diff --git a/default-configs/targets/riscv64-andes-linux-user.mak
b/default-configs/targets/riscv64-andes-linux-user.mak
new file mode 120000
index 0000000..01cefa0
--- /dev/null
+++ b/default-configs/targets/riscv64-andes-linux-user.mak
@@ -0,0 +1 @@
+./riscv64-linux-user.mak
\ No newline at end of file
diff --git a/default-configs/targets/riscv64-andes-softmmu.mak
b/default-configs/targets/riscv64-andes-softmmu.mak
new file mode 120000
index 0000000..ed1cae6
--- /dev/null
+++ b/default-configs/targets/riscv64-andes-softmmu.mak
@@ -0,0 +1 @@
+./riscv64-softmmu.mak
\ No newline at end of file
diff --git a/default-configs/targets/rv_custom/no_custom.mak
b/default-configs/targets/rv_custom/no_custom.mak
new file mode 100644
index 0000000..e69de29
diff --git a/default-configs/targets/rv_custom/riscv32-andes-linux-user.mak
b/default-configs/targets/rv_custom/riscv32-andes-linux-user.mak
new file mode 100644
index 0000000..984affb
--- /dev/null
+++ b/default-configs/targets/rv_custom/riscv32-andes-linux-user.mak
@@ -0,0 +1 @@
+CONFIG_ANDES_CORE=y
diff --git a/default-configs/targets/rv_custom/riscv32-andes-softmmu.mak
b/default-configs/targets/rv_custom/riscv32-andes-softmmu.mak
new file mode 100644
index 0000000..984affb
--- /dev/null
+++ b/default-configs/targets/rv_custom/riscv32-andes-softmmu.mak
@@ -0,0 +1 @@
+CONFIG_ANDES_CORE=y
diff --git a/default-configs/targets/rv_custom/riscv32-linux-user.mak
b/default-configs/targets/rv_custom/riscv32-linux-user.mak
new file mode 120000
index 0000000..073fa18
--- /dev/null
+++ b/default-configs/targets/rv_custom/riscv32-linux-user.mak
@@ -0,0 +1 @@
+./no_custom.mak
\ No newline at end of file
diff --git a/default-configs/targets/rv_custom/riscv32-softmmu.mak
b/default-configs/targets/rv_custom/riscv32-softmmu.mak
new file mode 120000
index 0000000..073fa18
--- /dev/null
+++ b/default-configs/targets/rv_custom/riscv32-softmmu.mak
@@ -0,0 +1 @@
+./no_custom.mak
\ No newline at end of file
diff --git a/default-configs/targets/rv_custom/riscv64-andes-linux-user.mak
b/default-configs/targets/rv_custom/riscv64-andes-linux-user.mak
new file mode 100644
index 0000000..984affb
--- /dev/null
+++ b/default-configs/targets/rv_custom/riscv64-andes-linux-user.mak
@@ -0,0 +1 @@
+CONFIG_ANDES_CORE=y
diff --git a/default-configs/targets/rv_custom/riscv64-andes-softmmu.mak
b/default-configs/targets/rv_custom/riscv64-andes-softmmu.mak
new file mode 100644
index 0000000..984affb
--- /dev/null
+++ b/default-configs/targets/rv_custom/riscv64-andes-softmmu.mak
@@ -0,0 +1 @@
+CONFIG_ANDES_CORE=y
diff --git a/default-configs/targets/rv_custom/riscv64-linux-user.mak
b/default-configs/targets/rv_custom/riscv64-linux-user.mak
new file mode 120000
index 0000000..073fa18
--- /dev/null
+++ b/default-configs/targets/rv_custom/riscv64-linux-user.mak
@@ -0,0 +1 @@
+./no_custom.mak
\ No newline at end of file
diff --git a/default-configs/targets/rv_custom/riscv64-softmmu.mak
b/default-configs/targets/rv_custom/riscv64-softmmu.mak
new file mode 120000
index 0000000..073fa18
--- /dev/null
+++ b/default-configs/targets/rv_custom/riscv64-softmmu.mak
@@ -0,0 +1 @@
+./no_custom.mak
\ No newline at end of file
--
2.32.0