Skip to contentSkip to conversation

Files are not saved to recipe-sysroot-native

yocto Alexander Kanavin 3 participants 3 messages Jun 28, 2024 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

It helps if you show the commands and their output as well.

Files in image/ do not go to sysroots directly, first a subset of image/ goes to sysroot-destdir/ (in populate_sysroot task), and that is used for staging into dependent recipes' sysroots with prepare_recipe_sysroot().

Did they appear in sysroot-destdir/?

Alex

Quoted 24 lines · Evgeny Sagatov via lists.yoctoproject.org

Hello.

I created the recipe (first). I added this recipe to the DEPEND of another recipe(second). Вuring build the created files of first recipe were placed in recipe-sysroot to second recipe. I changed to "first-native" in DEPENDS of second recipe.
The files did not appear in recipe-sysroot-native. They also disappear from recipe-sysroot. The necessary files are exactly created in the image directory of the first-native recipe.

What am I doing wrong?

These files must be used on the build machine for the second recipe.

----
Sincerely, Evgeny Sagatov

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#63405): https://lists.yoctoproject.org/g/yocto/message/63405
Mute This Topic: https://lists.yoctoproject.org/mt/106917644/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw

I am attaching "temp" directories of these recipes. Yes, the necessary files are contained in sysroot-destdir. ---- Sincerely, Evgeny Sagatov 28.06.2024, 11:57, "Alexander Kanavin" <[email protected]>:It helps if you show the commands and their output as well.

Files in image/ do not go to sysroots directly, first a subset of image/ goes to sysroot-destdir/ (in populate_sysroot task), and that is used for staging into dependent recipes' sysroots with prepare_recipe_sysroot().

Did they appear in sysroot-destdir/?

Alex

On Thu, 27 Jun 2024 at 23:31, Evgeny Sagatov via lists.yoctoproject.org <[email protected]> wrote:

 Hello.

 I created the recipe (first). I added this recipe to the DEPEND of another recipe(second). Вuring build the created files of first recipe were placed in recipe-sysroot to second recipe. I changed to "first-native" in DEPENDS of second recipe.
 The files did not appear in recipe-sysroot-native. They also disappear from recipe-sysroot. The necessary files are exactly created in the image directory of the first-native recipe.

 What am I doing wrong?

 These files must be used on the build machine for the second recipe.

 ----
 Sincerely, Evgeny Sagatov

 -=-=-=-=-=-=-=-=-=-=-=-
 Links: You receive all messages sent to this group.
 View/Reply Online (#63405): https://lists.yoctoproject.org/g/yocto/message/63405
 Mute This Topic: https://lists.yoctoproject.org/mt/106917644/1686489
 Group Owner: [email protected]
 Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
 -=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw

Hello Evgeny,

if I understand your issue correctly, you also need to add the INSTALL_DIR path to the SYSROOT_DIRS_NATIVE variable, as the "/opt" is a non-standard path in Yocto. You already did that for the SYSROOT_DIRS variable, which is why the files were placed in recipe-sysroot when depending on a non-native target.

Tomas