Append to do_install is not getting called by bitbake
Hi Members ,
I am trying to add an test debug print by append logic to openssl_3.2.3.bb do_install:append:${PN} () {
bberror "========== ${PN} ADDON =================================" bberror "========== ${PN} ADDON =================================" }
The idea is to get the logic being considered while do_install is executed by bitbake
But this logic is not being added in recipe and i am really falling short of points to debug why this is not being picked
1) bitbake -e openssl : I checked the do_install part , i don't see the debug print being added
2) I even checked the console prints for this debug print but nothing comes up.
3) I tried do_install:append:{PN} () {
over do_install:append:${PN} () {
But still can't see the debug prints.
4) I even tried do_install:append:openssl () {
This seems some silly logical mistake but i am not able to pin point here . Can senior member please help me what am i doing logically wrong here
Thanks ,
Ashish
Hi Ashish,
Quoted 4 lines · emailaddress.ashish via lists.yoctoproject.org
Hi Members ,
I am trying to add an test debug print by append logic to openssl_3.2.3.bb do_install:append:${PN} () {
do_install is specific to a recipe, so you don't need to specify do_install:append:${PN}
just do_install:append() will be enough.
OVERRIDES are applicable for tasks, but PN isn't part of the OVERRIDES by default (well it probably is if prefixed with pn- but it really does not make sense to do this in a recipe, as it's already guaranteed to apply only to that recipe since things in a recipe are namespaced to the recipe (you cannot modify a recipe variable/task from another recipe).
Cheers,
Quentin
Hi Quentin ,
The problem i faced with this approach is the do_install:append() is called for "openssl-native" and "openssl"
Attached is the log for the same .
Is there any we can make this append to be called only for "openssl" and not "openssl-native"
Thanks ,
Ashish
Hi Ashish,
Quoted 8 lines · emailaddress.ashish via Lists.Yoctoproject.Org
Hi Quentin ,
The problem i faced with this approach is the do_install:append() is called for "openssl-native" and "openssl"
Attached is the log for the same .Is there any we can make this append to be called only for "openssl" and not "openssl-native"
Yes, with
do_install:append:class-native() for openssl-native or
do_install:append:class-target() for openssl
the former being present in openssl recipe in openembedded-core already :) https://git.openembedded.org/openembedded-core/tree/meta/recipes-connectivity/openssl/openssl_3.3.1.bb?h=master so that was a good hint there.
Cheers,
Quentin
Hi Quentin ,
Thanks this suggestion worked , learnt something new .
Sorry if my question is very basic but really wanted to use this thread to understand class-native / class-nativesdk / class-target Can you share any pointers as to what are these classes and what they indicate.
Apologies if this is very basic
Thanks ,
Ashish
Hi Ashish,
Quoted 7 lines · emailaddress.ashish via Lists.Yoctoproject.Org
Hi Quentin ,
Thanks this suggestion worked , learnt something new .
Sorry if my question is very basic but really wanted to use this thread to understand class-native / class-nativesdk / class-target Can you share any pointers as to what are these classes and what they indicate.
https://docs.yoctoproject.org/ref-manual/classes.html#native
https://docs.yoctoproject.org/ref-manual/classes.html#nativesdk
The same recipe file can be used for multiple "architectures" or "flavors". Typically, you have native (compiling for the build host) and target (compiling for the target (MACHINE)). Since Yocto can also create an SDK, you have another one which is nativesdk which is compiling for the sdk build host (SDKMACHINE). There also other BBCLASSEXTEND values to use something similar with "custom" "classes" such as devupstream:target, multiconfig or multilib though I'm less familiar with those. See https://docs.yoctoproject.org/ref-manual/variables.html#term-BBCLASSEXTEND for what this variable allows.
As to why those are called classes, I do not know but I think this has something to do with the fact that there's a bbclass matching the name added in BBCLASSEXTEND, but that's all I could guess here.
Cheers,
Quentin
Thanks a lot Quentin