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 |
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
thanks, i see what you mean.
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]