* [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
* Re: [PATCH libevl] build: add initial RISC-V support
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
0 siblings, 1 reply; 3+ messages in thread
From: Tobias Schaffner @ 2026-07-08 6:35 UTC (permalink / raw)
To: xenomai, Philippe Gerum; +Cc: shannmu
Hi Philippe,
On 10/9/25 14:57, Tobias Schaffner wrote:
> 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>
is this ready to get merged apart from a missing Signed-off-by by shanmu?
Best,
Tobias
> ---
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH libevl] build: add initial RISC-V support
2026-07-08 6:35 ` Tobias Schaffner
@ 2026-07-08 7:05 ` Philippe Gerum
0 siblings, 0 replies; 3+ messages in thread
From: Philippe Gerum @ 2026-07-08 7:05 UTC (permalink / raw)
To: Tobias Schaffner; +Cc: xenomai, shannmu
Tobias Schaffner <tobias.schaffner@siemens.com> writes:
> Hi Philippe,
>
> On 10/9/25 14:57, Tobias Schaffner wrote:
>> 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>
>
> is this ready to get merged apart from a missing Signed-off-by by shanmu?
>
Almost, but some solution should be found not to have the hard-coded
path below:
>> diff --git a/meson/riscv64-linux-gnu b/meson/riscv64-linux-gnu
>> +sys_root = '/usr/riscv64-linux-gnu'
--
Philippe.
^ permalink raw reply [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.