On 2022-08-23 23:32, Otavio Salvador wrote:
Em ter., 23 de ago. de 2022 às 17:38, Peter Bergin
<[email protected]> escreveu:
In my particular case the rust application I'm building against
the SDK is using the crate prost-build
(https://crates.io/crates/prost-build) that is used to generate
code from .proto files. It is using the tool protoc from protobuf
and in order to get it working the variable PROTOC needs to be
set. Then my solution was to add that variable to
environment-setup.d/rust.sh in the SDK as I thought that was an
easy solution and rust.sh is in some way connected to the variable
setting. Then looking in to do_install of rust-cross-canadian I
saw that the variable ENV_SETUP_SH is first used for rust.sh then
for cargo.sh so I could not use it to point out rust.sh. Then I
had the idea that it would be better to have one variable for
rust.sh and one for cargo.sh.
The protoc could have this set in environment-setup.d so it doesn't
need change in rust and avoids rebuilds.
Yes. As I wrote there are many different solutions to my problem. In
this patch I just wanted to share in what I think an improvement for a
recipe.
/Peter
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#169774):
https://lists.openembedded.org/g/openembedded-core/message/169774
Mute This Topic: https://lists.openembedded.org/mt/93201518/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-