* [meta-oe] [PATCH V2 1/2] Support bitbake compilation when the host is a RISCV platform
2022-11-15 11:20 ` [OE-core] [meta-oe] [PATCH 1/2] " Ross Burton
@ 2022-11-15 12:03 ` cp0613
2022-11-15 12:11 ` [OE-core] " Alexander Kanavin
2022-11-15 12:03 ` [meta-oe] [PATCH V2 2/2] " cp0613
` (3 subsequent siblings)
4 siblings, 1 reply; 13+ messages in thread
From: cp0613 @ 2022-11-15 12:03 UTC (permalink / raw)
To: openembedded-core; +Cc: Chen Pei
From: Chen Pei <cp0613@linux.alibaba.com>
I have a RISCV board running Ubuntu, and then clone the bitbake, meta-oe... to compile,
just like using yocto in ARM board, so I need to add machine-sdk:riscv64 to support it.
Signed-off-by: Chen Pei <cp0613@linux.alibaba.com>
---
meta/conf/machine-sdk/riscv64.conf | 3 +++
1 file changed, 3 insertions(+)
create mode 100644 meta/conf/machine-sdk/riscv64.conf
diff --git a/meta/conf/machine-sdk/riscv64.conf b/meta/conf/machine-sdk/riscv64.conf
new file mode 100644
index 0000000000..155c195d7d
--- /dev/null
+++ b/meta/conf/machine-sdk/riscv64.conf
@@ -0,0 +1,3 @@
+SDK_ARCH = "riscv64"
+ABIEXTENSION:class-nativesdk = ""
+
--
2.25.1
^ permalink raw reply related [flat|nested] 13+ messages in thread* Re: [OE-core] [meta-oe] [PATCH V2 1/2] Support bitbake compilation when the host is a RISCV platform
2022-11-15 12:03 ` [meta-oe] [PATCH V2 1/2] Support bitbake compilation when the host is a RISCV platform cp0613
@ 2022-11-15 12:11 ` Alexander Kanavin
2022-11-15 12:15 ` cp0613
0 siblings, 1 reply; 13+ messages in thread
From: Alexander Kanavin @ 2022-11-15 12:11 UTC (permalink / raw)
To: cp0613; +Cc: openembedded-core
This is not what the commit actually contains. The commit adds a
riscv64 definition for a SDK host machine, and so the commit message
should say that.
"machine-sdk: add a risv64 definition"
Alex
On Tue, 15 Nov 2022 at 13:05, cp0613 <cp0613@linux.alibaba.com> wrote:
>
> From: Chen Pei <cp0613@linux.alibaba.com>
>
> I have a RISCV board running Ubuntu, and then clone the bitbake, meta-oe... to compile,
> just like using yocto in ARM board, so I need to add machine-sdk:riscv64 to support it.
>
> Signed-off-by: Chen Pei <cp0613@linux.alibaba.com>
> ---
> meta/conf/machine-sdk/riscv64.conf | 3 +++
> 1 file changed, 3 insertions(+)
> create mode 100644 meta/conf/machine-sdk/riscv64.conf
>
> diff --git a/meta/conf/machine-sdk/riscv64.conf b/meta/conf/machine-sdk/riscv64.conf
> new file mode 100644
> index 0000000000..155c195d7d
> --- /dev/null
> +++ b/meta/conf/machine-sdk/riscv64.conf
> @@ -0,0 +1,3 @@
> +SDK_ARCH = "riscv64"
> +ABIEXTENSION:class-nativesdk = ""
> +
> --
> 2.25.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#173269): https://lists.openembedded.org/g/openembedded-core/message/173269
> Mute This Topic: https://lists.openembedded.org/mt/95040940/1686489
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alex.kanavin@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* [meta-oe] [PATCH V2 2/2] Support bitbake compilation when the host is a RISCV platform
2022-11-15 11:20 ` [OE-core] [meta-oe] [PATCH 1/2] " Ross Burton
2022-11-15 12:03 ` [meta-oe] [PATCH V2 1/2] Support bitbake compilation when the host is a RISCV platform cp0613
@ 2022-11-15 12:03 ` cp0613
2022-11-15 12:13 ` [OE-core] " Alexander Kanavin
2022-11-15 12:10 ` [meta-oe] [PATCH 1/2] Support for building on RISCV cp0613
` (2 subsequent siblings)
4 siblings, 1 reply; 13+ messages in thread
From: cp0613 @ 2022-11-15 12:03 UTC (permalink / raw)
To: openembedded-core; +Cc: Chen Pei
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(+)
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]
--
2.25.1
^ permalink raw reply related [flat|nested] 13+ messages in thread* Re: [OE-core] [meta-oe] [PATCH V2 2/2] Support bitbake compilation when the host is a RISCV platform
2022-11-15 12:03 ` [meta-oe] [PATCH V2 2/2] " cp0613
@ 2022-11-15 12:13 ` Alexander Kanavin
2022-11-15 12:17 ` cp0613
0 siblings, 1 reply; 13+ messages in thread
From: Alexander Kanavin @ 2022-11-15 12:13 UTC (permalink / raw)
To: cp0613; +Cc: openembedded-core
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
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [meta-oe] [PATCH 1/2] Support for building on RISCV
2022-11-15 11:20 ` [OE-core] [meta-oe] [PATCH 1/2] " Ross Burton
2022-11-15 12:03 ` [meta-oe] [PATCH V2 1/2] Support bitbake compilation when the host is a RISCV platform cp0613
2022-11-15 12:03 ` [meta-oe] [PATCH V2 2/2] " cp0613
@ 2022-11-15 12:10 ` cp0613
2022-11-15 12:24 ` [meta-oe] [PATCH V3 1/2] machine-sdk: add a risv64 definition cp0613
2022-11-15 12:24 ` [meta-oe] [PATCH V3 2/2] meson: set dynamic-linker for riscv64 targets cp0613
4 siblings, 0 replies; 13+ messages in thread
From: cp0613 @ 2022-11-15 12:10 UTC (permalink / raw)
To: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 36 bytes --]
Ok, i'll add more details, thanks.
[-- Attachment #2: Type: text/html, Size: 36 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* [meta-oe] [PATCH V3 1/2] machine-sdk: add a risv64 definition
2022-11-15 11:20 ` [OE-core] [meta-oe] [PATCH 1/2] " Ross Burton
` (2 preceding siblings ...)
2022-11-15 12:10 ` [meta-oe] [PATCH 1/2] Support for building on RISCV cp0613
@ 2022-11-15 12:24 ` cp0613
2022-11-15 12:24 ` [meta-oe] [PATCH V3 2/2] meson: set dynamic-linker for riscv64 targets cp0613
4 siblings, 0 replies; 13+ messages in thread
From: cp0613 @ 2022-11-15 12:24 UTC (permalink / raw)
To: openembedded-core; +Cc: Chen Pei
From: Chen Pei <cp0613@linux.alibaba.com>
Signed-off-by: Chen Pei <cp0613@linux.alibaba.com>
---
meta/conf/machine-sdk/riscv64.conf | 3 +++
1 file changed, 3 insertions(+)
create mode 100644 meta/conf/machine-sdk/riscv64.conf
diff --git a/meta/conf/machine-sdk/riscv64.conf b/meta/conf/machine-sdk/riscv64.conf
new file mode 100644
index 0000000000..155c195d7d
--- /dev/null
+++ b/meta/conf/machine-sdk/riscv64.conf
@@ -0,0 +1,3 @@
+SDK_ARCH = "riscv64"
+ABIEXTENSION:class-nativesdk = ""
+
--
2.25.1
^ permalink raw reply related [flat|nested] 13+ messages in thread* [meta-oe] [PATCH V3 2/2] meson: set dynamic-linker for riscv64 targets
2022-11-15 11:20 ` [OE-core] [meta-oe] [PATCH 1/2] " Ross Burton
` (3 preceding siblings ...)
2022-11-15 12:24 ` [meta-oe] [PATCH V3 1/2] machine-sdk: add a risv64 definition cp0613
@ 2022-11-15 12:24 ` cp0613
4 siblings, 0 replies; 13+ messages in thread
From: cp0613 @ 2022-11-15 12:24 UTC (permalink / raw)
To: openembedded-core; +Cc: Chen Pei
From: Chen Pei <cp0613@linux.alibaba.com>
Signed-off-by: Chen Pei <cp0613@linux.alibaba.com>
---
meta/recipes-devtools/meson/meson_0.64.0.bb | 2 ++
1 file changed, 2 insertions(+)
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]
--
2.25.1
^ permalink raw reply related [flat|nested] 13+ messages in thread