Re: [OE-core] [PATCH 1/2] packagegroup-rust-cross-canadian: add native compiler environment

2022-08-23 Thread Otavio Salvador
Em ter., 23 de ago. de 2022 às 05:57, Peter Bergin 
escreveu:

> When building rust crates it is quite common to have a build script [1]
> that is compiled for the host machine and then used during build for
> target.
> Currently when adding packagegroup-rust-cross-canadian this does not work
> without having the native compiler and linker added to the SDK.
> Add those packages to the packagegroup to make it easier to handle.
>
> The reason for having glibc-dev and libgcc-dev is to have version match
> with the used tools. Otherwise it will work on hosts that have compatible
> gcc and glibc versions but not on all.
>

This should be in a comment inside the packagegroup.


> [1] https://doc.rust-lang.org/cargo/reference/build-scripts.html
>
> Signed-off-by: Peter Bergin 
>

-- 
Otavio Salvador O.S. Systems
http://www.ossystems.com.brhttp://code.ossystems.com.br
Mobile: +55 (53) 9 9981-7854  Mobile: +1 (347) 903-9750

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#169704): 
https://lists.openembedded.org/g/openembedded-core/message/169704
Mute This Topic: https://lists.openembedded.org/mt/93200331/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH 1/2] packagegroup-rust-cross-canadian: add native compiler environment

2022-08-23 Thread Peter Bergin
When building rust crates it is quite common to have a build script [1]
that is compiled for the host machine and then used during build for target.
Currently when adding packagegroup-rust-cross-canadian this does not work
without having the native compiler and linker added to the SDK.
Add those packages to the packagegroup to make it easier to handle.

The reason for having glibc-dev and libgcc-dev is to have version match
with the used tools. Otherwise it will work on hosts that have compatible
gcc and glibc versions but not on all.

[1] https://doc.rust-lang.org/cargo/reference/build-scripts.html

Signed-off-by: Peter Bergin 
---
 .../packagegroups/packagegroup-rust-cross-canadian.bb | 4 
 1 file changed, 4 insertions(+)

diff --git 
a/meta/recipes-core/packagegroups/packagegroup-rust-cross-canadian.bb 
b/meta/recipes-core/packagegroups/packagegroup-rust-cross-canadian.bb
index 42f85f0eb38..bb10a2d34f2 100644
--- a/meta/recipes-core/packagegroups/packagegroup-rust-cross-canadian.bb
+++ b/meta/recipes-core/packagegroups/packagegroup-rust-cross-canadian.bb
@@ -9,6 +9,10 @@ RUST="rust-cross-canadian-${TRANSLATED_TARGET_ARCH}"
 
 RDEPENDS:${PN} = " \
 ${@all_multilib_tune_values(d, 'RUST')} \
+nativesdk-binutils \
+nativesdk-gcc \
+nativesdk-glibc-dev \
+nativesdk-libgcc-dev \
 nativesdk-rust \
 nativesdk-cargo \
 nativesdk-rust-tools-clippy \
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#169697): 
https://lists.openembedded.org/g/openembedded-core/message/169697
Mute This Topic: https://lists.openembedded.org/mt/93200331/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-