[yocto] overwriting do_install causes cmake install not executed

Tomasz Michalski tmichalski23 at gmail.com
Fri Dec 7 01:20:10 PST 2018


Thank you for the clarification.

czw., 6 gru 2018 o 17:06 Burton, Ross <ross.burton at intel.com> napisał(a):

> On Thu, 6 Dec 2018 at 16:03, Tomasz Michalski <tmichalski23 at gmail.com>
> wrote:
> > I have recipe componentX.bb which refer to some C++ repository. In C++
> repository I have in main CMakeList.txt:
> >
> > install(PROGRAMS ./script/start.sh DESTINATION
> ${CMAKE_INSTALL_COMPONENTXDIR}/init.d)
> > install(PROGRAMS ./script/functions.sh DESTINATION
> ${CMAKE_INSTALL_BINDIR})
> >
> > When I add to componentX.bb my own implementation of do_install() then
> start.sh and function.sh script is not installed from CMakeList.txt!
> > How to tell bitbake in do_install() body to installl this what is in
> CMakeList.txt and moreover something more? Using do_install_append() is not
> a solution for my case because do_install_append() cannot be overwritten in
> another meta-layer, for example in componentX.bbappend. So this must be
> do_install() function.
>
> By writing your own do_install you're replacing the cmake class's
> do_install which is why it doesn't install those files.
>
> From inside your own do_install() you can call the cmake class
> do_install directly: it's called cmake_do_install.
>
> Ross
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20181207/6dd17895/attachment.html>


More information about the yocto mailing list