diff mbox series

[meta-oe,V2,2/2] Support bitbake compilation when the host is a RISCV platform

Message ID 20221115120314.325-2-cp0613@linux.alibaba.com
State New
Headers show
Series [meta-oe,V2,1/2] Support bitbake compilation when the host is a RISCV platform | expand

Commit Message

cp0613 Nov. 15, 2022, 12:03 p.m. UTC
From: Chen Pei <cp0613@linux.alibaba.com>

meson should add build_arch:riscv64 to support bitbake on RISCV platform

Signed-off-by: Chen Pei <cp0613@linux.alibaba.com>
---
 meta/recipes-devtools/meson/meson_0.64.0.bb | 2 ++
 1 file changed, 2 insertions(+)

Comments

Alexander Kanavin Nov. 15, 2022, 12:13 p.m. UTC | #1
On Tue, 15 Nov 2022 at 13:07, cp0613 <cp0613@linux.alibaba.com> wrote:
>
> From: Chen Pei <cp0613@linux.alibaba.com>
>
> meson should add build_arch:riscv64 to support bitbake on RISCV platform

The commit title is "Support bitbake compilation when the host is a
RISCV platform"

Imagine someone reading the commit log; will that title help them
understand that this is a meson fix, or what 'support' actually means?

It should be "meson: set dynamic-linker for riscv64 targets"

Alex
cp0613 Nov. 15, 2022, 12:17 p.m. UTC | #2
thanks, i see what you mean.
diff mbox series

Patch

diff --git a/meta/recipes-devtools/meson/meson_0.64.0.bb b/meta/recipes-devtools/meson/meson_0.64.0.bb
index 84c3c84515..c8ef8a23c5 100644
--- a/meta/recipes-devtools/meson/meson_0.64.0.bb
+++ b/meta/recipes-devtools/meson/meson_0.64.0.bb
@@ -67,6 +67,8 @@  def generate_native_link_template(d):
         loader = 'ld-linux-aarch64.so.1'
     elif 'ppc64le' in build_arch:
         loader = 'ld64.so.2'
+    elif 'riscv64' in build_arch:
+        loader = 'ld-linux-riscv64-lp64d.so.1'
 
     if loader:
         val += ['-Wl,--dynamic-linker=@{OECORE_NATIVE_SYSROOT}${base_libdir_native}/' + loader]