<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 13 October 2016 at 12:57, 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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="m_-9091723846335891928gmail-Apple-tab-span" style="white-space:pre-wrap">        </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=$<wbr>{var_lib}/cmake/vsomeip&quot;</div><div><br></div><div>EXTRA_OECMAKE += &quot;-DINSTALL_LIB_DIR:PATH=${var_<wbr>lib}&quot;</div><div><br></div><div>EXTRA_OECMAKE += &quot;-DINSTALL_CMAKE_DIR:PATH=${<wbr>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></blockquote></div><br></div><div class="gmail_extra">If you didn&#39;t used $var_lib instead of ${var_lib} (as bitbake only expands ${foo}, $var_lib will exist when the shell runs) then this will work.  However, this isn&#39;t pretty.  Just use ${baselib}, the name of the final directory in ${libdir}, which is presumably what you want. </div><div class="gmail_extra"><br></div><div class="gmail_extra">Ross</div></div>