[bitbake-devel] changing content of configuration parameters of Cmakelist file from .bb file

Burton, Ross ross.burton at intel.com
Fri Oct 14 08:44:10 UTC 2016


On 13 October 2016 at 12:57, nitish jha <nitishjha16 at gmail.com> wrote:

> I want to assign value to a variable in my recipe file by using awk command
>
>
> do_configure_prepend() {
>
> var_lib = awk -F '/'  '{$2}'  '${libdir}'
> }
>
>
> #EXTRA_OECMAKE += "-DEF_INSTALL_CMAKE_DIR:PATH=${var_lib}/cmake/vsomeip"
>
> EXTRA_OECMAKE += "-DINSTALL_LIB_DIR:PATH=${var_lib}"
>
> EXTRA_OECMAKE += "-DINSTALL_CMAKE_DIR:PATH=${var_lib}/cmake/vsomeip"
>
>
>
>
> *here libdir = /usr/lib64.*
>
> But when I compile it give me error while running command in do_configure
> append
>
> Do I need to inherit anything to run shell command through recipes.
>

If you didn'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't pretty.  Just use ${baselib}, the name of the final
directory in ${libdir}, which is presumably what you want.

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20161014/cb6c2160/attachment-0002.html>


More information about the bitbake-devel mailing list