Hello,

> From: Burton, Ross [mailto:ross.bur...@intel.com] 
> Sent: Thursday, December 10, 2015 10:57 PM
> A clearer way would be to do:
> 
> do_compile() {
>    oe_runmake server
> }
>
> It's possible that the compile phase is building just the server, but then 
> install is building and installing everything.

I tried your suggestion - indeed, cmake is then building the remaining binaries 
in the install phase. Furthermore, it appears that cmake itself is lacking 
support for multiple install targets.

However, I did eventually find a solution. A yocto recipe can have multiple 
packages as output. In fact, the default seems to be to create ${PN}, ${PN}-dev 
and ${PN}-dbg packages. I simply added ${PN}-client and ${PN}-client-dbg and 
manually sorted all the client files into those packages using the FILES_* 
variables. You then get a clean separation of client- and server packages and 
can install either or both using, e.g., INSTALL_IMAGE.

Regards
Damian
-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to