Inherit bbclass from bb file with a certain condition
Hello community
In my case, I have bbclass and bb file.
I want to inherit the bbclass from the bb file when a specific condition is TRUE, if its FALSE i don’t want to inherit the class, has someone have an idea? 💡
Inherit my-class from a python function isn’t supported, I tried various options, but nothing works properly.
Appreciate your help 💪🏻
let me know if there is any other related information to provide.
Regards,
Haim
Quoted 8 lines · Haimbach via lists.yoctoproject.org
Hello community
In my case, I have bbclass and bb file.
I want to inherit the bbclass from the bb file when a specific condition is TRUE, if its FALSE i don’t want to inherit the class, has someone have an idea? 💡
Quoted 8 lines
Inherit my-class from a python function isn’t supported, I tried various options, but nothing works properly.
Appreciate your help 💪🏻
let me know if there is any other related information to provide.
Sounds like the typical use-case of inherit_defer: for example:
https://git.yoctoproject.org/poky/tree/meta/recipes-devtools/btrfs-tools/btrfs-tools_6.14.bb#n46inherit_defer ${@bb.utils.contains('PACKAGECONFIG', 'python', 'setuptools3-base', '', d)}
# inherit setuptools3-base only if PACKAGECONFIG contains python
Regards,
Quoted 17 lines
Regards,
Haim
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#65487):
https://lists.yoctoproject.org/g/yocto/message/65487
Mute This Topic: https://lists.yoctoproject.org/mt/113553190/4316185
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 2 lines
Yoann Congal Smile ECS
Hi Yoann,
In my case im working with the Kirkstone ditsro and its seems not support with inherit_defer.
There are any way to to it in Kirkstone?
Regrads,
Haim
Quoted 7 lines · Haimbach via Lists.Yoctoproject.Org
Hi Yoann,
In my case im working with the Kirkstone ditsro and its seems not support with
inherit_defer.There are any way to to it in Kirkstone?
In kirkstone, that is done with a simple inherit but it does have limitations (IIRC, around order of variable creation/affectation/evaluation)
https://git.yoctoproject.org/poky/tree/meta/recipes-devtools/btrfs-tools/btrfs-tools_5.16.2.bb?h=kirkstone#n45
inherit ${@bb.utils.contains('PACKAGECONFIG', 'python', 'setuptools3-base', '', d)}
Quoted 3 lines
Regrads,
Haim
Signature · 2 lines
Yoann Congal Smile ECS
I'd say the correct thing to do would be to put the condition into the class itself. What is it specifically that you are trying to do?
Alex
Quoted 33 lines · Yoann Congal via lists.yoctoproject.org
Quoted 6 lines · Haimbach via Lists.Yoctoproject.Org
Hi Yoann,
In my case im working with the Kirkstone ditsro and its seems not support with
inherit_defer.There are any way to to it in Kirkstone?
In kirkstone, that is done with a simple inherit but it does have limitations (IIRC, around order of variable creation/affectation/evaluation)
https://git.yoctoproject.org/poky/tree/meta/recipes-devtools/btrfs-tools/btrfs-tools_5.16.2.bb?h=kirkstone#n45
inherit ${@bb.utils.contains('PACKAGECONFIG', 'python', 'setuptools3-base', '', d)}Quoted 3 lines
Regrads,
Haim--
Yoann Congal
Smile ECS-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#65495): https://lists.yoctoproject.org/g/yocto/message/65495
Mute This Topic: https://lists.yoctoproject.org/mt/113553190/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Hi,
Its works for me thanks :)
Regards,
Haim