[bitbake-devel] changing content of configuration parameters of Cmakelist file from .bb file
nitish jha
nitishjha16 at gmail.com
Thu Oct 13 11:57:26 UTC 2016
Hello Ross,
Thanks for the help, it worked.
I need one more help, if you could.
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.
Thanks and Regards
Nitish Jha
On Wed, Oct 12, 2016 at 5:23 PM, Burton, Ross <ross.burton at intel.com> wrote:
>
> On 12 October 2016 at 12:33, nitish jha <nitishjha16 at gmail.com> wrote:
>
>> do_configure_append() {
>> cmake -INSTALL_LIB_DIR=/usr/lib64
>> }
>>
>
> http://www.yoctoproject.org/docs/2.1/ref-manual/ref-
> manual.html#ref-classes-cmake covers this.
>
> Use EXTRA_OECMAKE to pass your extra options to cmake, i.e.
>
> EXTRA_OECMAKE = "-DINSTALL_LIB_DIR=${libdir}"
>
> Ross
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20161013/3d528f30/attachment-0002.html>
More information about the bitbake-devel
mailing list