[yocto] Conditional compile for package in layer.conf for Qemu

YUKATHARSANI JEYACHANDRA yukatharsanij at tataelxsi.co.in
Fri Mar 18 12:41:01 PDT 2016


You can use BBMASK variable in your layer.conf file.
________________________________
From: yocto-bounces at yoctoproject.org <yocto-bounces at yoctoproject.org> on behalf of Mark T <mtl1nuxd3v at gmail.com>
Sent: Friday, March 18, 2016 11:02:54 PM
To: Andre McCurdy
Cc: yocto at yoctoproject.org
Subject: Re: [yocto] Conditional compile for package in layer.conf for Qemu

Ross,

Thanks, that  " IMAGE_INSTALL_append_intel-corei7-64 = "package_b" "  worked a treat.

If I want to exclude a recipe from a layer for qemu builds  - is there a similar method for that ?

Thanks,
Mark


On 17 March 2016 at 09:10, Andre McCurdy <armccurdy at gmail.com<mailto:armccurdy at gmail.com>> wrote:
On Wed, Mar 16, 2016 at 2:01 AM, Burton, Ross <ross.burton at intel.com<mailto:ross.burton at intel.com>> wrote:
>
> On 16 March 2016 at 08:56, Mark T <mtl1nuxd3v at gmail.com<mailto:mtl1nuxd3v at gmail.com>> wrote:
>>
>> I'd like to be able to do the following
>>
>> IMAGE_INSTALL_append += "package_a"

It's not typical usage to combine += with _append, pick one or the other.

Using _append is generally more reliable if you're not sure how the
variable you're appending to was originally initialised, however with
_append you need to manually include a leading space character, ie:

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)

Another alternative would be something like:

IMAGE_INSTALL_remove_qemuall = "package_b"

> Ross
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org<mailto:yocto at yoctoproject.org>
> https://lists.yoctoproject.org/listinfo/yocto
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160318/ffda1d20/attachment.html>


More information about the yocto mailing list