Openembedded Core Discussions
 help / color / mirror / Atom feed
* [meta-oe] [PATCH 1/2] Support for building on RISCV
@ 2022-11-12  9:12 cp0613
  2022-11-12  9:12 ` [meta-oe] [PATCH 2/2] " cp0613
  2022-11-15 11:20 ` [OE-core] [meta-oe] [PATCH 1/2] " Ross Burton
  0 siblings, 2 replies; 13+ messages in thread
From: cp0613 @ 2022-11-12  9:12 UTC (permalink / raw)
  To: openembedded-core; +Cc: Chen Pei

From: Chen Pei <cp0613@linux.alibaba.com>

I try to use yocto on RISCV platform.

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 2/2] Support for building on RISCV
  2022-11-12  9:12 [meta-oe] [PATCH 1/2] Support for building on RISCV cp0613
@ 2022-11-12  9:12 ` cp0613
  2022-11-12 18:47   ` [OE-core] " Khem Raj
  2022-11-15 11:20 ` [OE-core] [meta-oe] [PATCH 1/2] " Ross Burton
  1 sibling, 1 reply; 13+ messages in thread
From: cp0613 @ 2022-11-12  9:12 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

* Re: [OE-core] [meta-oe] [PATCH 2/2] Support for building on RISCV
  2022-11-12  9:12 ` [meta-oe] [PATCH 2/2] " cp0613
@ 2022-11-12 18:47   ` Khem Raj
  0 siblings, 0 replies; 13+ messages in thread
From: Khem Raj @ 2022-11-12 18:47 UTC (permalink / raw)
  To: cp0613; +Cc: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 1371 bytes --]

Looks ok to me

On Sat, Nov 12, 2022 at 1:13 AM cp0613 <cp0613@linux.alibaba.com> wrote:

> 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
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#173148):
> https://lists.openembedded.org/g/openembedded-core/message/173148
> Mute This Topic: https://lists.openembedded.org/mt/94977045/1997914
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [
> raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>

[-- Attachment #2: Type: text/html, Size: 2760 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [OE-core] [meta-oe] [PATCH 1/2] Support for building on RISCV
  2022-11-12  9:12 [meta-oe] [PATCH 1/2] Support for building on RISCV cp0613
  2022-11-12  9:12 ` [meta-oe] [PATCH 2/2] " cp0613
@ 2022-11-15 11:20 ` Ross Burton
  2022-11-15 12:03   ` [meta-oe] [PATCH V2 1/2] Support bitbake compilation when the host is a RISCV platform cp0613
                     ` (4 more replies)
  1 sibling, 5 replies; 13+ messages in thread
From: Ross Burton @ 2022-11-15 11:20 UTC (permalink / raw)
  To: cp0613@linux.alibaba.com; +Cc: Openembedded Core

Can you resend these with better commit messages?

“Support for building on RISCV” doesn’t explain what is happening here.

“machine-sdk: add configuration for riscv64” does.

Ross

> On 12 Nov 2022, at 09:12, cp0613 via lists.openembedded.org <cp0613=linux.alibaba.com@lists.openembedded.org> wrote:
> 
> From: Chen Pei <cp0613@linux.alibaba.com>
> 
> I try to use yocto on RISCV platform.
> 
> 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 (#173147): https://lists.openembedded.org/g/openembedded-core/message/173147
> Mute This Topic: https://lists.openembedded.org/mt/94977043/6875888
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ross.burton@arm.com]
> -=-=-=-=-=-=-=-=-=-=-=-
> 


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [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

* [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: [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

* 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

* 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 V2 1/2] Support bitbake compilation when the host is a RISCV platform
  2022-11-15 12:11     ` [OE-core] " Alexander Kanavin
@ 2022-11-15 12:15       ` cp0613
  0 siblings, 0 replies; 13+ messages in thread
From: cp0613 @ 2022-11-15 12:15 UTC (permalink / raw)
  To: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 79 bytes --]

Thanks for the reminder, it seems that my description is not accurate enough.

[-- Attachment #2: Type: text/html, Size: 79 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [meta-oe] [PATCH V2 2/2] Support bitbake compilation when the host is a RISCV platform
  2022-11-15 12:13     ` [OE-core] " Alexander Kanavin
@ 2022-11-15 12:17       ` cp0613
  0 siblings, 0 replies; 13+ messages in thread
From: cp0613 @ 2022-11-15 12:17 UTC (permalink / raw)
  To: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 30 bytes --]

thanks, i see what you mean.

[-- Attachment #2: Type: text/html, Size: 30 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

end of thread, other threads:[~2022-11-15 12:25 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-12  9:12 [meta-oe] [PATCH 1/2] Support for building on RISCV cp0613
2022-11-12  9:12 ` [meta-oe] [PATCH 2/2] " cp0613
2022-11-12 18:47   ` [OE-core] " Khem Raj
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:11     ` [OE-core] " Alexander Kanavin
2022-11-15 12:15       ` cp0613
2022-11-15 12:03   ` [meta-oe] [PATCH V2 2/2] " cp0613
2022-11-15 12:13     ` [OE-core] " Alexander Kanavin
2022-11-15 12:17       ` cp0613
2022-11-15 12:10   ` [meta-oe] [PATCH 1/2] Support for building on RISCV 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox