All the binary executables that are installed in the image are collected along 
with
their paths and then added to the cargo_bin_exe_paths file. This file is then 
used
for the CARGO_BIN_EXE_<name> environment variables, used by the integration 
tests.

Signed-off-by: Andreas Stergiopoulos <[email protected]>
---
No changes in v2.
---
 meta/classes-recipe/cargo.bbclass | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/classes-recipe/cargo.bbclass 
b/meta/classes-recipe/cargo.bbclass
index 2dd28e95d3..167040cb81 100644
--- a/meta/classes-recipe/cargo.bbclass
+++ b/meta/classes-recipe/cargo.bbclass
@@ -58,6 +58,7 @@ cargo_do_compile () {
 
 cargo_do_install () {
        local have_installed=false
+       binary_exe_path_list="${B}/binary_exe_path_list"
        for tgt in "${B}/target/${CARGO_TARGET_SUBDIR}/"*; do
                case $tgt in
                *.so|*.rlib)
@@ -83,6 +84,8 @@ cargo_do_install () {
                                install -d "${D}${bindir}"
                                install -m755 "$tgt" "${D}${bindir}"
                                have_installed=true
+                               # Append the install path of the executable to 
the bin_exe list
+                               echo "${bindir}/$(basename ${tgt})" >> 
${binary_exe_path_list}
                        fi
                        ;;
                esac
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#226498): 
https://lists.openembedded.org/g/openembedded-core/message/226498
Mute This Topic: https://lists.openembedded.org/mt/116340216/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to