<div dir="ltr">Hello Ross,<div><br></div><div>Thanks for the help, it worked.</div><div><br></div><div>I need one more help, if you could.</div><div><br></div><div>I want to assign value to a variable in my recipe file by using awk command</div><div><br></div><div><div><br></div><div>do_configure_prepend() {</div><div><br></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">        </span>var_lib = awk -F &#39;/&#39;  &#39;{$2}&#39;  &#39;${libdir}&#39;</div><div>}</div><div><br></div><div><br></div><div>#EXTRA_OECMAKE += &quot;-DEF_INSTALL_CMAKE_DIR:PATH=${var_lib}/cmake/vsomeip&quot;</div><div><br></div><div>EXTRA_OECMAKE += &quot;-DINSTALL_LIB_DIR:PATH=${var_lib}&quot;</div><div><br></div><div>EXTRA_OECMAKE += &quot;-DINSTALL_CMAKE_DIR:PATH=${var_lib}/cmake/vsomeip&quot;</div><div><br></div><div><br></div></div><div><br></div><div><br></div><div><b>here libdir = /usr/lib64.</b></div><div><br></div><div>But when I compile it give me error while running command in do_configure append</div><div><br></div><div>Do I need to inherit anything to run shell command through recipes.</div><div><br></div><div>Thanks and Regards</div><div><br></div><div>Nitish Jha</div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 12, 2016 at 5:23 PM, Burton, Ross <span dir="ltr">&lt;<a href="mailto:ross.burton@intel.com" target="_blank">ross.burton@intel.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 12 October 2016 at 12:33, nitish jha <span dir="ltr">&lt;<a href="mailto:nitishjha16@gmail.com" target="_blank">nitishjha16@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>do_configure_append() {
<br>    cmake -INSTALL_LIB_DIR=/usr/lib64
<br>}
</div></blockquote></div><br></div><div class="gmail_extra"><a href="http://www.yoctoproject.org/docs/2.1/ref-manual/ref-manual.html#ref-classes-cmake" target="_blank">http://www.yoctoproject.org/<wbr>docs/2.1/ref-manual/ref-<wbr>manual.html#ref-classes-cmake</a> covers this.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Use EXTRA_OECMAKE to pass your extra options to cmake, i.e.</div><div class="gmail_extra"><br></div><div class="gmail_extra">EXTRA_OECMAKE = &quot;-DINSTALL_LIB_DIR=${libdir}&quot;</div><span class="HOEnZb"><font color="#888888"><div class="gmail_extra"><br></div><div class="gmail_extra">Ross</div></font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>
</div></div>