<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<br>
<div class="moz-cite-prefix">On 7/10/2018 1:04 PM, Michael Habibi
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAOsp8o9U02cT0Y3u0GerispM0RjowviEUxgbxysFPwrdihg53w@mail.gmail.com">
<div dir="ltr">Well I should have just used what I want to
actually do as the example, and not a QA action.
<div><br>
</div>
<div>I want to create a new type of manifest that is only my
layer, that will include line items that basically has like:
package name, version, download URL, checksum, license.</div>
<div><br>
</div>
<div>I have no idea yet how to implement it, but wanted to make
sure it was feasible.</div>
</div>
</blockquote>
<br>
It is. <br>
<br>
You more or less just need to figure out which layer the recipe
comes from. Then you can build functions on top of that.<br>
<br>
<a class="moz-txt-link-freetext" href="https://github.com/MontaVista-OpenSourceTechnology/meta-montavista-cgx/blob/master/conf/layerinfo.inc">https://github.com/MontaVista-OpenSourceTechnology/meta-montavista-cgx/blob/master/conf/layerinfo.inc</a><br>
<br>
We modify the mirror we point to based on what layer the recipe
resides in...The specific function that would interest you is<br>
<span style="color: rgb(0, 92, 197); font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">get_layername</span><br>
<br>
Which we set LAYER_NAME to, then we use functions to do things with
LAYER_NAME.<br>
<br>
<blockquote type="cite"
cite="mid:CAOsp8o9U02cT0Y3u0GerispM0RjowviEUxgbxysFPwrdihg53w@mail.gmail.com"><br>
<div class="gmail_quote">
<div dir="ltr">On Tue, Jul 10, 2018 at 2:27 PM Burton, Ross <<a
href="mailto:ross.burton@intel.com" moz-do-not-send="true">ross.burton@intel.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hypothetically
a new QA action should be added at the distro level, by<br>
writing a class and adding it to INHERIT.<br>
<br>
(I've several new QA tests added in this way)<br>
<br>
Ross<br>
<br>
On 10 July 2018 at 19:53, Alexander Kanavin <<a
href="mailto:alex.kanavin@gmail.com" target="_blank"
moz-do-not-send="true">alex.kanavin@gmail.com</a>> wrote:<br>
> Yes. Implement a class and inherit it from the recipes.<br>
><br>
> Alex<br>
><br>
> 2018-07-10 20:50 GMT+02:00 Michael Habibi <<a
href="mailto:mikehabibi@gmail.com" target="_blank"
moz-do-not-send="true">mikehabibi@gmail.com</a>>:<br>
>> I was wondering if there is a way I can apply a
global modification to all<br>
>> recipes in a layer? For instance, we have our own
layer for our changes that<br>
>> sit on top of the base Yocto/OE layers.<br>
>><br>
>> What if, hypothetically, I wanted to insert a
do_package_qa action globally,<br>
>> for everything in our layer. Is there a way to codify
that, beyond actually<br>
>> adding this to every recipe in our layer?<br>
>><br>
>> --<br>
>> _______________________________________________<br>
>> yocto mailing list<br>
>> <a href="mailto:yocto@yoctoproject.org"
target="_blank" moz-do-not-send="true">yocto@yoctoproject.org</a><br>
>> <a
href="https://lists.yoctoproject.org/listinfo/yocto"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.yoctoproject.org/listinfo/yocto</a><br>
>><br>
> --<br>
> _______________________________________________<br>
> yocto mailing list<br>
> <a href="mailto:yocto@yoctoproject.org" target="_blank"
moz-do-not-send="true">yocto@yoctoproject.org</a><br>
> <a href="https://lists.yoctoproject.org/listinfo/yocto"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.yoctoproject.org/listinfo/yocto</a><br>
</blockquote>
</div>
<!--'"--><br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Jeremy A. Puhlman
<a class="moz-txt-link-abbreviated" href="mailto:jpuhlman@mvista.com">jpuhlman@mvista.com</a></pre>
</body>
</html>