<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 9, 2014 at 9:18 AM, Fathi Boudra <span dir="ltr">&lt;<a href="mailto:fathi.boudra@linaro.org" target="_blank">fathi.boudra@linaro.org</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 9 April 2014 18:02, Chris Larson &lt;<a href="mailto:clarson@kergoth.com">clarson@kergoth.com</a>&gt; wrote:<br>


&gt;<br>
&gt; On Tue, Apr 8, 2014 at 10:16 AM, Fathi Boudra &lt;<a href="mailto:fathi.boudra@linaro.org">fathi.boudra@linaro.org</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; On 8 April 2014 20:05, Khem Raj &lt;<a href="mailto:raj.khem@gmail.com">raj.khem@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt; On Tue, Apr 8, 2014 at 7:00 AM, Fathi Boudra &lt;<a href="mailto:fathi.boudra@linaro.org">fathi.boudra@linaro.org</a>&gt;<br>
&gt;&gt; &gt; wrote:<br>
&gt;&gt; &gt;&gt;  do_install() {<br>
&gt;&gt; &gt;&gt; -       oe_runmake prefix=&quot;${prefix}&quot; DESTDIR=&quot;${D}&quot; install<br>
&gt;&gt; &gt;&gt; +       ${MAKE} NO_PYTHON=1 prefix=${prefix}<br>
&gt;&gt; &gt;&gt; plugin_dir=${libdir}/trace-cmd/plugins DESTDIR=${D} install<br>
&gt;&gt; &gt;&gt;  }<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; can you explain/document this change<br>
&gt;&gt;<br>
&gt;&gt; sure. trace-cmd doesn&#39;t have a build system generated Makefile. It&#39;s<br>
&gt;&gt; hand written.<br>
&gt;&gt; To do the install properly, one has to pass prefix/plugin_dir.<br>
&gt;&gt; In addition, the previous command in the recipe doesn&#39;t do the right<br>
&gt;&gt; thing anymore (you&#39;ll end with duplicated prefix /usr/usr/).<br>
&gt;<br>
&gt;<br>
&gt; You don&#39;t need to avoid the use of oe_runmake to pass variables in, that&#39;s<br>
&gt; what EXTRA_OEMAKE is for :) See<br>
&gt; <a href="https://github.com/MentorEmbedded/meta-mentor/commit/4639877" target="_blank">https://github.com/MentorEmbedded/meta-mentor/commit/4639877</a> for a version<br>
&gt; of this fix that uses it instead.<br>
<br>
</div>You don&#39;t need oe_runmake or EXTRA_OEMAKE to properly build and<br>
install the files in the right path either :)<br>
You can even drop inherit pkgconfig pythonnative since they aren&#39;t<br>
used. My version is also slightly shorter to achieve the same goal.<br></blockquote><div><br></div><div>oe_runmake is the convention used by nearly every recipe in oe-core. Breaking that convention for no good reason accomplishes nothing.</div>

</div>-- <br>Christopher Larson<br>clarson at kergoth dot com<br>Founder - BitBake, OpenEmbedded, OpenZaurus<br>Maintainer - Tslib<br>Senior Software Engineer, Mentor Graphics
</div></div>