DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] config/riscv: add rv64gcv cross compilation target
@ 2025-09-23 15:07 sunyuechi
  2025-10-06 12:43 ` sunyuechi
  0 siblings, 1 reply; 2+ messages in thread
From: sunyuechi @ 2025-09-23 15:07 UTC (permalink / raw)
  To: dev; +Cc: Sun Yuechi, Stanisław Kardach, Bruce Richardson

From: Sun Yuechi <sunyuechi@iscas.ac.cn>

Add a cross file for rv64gcv, enable it in devtools/test-meson-builds.sh,
and update the RISC-V cross-build guide to support the vector extension.

Signed-off-by: Sun Yuechi <sunyuechi@iscas.ac.cn>
---
 config/riscv/meson.build                        |  3 ++-
 config/riscv/riscv64_rv64gcv_linux_gcc          | 17 +++++++++++++++++
 devtools/test-meson-builds.sh                   |  4 ++++
 .../linux_gsg/cross_build_dpdk_for_riscv.rst    |  2 ++
 4 files changed, 25 insertions(+), 1 deletion(-)
 create mode 100644 config/riscv/riscv64_rv64gcv_linux_gcc

diff --git a/config/riscv/meson.build b/config/riscv/meson.build
index f3daea0c0e..a06429a1e2 100644
--- a/config/riscv/meson.build
+++ b/config/riscv/meson.build
@@ -43,7 +43,8 @@ vendor_generic = {
         ['RTE_MAX_NUMA_NODES', 2]
     ],
     'arch_config': {
-        'generic': {'machine_args': ['-march=rv64gc']}
+        'generic': {'machine_args': ['-march=rv64gc']},
+        'rv64gcv': {'machine_args': ['-march=rv64gcv']},
     }
 }
 
diff --git a/config/riscv/riscv64_rv64gcv_linux_gcc b/config/riscv/riscv64_rv64gcv_linux_gcc
new file mode 100644
index 0000000000..ccc5115dec
--- /dev/null
+++ b/config/riscv/riscv64_rv64gcv_linux_gcc
@@ -0,0 +1,17 @@
+[binaries]
+c = ['ccache', 'riscv64-linux-gnu-gcc']
+cpp = ['ccache', 'riscv64-linux-gnu-g++']
+ar = 'riscv64-linux-gnu-ar'
+strip = 'riscv64-linux-gnu-strip'
+pcap-config = ''
+
+[host_machine]
+system = 'linux'
+cpu_family = 'riscv64'
+cpu = 'rv64gcv'
+endian = 'little'
+
+[properties]
+vendor_id = 'generic'
+arch_id = 'rv64gcv'
+pkg_config_libdir = '/usr/lib/riscv64-linux-gnu/pkgconfig'
diff --git a/devtools/test-meson-builds.sh b/devtools/test-meson-builds.sh
index 4fff1f7177..4f07f84eb0 100755
--- a/devtools/test-meson-builds.sh
+++ b/devtools/test-meson-builds.sh
@@ -290,6 +290,10 @@ build build-ppc64-power8-gcc $f ABI $use_shared
 f=$srcdir/config/riscv/riscv64_linux_gcc
 build build-riscv64-generic-gcc $f ABI $use_shared
 
+# RISC-V vector (rv64gcv)
+f=$srcdir/config/riscv/riscv64_rv64gcv_linux_gcc
+build build-riscv64_rv64gcv_gcc $f ABI $use_shared
+
 # Test installation of the x86-generic target, to be used for checking
 # the sample apps build using the pkg-config file for cflags and libs
 load_env cc
diff --git a/doc/guides/linux_gsg/cross_build_dpdk_for_riscv.rst b/doc/guides/linux_gsg/cross_build_dpdk_for_riscv.rst
index 7d7f7ac72b..bcba12a604 100644
--- a/doc/guides/linux_gsg/cross_build_dpdk_for_riscv.rst
+++ b/doc/guides/linux_gsg/cross_build_dpdk_for_riscv.rst
@@ -108,6 +108,8 @@ Currently the following targets are supported:
 
 * Generic rv64gc ISA: ``config/riscv/riscv64_linux_gcc``
 
+* RV64GCV ISA: ``config/riscv/riscv64_rv64gcv_linux_gcc``
+
 * SiFive U740 SoC: ``config/riscv/riscv64_sifive_u740_linux_gcc``
 
 To add a new target support, ``config/riscv/meson.build`` has to be modified by
-- 
2.51.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] config/riscv: add rv64gcv cross compilation target
  2025-09-23 15:07 [PATCH] config/riscv: add rv64gcv cross compilation target sunyuechi
@ 2025-10-06 12:43 ` sunyuechi
  0 siblings, 0 replies; 2+ messages in thread
From: sunyuechi @ 2025-10-06 12:43 UTC (permalink / raw)
  To: dev; +Cc: Stanisław Kardach, Bruce Richardson

Hi, how is this patch?


&gt; -----原始邮件-----
&gt; 发件人: sunyuechi@iscas.ac.cn
&gt; 发送时间: 2025-09-23 23:07:34 (星期二)
&gt; 收件人: dev@dpdk.org
&gt; 抄送: "Sun Yuechi" <sunyuechi@iscas.ac.cn>, "Stanisław Kardach" <stanislaw.kardach@gmail.com>, "Bruce Richardson" <bruce.richardson@intel.com>
&gt; 主题: [PATCH] config/riscv: add rv64gcv cross compilation target
&gt; 
&gt; From: Sun Yuechi <sunyuechi@iscas.ac.cn>
&gt; 
&gt; Add a cross file for rv64gcv, enable it in devtools/test-meson-builds.sh,
&gt; and update the RISC-V cross-build guide to support the vector extension.
&gt; 
&gt; Signed-off-by: Sun Yuechi <sunyuechi@iscas.ac.cn>
&gt; ---
&gt;  config/riscv/meson.build                        |  3 ++-
&gt;  config/riscv/riscv64_rv64gcv_linux_gcc          | 17 +++++++++++++++++
&gt;  devtools/test-meson-builds.sh                   |  4 ++++
&gt;  .../linux_gsg/cross_build_dpdk_for_riscv.rst    |  2 ++
&gt;  4 files changed, 25 insertions(+), 1 deletion(-)
&gt;  create mode 100644 config/riscv/riscv64_rv64gcv_linux_gcc
&gt; 
&gt; diff --git a/config/riscv/meson.build b/config/riscv/meson.build
&gt; index f3daea0c0e..a06429a1e2 100644
&gt; --- a/config/riscv/meson.build
&gt; +++ b/config/riscv/meson.build
&gt; @@ -43,7 +43,8 @@ vendor_generic = {
&gt;          ['RTE_MAX_NUMA_NODES', 2]
&gt;      ],
&gt;      'arch_config': {
&gt; -        'generic': {'machine_args': ['-march=rv64gc']}
&gt; +        'generic': {'machine_args': ['-march=rv64gc']},
&gt; +        'rv64gcv': {'machine_args': ['-march=rv64gcv']},
&gt;      }
&gt;  }
&gt;  
&gt; diff --git a/config/riscv/riscv64_rv64gcv_linux_gcc b/config/riscv/riscv64_rv64gcv_linux_gcc
&gt; new file mode 100644
&gt; index 0000000000..ccc5115dec
&gt; --- /dev/null
&gt; +++ b/config/riscv/riscv64_rv64gcv_linux_gcc
&gt; @@ -0,0 +1,17 @@
&gt; +[binaries]
&gt; +c = ['ccache', 'riscv64-linux-gnu-gcc']
&gt; +cpp = ['ccache', 'riscv64-linux-gnu-g++']
&gt; +ar = 'riscv64-linux-gnu-ar'
&gt; +strip = 'riscv64-linux-gnu-strip'
&gt; +pcap-config = ''
&gt; +
&gt; +[host_machine]
&gt; +system = 'linux'
&gt; +cpu_family = 'riscv64'
&gt; +cpu = 'rv64gcv'
&gt; +endian = 'little'
&gt; +
&gt; +[properties]
&gt; +vendor_id = 'generic'
&gt; +arch_id = 'rv64gcv'
&gt; +pkg_config_libdir = '/usr/lib/riscv64-linux-gnu/pkgconfig'
&gt; diff --git a/devtools/test-meson-builds.sh b/devtools/test-meson-builds.sh
&gt; index 4fff1f7177..4f07f84eb0 100755
&gt; --- a/devtools/test-meson-builds.sh
&gt; +++ b/devtools/test-meson-builds.sh
&gt; @@ -290,6 +290,10 @@ build build-ppc64-power8-gcc $f ABI $use_shared
&gt;  f=$srcdir/config/riscv/riscv64_linux_gcc
&gt;  build build-riscv64-generic-gcc $f ABI $use_shared
&gt;  
&gt; +# RISC-V vector (rv64gcv)
&gt; +f=$srcdir/config/riscv/riscv64_rv64gcv_linux_gcc
&gt; +build build-riscv64_rv64gcv_gcc $f ABI $use_shared
&gt; +
&gt;  # Test installation of the x86-generic target, to be used for checking
&gt;  # the sample apps build using the pkg-config file for cflags and libs
&gt;  load_env cc
&gt; diff --git a/doc/guides/linux_gsg/cross_build_dpdk_for_riscv.rst b/doc/guides/linux_gsg/cross_build_dpdk_for_riscv.rst
&gt; index 7d7f7ac72b..bcba12a604 100644
&gt; --- a/doc/guides/linux_gsg/cross_build_dpdk_for_riscv.rst
&gt; +++ b/doc/guides/linux_gsg/cross_build_dpdk_for_riscv.rst
&gt; @@ -108,6 +108,8 @@ Currently the following targets are supported:
&gt;  
&gt;  * Generic rv64gc ISA: ``config/riscv/riscv64_linux_gcc``
&gt;  
&gt; +* RV64GCV ISA: ``config/riscv/riscv64_rv64gcv_linux_gcc``
&gt; +
&gt;  * SiFive U740 SoC: ``config/riscv/riscv64_sifive_u740_linux_gcc``
&gt;  
&gt;  To add a new target support, ``config/riscv/meson.build`` has to be modified by
&gt; -- 
&gt; 2.51.0
</sunyuechi@iscas.ac.cn></sunyuechi@iscas.ac.cn></bruce.richardson@intel.com></stanislaw.kardach@gmail.com></sunyuechi@iscas.ac.cn>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-10-06 12:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-23 15:07 [PATCH] config/riscv: add rv64gcv cross compilation target sunyuechi
2025-10-06 12:43 ` sunyuechi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).