Skip to contentSkip to conversation

"Both of these options are not seen in the majority of recipes."?

DISCUSSION Robert P. J. Day 2 participants 2 messages Aug 30, 2021 – Sep 1, 2021

lore
Share & tools
lore
#0 lore raw

in section:

https://docs.yoctoproject.org/dev-manual/common-tasks.html#recipe-syntax

in Functions section:

"It is also possible to implement new functions that are called between existing tasks as long as the new functions are not replacing or complementing the default functions. You can implement functions in Python instead of shell. Both of these options are not seen in the majority of recipes."

that last sentence seems ... backwards? how should one read it?

rday

#1 lore raw

Hi Robert,

Quoted 7 lines · Robert P. J. Day

in section:

https://urldefense.proofpoint.com/v2/url?u=https-3A__docs.yoctoproject.org_dev-2Dmanual_common-2Dtasks.html-23recipe-2Dsyntax&d=DwIBAg&c=_sEr5x9kUWhuk4_nFwjJtA&r=LYjLexDn7rXIzVmkNPvw5ymA1XTSqHGq8yBP6m6qZZ4njZguQhZhkI_-172IIy1t&m=2-fp92PkZ79RQtAMHJ_6KFfOekya_lBj4WDAt2NBqio&s=3n-EBs-PNMR-IUWCI9oCgH-qB3aTFSSsd8dFh7evjnM&e=

in Functions section:

Quoted 8 lines

"It is also possible to implement new functions that are called between existing tasks as long as the new functions are not replacing or complementing the default functions. You can implement functions in Python instead of shell. Both of these options are not seen in the majority of recipes."

that last sentence seems ... backwards? how should one read it?

My guess:

"""
It is also possible to implement new functions that are called between existing tasks as long as the new functions are not replacing or complementing the default functions. This is not used in the majority of recipes.

You can implement functions in Python instead of shell. """

Cheers,
Quentin