<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Aug 13, 2013, at 5:15 PM, Brad Litterell <<a href="mailto:bradl@taser.com">bradl@taser.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<font face="Arial Unicode MS">I have some scripts I'd like to copy to the target to a simple folder, e.g. /lib/foo</font>
<div><font face="Arial Unicode MS"><br>
</font></div>
<div><font face="Arial Unicode MS">Ideally I'd like to just create a simple recipe something like this:</font></div>
<div><font face="Arial Unicode MS"><br>
</font></div>
<div>
<pre style="margin-top: 0px; margin-bottom: 0px; "><!--StartFragment--><font face="Arial Unicode MS">SRC_URI<span style=" color:#c0c0c0;"> </span>=<span style=" color:#c0c0c0;"> </span>"<a href="file:///lib/foo/foo.sh">file://lib/foo/foo.sh</a>"</font></pre>
<pre style="margin-top: 0px; margin-bottom: 0px; "><font face="Arial Unicode MS">inherit install_only<!--EndFragment--></font></pre>
<pre style="margin-top: 0px; margin-bottom: 0px; "><font face="Arial Unicode MS"><br></font></pre>
<pre style="margin-top: 0px; margin-bottom: 0px; "><font face="Arial Unicode MS">Is there a class like this? </font></pre>
<pre style="margin-top: 0px; margin-bottom: 0px; "><font face="Arial Unicode MS"><br></font></pre>
<pre style="margin-top: 0px; margin-bottom: 0px; "><font face="Arial Unicode MS">It seems like most recipes of this form accomplish this by a custom do_install step, such as this:</font></pre>
<pre style="margin-top: 0px; margin-bottom: 0px; "><font face="Arial Unicode MS"><br></font></pre>
<pre style="margin-top: 0px; margin-bottom: 0px; "><font face="Arial Unicode MS">do_install() {</font></pre>
<pre style="margin-top: 0px; margin-bottom: 0px; "><font face="Arial Unicode MS"> install -D -m 755 ${S}/lib/foo/foo.sh ${D}/lib/foo</font></pre>
<pre style="margin-top: 0px; margin-bottom: 0px; "><font face="Arial Unicode MS">}</font></pre>
<pre style="margin-top: 0px; margin-bottom: 0px; "><font face="Arial Unicode MS"><br></font></pre>
<pre style="margin-top: 0px; margin-bottom: 0px; "><font face="Arial Unicode MS">and I was just hoping there might be a base class for examining the input files and generating the install steps?</font></pre>
<pre style="margin-top: 0px; margin-bottom: 0px; "><font face="Arial Unicode MS"><br></font></pre></div></div></blockquote><div><br></div><div><br></div><div>there isn't one. Its not as common a case to abstract out into a class additionally when you have such recipes then</div><div>the install paths aren't standard either so adding do_install to recipe and doing it there is OK</div><div><br></div><div><br></div><br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>
<pre style="margin-top: 0px; margin-bottom: 0px; "><font face="Arial Unicode MS">Thanks,</font></pre>
<pre style="margin-top: 0px; margin-bottom: 0px; "><font face="Arial Unicode MS">Brad</font></pre>
</div>
</div>
_______________________________________________<br>yocto mailing list<br><a href="mailto:yocto@yoctoproject.org">yocto@yoctoproject.org</a><br>https://lists.yoctoproject.org/listinfo/yocto<br></blockquote></div><br></body></html>