Em ter., 23 de ago. de 2022 às 17:38, Peter Bergin <pe...@berginkonsult.se> 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. -- Otavio Salvador O.S. Systems http://www.ossystems.com.br http://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 (#169729): https://lists.openembedded.org/g/openembedded-core/message/169729 Mute This Topic: https://lists.openembedded.org/mt/93201518/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-