diff options
author | Khem Raj <raj.khem@gmail.com> | 2020-03-09 18:19:38 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-03-11 11:44:28 +0000 |
commit | 9faf676068c80cf7d269b096ef9cb9d3da7e2a89 (patch) | |
tree | 1e4287ec3982a1177ea0b555990ab0d2c0c7bad8 /meta | |
parent | 25dbd037139596f6ce30bbc55b0e579b5a55354d (diff) | |
download | poky-9faf676068c80cf7d269b096ef9cb9d3da7e2a89.tar.gz |
ruby: Use arm32 for coroutines on 32bit-arm
in 2.7 [2] ruby enabled ucontext for coroutines on arm32 but it does not
work for musl since it uses glibc specific functions e.g.
getcontext/swapcontext/swapcontext also see [1]
This patch reverts back to using arm32 implementation for coroutines on
arm
[1] https://bugs.ruby-lang.org/issues/16455#change-83442
[2] https://github.com/ruby/ruby/commit/6c6bf9ffcbfeb8be9d9c342e7604b74ec819e88a#diff-7fccec8474e2184cd2518046bf39d54cL10
(From OE-Core rev: ea93afa4c1c40d74faf321baa78a29d0ad7d3223)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/ruby/ruby_2.7.0.bb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-devtools/ruby/ruby_2.7.0.bb b/meta/recipes-devtools/ruby/ruby_2.7.0.bb index 268b4bebd9..44c76161d5 100644 --- a/meta/recipes-devtools/ruby/ruby_2.7.0.bb +++ b/meta/recipes-devtools/ruby/ruby_2.7.0.bb | |||
@@ -25,6 +25,9 @@ EXTRA_OECONF = "\ | |||
25 | --with-pkg-config=pkg-config \ | 25 | --with-pkg-config=pkg-config \ |
26 | " | 26 | " |
27 | 27 | ||
28 | EXTRA_OECONF_append_libc-musl_arm = " --with-coroutine=arm32" | ||
29 | EXTRA_OECONF_append_libc-musl_armeb = " --with-coroutine=arm32" | ||
30 | |||
28 | do_install() { | 31 | do_install() { |
29 | oe_runmake 'DESTDIR=${D}' install | 32 | oe_runmake 'DESTDIR=${D}' install |
30 | } | 33 | } |