<div dir="ltr">Thank you for the clarification that helps<div><br></div><div>BR</div><div>MÃ¥ns Zigher</div></div><br><div class="gmail_quote"><div dir="ltr">Den ons 17 okt. 2018 kl 00:36 skrev Andre McCurdy <<a href="mailto:armccurdy@gmail.com">armccurdy@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Tue, Oct 16, 2018 at 6:47 AM, Burton, Ross <<a href="mailto:ross.burton@intel.com" target="_blank">ross.burton@intel.com</a>> wrote:<br>
> It's only already-stripped that needs to be on PN, because the<br>
> stripping happens before packaging. When already-stripped files,<br>
> there are no packages yet.<br>
><br>
> Ross<br>
> On Tue, 16 Oct 2018 at 14:22, MÃ¥ns Zigher <<a href="mailto:mans.zigher@gmail.com" target="_blank">mans.zigher@gmail.com</a>> wrote:<br>
>><br>
>> Ok so it is not supported to have the already-stripped on a package level? I cannot set it on PN because I have some so-files that is already stripped and others that is not so that was why I wanted to create a package for the already-stripped so-files and use the already-stripped on that package. Anyway thanks for the help I ended up creating a new recipe for the already-stripped so-files. But is all the INSANE_SKIP flags only supported for PN? I think I have seen dev-so used on an package level?<br>
<br>
The key point is when the QA test is run. In the case of<br>
"already-stripped", the test is run as part of split_and_strip_files()<br>
in package.bbclass, ie as part of the normal stripping process. As<br>
Ross mentions, it's therefore run before the build output is split<br>
into packages.<br>
<br>
The "dev-so" QA test is run as part of do_package_qa() in<br>
insane.bbclass and can be disabled on a per-package basis.<br>
<br>
As far as I know, there's no documentation to say which QA tests can<br>
be disabled on a per-package basis and which can not. If you want to<br>
be sure you need to read the source. Start by grepping for the QA test<br>
you are interested in and also for "package_qa_handle_error" (which is<br>
the function which is called when a QA test fails). Those two together<br>
should help locate the place where the QA test is run... and from that<br>
you can inspect the code to see if/how INSANE_SKIP is applied. For<br>
example, in the case of "already-stripped", the test is run from<br>
split_and_strip_files() and only INSANE_SKIP_${PN} is checked:<br>
<br>
 <a href="http://git.openembedded.org/openembedded-core/tree/meta/classes/package.bbclass?h=sumo#n1010" rel="noreferrer" target="_blank">http://git.openembedded.org/openembedded-core/tree/meta/classes/package.bbclass?h=sumo#n1010</a><br>
<br>
(In this case, the code could perhaps be even clearer if checking<br>
whether "already-stripped" is found in INSANE_SKIP_${PN} was done once<br>
at the start of the function, rather than being determining again and<br>
again for each file inside the "for every elf file" loop).<br>
<br>
>> BR<br>
>> MÃ¥ns Zigher<br>
>><br>
>> Den mån 15 okt. 2018 kl 22:23 skrev Burton, Ross <<a href="mailto:ross.burton@intel.com" target="_blank">ross.burton@intel.com</a>>:<br>
>>><br>
>>> Ah yes, of course. Stripping happens *before* package splitting, so<br>
>>> it doesn't make sense to have it set on PN-package1. Just set it on<br>
>>> PN and it should work.<br>
>>><br>
>>> Ross<br>
>>> On Mon, 15 Oct 2018 at 08:18, MÃ¥ns Zigher <<a href="mailto:mans.zigher@gmail.com" target="_blank">mans.zigher@gmail.com</a>> wrote:<br>
>>> ><br>
>>> > Hi,<br>
>>> ><br>
>>> > Sorry I see now that there is a typo. What I mean is that in the default package I am not suing INSANE_SKIP but for packag1 I need already-stripped<br>
>>> ><br>
>>> > INSANE_SKIP_${PN}-package1 = " \<br>
>>> > dev-so \<br>
>>> > already-stripped \<br>
>>> > "<br>
>>> ><br>
>>> > But I continuously get the error that they are already-stripped. So is it supposed to work because I don't understand the code in the package.bbclass since it looks like it is only checking for already-stripped in ${PN} and not ${PN}-package1?<br>
>>> ><br>
>>> > BR<br>
>>> > MÃ¥ns Zigher<br>
>>> ><br>
>>> ><br>
>>> ><br>
>>> > Den fre 12 okt. 2018 kl 16:30 skrev Burton, Ross <<a href="mailto:ross.burton@intel.com" target="_blank">ross.burton@intel.com</a>>:<br>
>>> >><br>
>>> >> On Thu, 11 Oct 2018 at 18:14, MÃ¥ns Zigher <<a href="mailto:mans.zigher@gmail.com" target="_blank">mans.zigher@gmail.com</a>> wrote:<br>
>>> >> > I have been struggling with a problem where I need to create a package in a recipe and set already-stripped for that package. The package in question is not the the default one so I am trying to set it by using<br>
>>> >> ><br>
>>> >> > INSANE_SKIP_${PN} += " \<br>
>>> >> > dev-so \<br>
>>> >> > already-stripped \<br>
>>> >> > "<br>
>>> >><br>
>>> >> You say no the default one, but PN is "the default" one, so that's<br>
>>> >> probably why that doesn't work.<br>
>>> >><br>
>>> >> Ross<br>
> --<br>
> _______________________________________________<br>
> yocto mailing list<br>
> <a href="mailto:yocto@yoctoproject.org" target="_blank">yocto@yoctoproject.org</a><br>
> <a href="https://lists.yoctoproject.org/listinfo/yocto" rel="noreferrer" target="_blank">https://lists.yoctoproject.org/listinfo/yocto</a><br>
</blockquote></div>