[yocto] Conditional compile for package in layer.conf for Qemu
Burton, Ross
ross.burton at intel.com
Wed Mar 16 02:01:57 PDT 2016
On 16 March 2016 at 08:56, Mark T <mtl1nuxd3v at gmail.com> wrote:
> I'd like to be able to do the following
>
> IMAGE_INSTALL_append += "package_a"
> if ( not qemu )
> IMAGE_INSTALL_append += "package_b"
> endif
>
The neater way would be if you can easily identify what "not qemu" is, for
example:
IMAGE_INSTALL_append_intel-corei7-64 = "package_b"
Would install package_b only for intel-corei7-64 machines.
If you want to support arbitrary machines but not qemu then something like
this might work:
MOREDEPS = "package_b"
MOREDEPS_qemuall = ""
IMAGE_INSTALL_append = " ${MOREDEPS}"
(qemuall is an override that is enabled by all qemu machines)
Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160316/872d7425/attachment.html>
More information about the yocto
mailing list