Skip to contentSkip to conversation

Question about recursive dependencies

DISCUSSION Jacob Kroon 2 participants 3 messages May 27, 2020

lore
Share & tools
lore
#0 lore raw

Hi,

After many reading attempts I have to admit I still don't understand the last section of

https://www.yoctoproject.org/docs/latest/bitbake-user-manual/bitbake-user-manual.html#recursive-dependencies

<quote>
You might want to not only have BitBake look for dependencies of those tasks, but also have BitBake look for build-time and runtime dependencies of the dependent tasks as well. If that is the case, you need to reference the task name itself in the task list:

     do_a[recrdeptask] = "do_a do_b"

</quote>

The text before would suggest this means that

"do_a" and "do_b" in the current recipe, plus "do_a" and "do_b" in all its build-time/runtime/inter-task dependencies, recursively, must run before the recipe's "do_a" can run. That would mean "do_a" in the current recipe depends on itself. What am I not getting here ?

Jacob

#1 lore raw
Quoted 14 lines · Jacob Kroon

Hi,

After many reading attempts I have to admit I still don't understand the last section of

https://www.yoctoproject.org/docs/latest/bitbake-user-manual/bitbake-user-manual.html#recursive-dependencies

<quote>
You might want to not only have BitBake look for dependencies of those tasks, but also have BitBake look for build-time and runtime dependencies of the dependent tasks as well. If that is the case, you need to reference the task name itself in the task list:

      do_a[recrdeptask] = "do_a do_b"
Quoted 8 lines

</quote>

The text before would suggest this means that

"do_a" and "do_b" in the current recipe, plus "do_a" and "do_b" in all its build-time/runtime/inter-task dependencies, recursively, must run before the recipe's "do_a" can run. That would mean "do_a" in the current recipe depends on itself. What am I not getting here ?

It does mean that but bitbake will just skip a task depending on itself in this context as that doesn't make any sense.

We used to have that issue a lot, I can only spot one example of it in use now in a quick glance at OE-Core, thankfully.

Cheers,

Richard

#2 lore raw
Quoted 19 lines · Richard Purdie
Quoted 18 lines · Jacob Kroon

Hi,

After many reading attempts I have to admit I still don't understand the last section of

https://www.yoctoproject.org/docs/latest/bitbake-user-manual/bitbake-user-manual.html#recursive-dependencies

<quote>
You might want to not only have BitBake look for dependencies of those tasks, but also have BitBake look for build-time and runtime dependencies of the dependent tasks as well. If that is the case, you need to reference the task name itself in the task list:

       do_a[recrdeptask] = "do_a do_b"

</quote>

The text before would suggest this means that

Quoted 8 lines
Quoted 4 lines

"do_a" and "do_b" in the current recipe, plus "do_a" and "do_b" in all its build-time/runtime/inter-task dependencies, recursively, must run before the recipe's "do_a" can run. That would mean "do_a" in the current recipe depends on itself. What am I not getting here ?

It does mean that but bitbake will just skip a task depending on itself in this context as that doesn't make any sense.

Thanks for clarifying. But I'm still not understanding the quoted text.. Is the intended meaning basically what I wrote above ? Or is the text referring to something else ?

Jacob