summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2021-02-17 19:52:20 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-02-18 23:40:01 +0000
commit52ebb82d531220fc3c8790f87fb585797c5810f1 (patch)
tree07245cb7c75c06875712ed56f89ddef42ef9b205 /meta/recipes-devtools
parent27e9c6871a3f36b9959612c6f2a8e1057a8b641e (diff)
downloadpoky-52ebb82d531220fc3c8790f87fb585797c5810f1.tar.gz
ruby: Do not use ucontext implementation for coroutines on musl/riscv
The coroutine implementation in ruby has either arch specific implementations or it falls back to slower ucontext API based implementation assuming libc will provide the needed APIs, however musl does not implement ucontext APIs like glibc, therefore fallback is to use libucontext library on musl. However, libucontext is not ported to riscv yet. which means on musl/riscv ruby is unbuildable, however a third option is to use copy implementation for coroutines, which will be not as good performance-wise, but it will do the job, therefore for now use copy implementation for rv32/rv64 when using musl (From OE-Core rev: 3b2b401dbbb8d3aa14a5fd864178f702af3c8115) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/ruby/ruby_3.0.0.bb7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/recipes-devtools/ruby/ruby_3.0.0.bb b/meta/recipes-devtools/ruby/ruby_3.0.0.bb
index 5e143ee87f..28e12c3cd7 100644
--- a/meta/recipes-devtools/ruby/ruby_3.0.0.bb
+++ b/meta/recipes-devtools/ruby/ruby_3.0.0.bb
@@ -32,6 +32,13 @@ EXTRA_OECONF_append_libc-musl = "\
32 ac_cv_func_isinf=yes \ 32 ac_cv_func_isinf=yes \
33" 33"
34 34
35EXTRA_OECONF_append_libc-musl_riscv64 = "\
36 --with-coroutine=copy \
37"
38EXTRA_OECONF_append_libc-musl_riscv32 = "\
39 --with-coroutine=copy \
40"
41
35do_install() { 42do_install() {
36 oe_runmake 'DESTDIR=${D}' install 43 oe_runmake 'DESTDIR=${D}' install
37} 44}