Skip to contentSkip to conversation

#yocto overriding a task in a recipe

DISCUSSION Monsees, Steven C (US) 2 participants 3 messages Nov 5, 2020

lore
Share & tools
lore
#0 lore raw

If a recipe has a task "do_something() {...stuff...}", and for some reason I do not want that task to execute its steps, but a different series of steps, can I over-ride the task from a .bbapend by supplying the same routine with different steps ("do_something() {...new stuff...}") ?

Thanks,
Steve

#1 lore raw
Quoted 2 lines · Steven C (US) via lists.yoctoproject.org

If a recipe has a task “do_something() {…stuff…}”, and for some reason I do not want that task to execute its steps, but a different series of steps, can I over-ride the task from a .bbapend by supplying the same routine with different steps (“do_something() {…new stuff…}”) ?

it depends, if the task is having appends etc. they will still be applied. but main task you can override.

Quoted 8 lines

Thanks,

Steve

#2 lore raw

Thanks... that's what I saw this morning...

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Khem Raj
Sent: Thursday, November 05, 2020 12:34 PM
To: Monsees, Steven C (US) <[email protected]>; [email protected]
Subject: Re: [yocto] #yocto overriding a task in a recipe

*** WARNING ***
EXTERNAL EMAIL -- This message originates from outside our organization.

Quoted 5 lines · Steven C (US) via lists.yoctoproject.org

If a recipe has a task "do_something() {...stuff...}", and for some reason I do not want that task to execute its steps, but a different series of steps, can I over-ride the task from a .bbapend by supplying the same routine with different steps ("do_something() {...new stuff...}") ?

it depends, if the task is having appends etc. they will still be applied. but main task you can override.

Quoted 8 lines

Thanks,

Steve