All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH libevl] build: add initial RISC-V support
@ 2025-10-09 12:57 Tobias Schaffner
  2026-07-08  6:35 ` Tobias Schaffner
  0 siblings, 1 reply; 3+ messages in thread
From: Tobias Schaffner @ 2025-10-09 12:57 UTC (permalink / raw)
  To: xenomai; +Cc: shannmu, Tobias Schaffner

From: shannmu <shanmu1901@gmail.com>

Provide the basic build infrastructure and VDSO definitions
required to build libevl on RISC-V.

Tested-by: Tobias Schaffner <tobias.schaffner@siemens.com>
Signed-off-by: Tobias Schaffner <tobias.schaffner@siemens.com>
---
 lib/arch/riscv/include/asm/evl/vdso.h | 14 ++++++++++++++
 meson.build                           |  4 ++++
 meson/riscv64-linux-gnu               | 18 ++++++++++++++++++
 3 files changed, 36 insertions(+)
 create mode 100644 lib/arch/riscv/include/asm/evl/vdso.h
 create mode 100644 meson/riscv64-linux-gnu

diff --git a/lib/arch/riscv/include/asm/evl/vdso.h b/lib/arch/riscv/include/asm/evl/vdso.h
new file mode 100644
index 0000000..5e331fb
--- /dev/null
+++ b/lib/arch/riscv/include/asm/evl/vdso.h
@@ -0,0 +1,14 @@
+/*
+ * SPDX-License-Identifier: MIT
+ *
+ * Copyright (C) 2021 Philippe Gerum  <rpm@xenomai.org>
+ */
+
+#ifndef _LIB_EVL_RISCV_VDSO_H
+#define _LIB_EVL_RISCV_VDSO_H
+
+#define __EVL_VDSO_KVERSION "LINUX_4.15"
+
+#define __EVL_VDSO_GETTIME "__vdso_clock_gettime"
+
+#endif /* !_LIB_EVL_RISCV_VDSO_H */
diff --git a/meson.build b/meson.build
index f241daf..038b2f0 100644
--- a/meson.build
+++ b/meson.build
@@ -57,6 +57,10 @@ if libevl_arch == 'aarch64'
     libevl_arch = 'arm64'
 endif
 
+if libevl_arch == 'riscv64'
+    libevl_arch = 'riscv'
+endif
+
 post_install = find_program('post-install.sh',
     dirs : libevl_scripts,
     required : true
diff --git a/meson/riscv64-linux-gnu b/meson/riscv64-linux-gnu
new file mode 100644
index 0000000..6eb3b4e
--- /dev/null
+++ b/meson/riscv64-linux-gnu
@@ -0,0 +1,18 @@
+[binaries]
+c = 'riscv64-linux-gnu-gcc'
+cpp = 'riscv64-linux-gnu-g++'
+ar = 'riscv64-linux-gnu-ar'
+strip = 'riscv64-linux-gnu-strip'
+pkg-config = 'pkg-config'
+pcap-config = ''
+
+[host_machine]
+system = 'linux'
+cpu_family = 'riscv64'
+cpu = 'riscv64'
+endian = 'little'
+
+[properties]
+platform = 'generic_riscv64'
+sys_root = '/usr/riscv64-linux-gnu'
+needs_exe_wrapper = false
-- 
2.43.0


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

end of thread, other threads:[~2026-07-08  7:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-09 12:57 [PATCH libevl] build: add initial RISC-V support Tobias Schaffner
2026-07-08  6:35 ` Tobias Schaffner
2026-07-08  7:05   ` Philippe Gerum

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.