On Thu, 2021-01-28 at 18:53 +0100, Ayoub Zaki via
lists.yoctoproject.org wrote:
> Hello I created a new task that I want to run for every recipe of my
> image but only for target recipes and skip all native, sdk,...
> mytask.bbclass:
> 
> addtask do_mytask after do_install
> 
> do_mytask() {
>     :
> }
> 
> do_mytask_class-target() {
> 
>     bbwarn "mytask"
>     :
> }
> 
> I added to local.conf :
> 
> INHERIT += "mytask"
> 
> I don't see it running! what is the proper way to achieve this?

How are you running it? You've said you want it to run after do_install
but not what should trigger it.

Adding "before do_build" to the addtask line for example might trigger
it (do_build is the default task).

Cheers,

Richard

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

Reply via email to