bitbake-devel.lists.openembedded.org archive mirror
 help / color / mirror / Atom feed
* Custom event handler does not work
@ 2023-02-13 14:13 Chwiala, Przemyslaw [C]
  2023-02-13 15:49 ` chris.laplante
  0 siblings, 1 reply; 3+ messages in thread
From: Chwiala, Przemyslaw [C] @ 2023-02-13 14:13 UTC (permalink / raw)
  To: bitbake-devel

[-- Attachment #1: Type: text/plain, Size: 796 bytes --]

Hello,


I'm working on Yocto image based on Kirkstone relese. I'm trying to add a custom event handler to my image, to be able to catch BuildCompleted or CookerExit event. Unfortunately I'm not able to catch those events as well as any other event from list in the documentation https://docs.yoctoproject.org/bitbake/2.2/bitbake-user-manual/bitbake-user-manual-metadata.html#events


When I do not pass eventmask to catch all events, all I can see are those three events:

- RecipeTaskPreProcess

- RecipePreFinalise

- RecipePostKeyExpansion


I've been trying example from documentation above, with the same result. I tried it in both bb and bbclass files.


Is it something wrong with my implementation, or there is some bug/issue in event handlers?


Thanks

Przemek

[-- Attachment #2: Type: text/html, Size: 1680 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Custom event handler does not work
  2023-02-13 14:13 Custom event handler does not work Chwiala, Przemyslaw [C]
@ 2023-02-13 15:49 ` chris.laplante
  2023-02-15  6:45   ` Chwiala, Przemyslaw [C]
  0 siblings, 1 reply; 3+ messages in thread
From: chris.laplante @ 2023-02-13 15:49 UTC (permalink / raw)
  To: chwprzem, bitbake-devel

> I'm working on Yocto image based on Kirkstone relese. I'm trying to add a
> custom event handler to my image, to be able to catch BuildCompleted
> or CookerExit event. Unfortunately I'm not able to catch those events as well
> as any other event from list in
> the documentation https://nam12.safelinks.protection.outlook.com/?url=htt
> ps%3A%2F%2Fdocs.yoctoproject.org%2Fbitbake%2F2.2%2Fbitbake-user-
> manual%2Fbitbake-user-manual-
> metadata.html%23events&data=05%7C01%7Cchris.laplante%40agilent.com%
> 7C54cb5a85a0a141a4ce2d08db0dcc7ca0%7Ca9c0bc098b46420693512ba12f
> b4a5c0%7C0%7C0%7C638118945468553260%7CUnknown%7CTWFpbGZsb3
> d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0
> %3D%7C3000%7C%7C%7C&sdata=lAYX30mAIMLWWaPWINyzQBDF%2FJ4SjB
> EWpfeaqHF7oB8%3D&reserved=0

IIRC those events need to be caught in a bbclass that you install globally (e.g. using INHERIT in local.conf). They won't work at a per-recipe level.

Thanks,
Chris


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Custom event handler does not work
  2023-02-13 15:49 ` chris.laplante
@ 2023-02-15  6:45   ` Chwiala, Przemyslaw [C]
  0 siblings, 0 replies; 3+ messages in thread
From: Chwiala, Przemyslaw [C] @ 2023-02-15  6:45 UTC (permalink / raw)
  To: chris.laplante, bitbake-devel

[-- Attachment #1: Type: text/plain, Size: 1539 bytes --]

Hello Chris,


it was a good thought. Now all events I need are visible.


Thank you for your help

Przemek

________________________________
From: chris.laplante@agilent.com <chris.laplante@agilent.com>
Sent: Monday, February 13, 2023 4:49:58 PM
To: Chwiala, Przemyslaw [C]; bitbake-devel@lists.openembedded.org
Subject: RE: [EXTERNAL]Custom event handler does not work

CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you can confirm the sender and know the content is safe.



> I'm working on Yocto image based on Kirkstone relese. I'm trying to add a
> custom event handler to my image, to be able to catch BuildCompleted
> or CookerExit event. Unfortunately I'm not able to catch those events as well
> as any other event from list in
> the documentation https://nam12.safelinks.protection.outlook.com/?url=htt
> ps%3A%2F%2Fdocs.yoctoproject.org%2Fbitbake%2F2.2%2Fbitbake-user-
> manual%2Fbitbake-user-manual-
> metadata.html%23events&data=05%7C01%7Cchris.laplante%40agilent.com%
> 7C54cb5a85a0a141a4ce2d08db0dcc7ca0%7Ca9c0bc098b46420693512ba12f
> b4a5c0%7C0%7C0%7C638118945468553260%7CUnknown%7CTWFpbGZsb3
> d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0
> %3D%7C3000%7C%7C%7C&sdata=lAYX30mAIMLWWaPWINyzQBDF%2FJ4SjB
> EWpfeaqHF7oB8%3D&reserved=0

IIRC those events need to be caught in a bbclass that you install globally (e.g. using INHERIT in local.conf). They won't work at a per-recipe level.

Thanks,
Chris

[-- Attachment #2: Type: text/html, Size: 2799 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-02-15  6:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-13 14:13 Custom event handler does not work Chwiala, Przemyslaw [C]
2023-02-13 15:49 ` chris.laplante
2023-02-15  6:45   ` Chwiala, Przemyslaw [C]

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).