Custom event handler does not work
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
Quoted 5 lines
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
Quoted 8 lines
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
Hello Chris,
it was a good thought. Now all events I need are visible.
Thank you for your help
Przemek
________________________________
From: [email protected] <[email protected]>
Sent: Monday, February 13, 2023 4:49:58 PM
To: Chwiala, Przemyslaw [C]; [email protected]
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.
Quoted 5 lines
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
Quoted 8 lines
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