All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Prasant J <pj0585@gmail.com>, Poky Project <poky@yoctoproject.org>
Subject: Re: bitbake variable override (virtual/kernel)
Date: Mon, 28 Dec 2015 13:28:40 +0000	[thread overview]
Message-ID: <1451309320.4129.25.camel@linuxfoundation.org> (raw)
In-Reply-To: <CAA2DH4uy0UjfP81=wJi-w-Dik7rtk+5Hhtes-Ao1TKavUmRP1g@mail.gmail.com>

On Mon, 2015-12-28 at 18:52 +0530, Prasant J wrote:
> Hi,
> 
> I'm putting together my custom layer with my machine configuration. I
> have set PREFERRED_PROVIDER_virtual/kernel to build my kernel but it
> is always overridden by distro configuration. Below is the output of
> bitbake environment:
> 
> 
> # $PREFERRED_PROVIDER_virtual/kernel [6 operations]
> #   set /home/user/fsl-L3.14.52_1.1.0_ga/fsl-release-bsp/sources/meta
> -fsl-arm/conf/machine/include/imx-base.inc:117
> #     [_defaultval] "linux-imx"
> #   finalize ast.py:325 [finalize]
> #     "was: linux-imx"
> #   override[mx6]:set /home/user/fsl-L3.14.52_1.1.0_ga/fsl-release
> -bsp/build-fb/conf/local.conf:26
> #     "linux-myboard-imx6"
> #   override[mx6]:set /home/user/fsl-L3.14.52_1.1.0_ga/fsl-release
> -bsp/sources/mylayer/meta-newlayer/conf/machine/mymachine.conf:17
> #     "linux-myboard-imx6"
> #   override[mx6]:set /home/user/fsl-L3.14.52_1.1.0_ga/fsl-release
> -bsp/sources/meta-fsl-bsp-release/imx/meta
> -sdk/conf/distro/include/fsl-imx-preferred-env.inc:7
> #     "linux-imx"
> #   finalize override[mx6]:
> #     "linux-imx"
> # pre-expansion value:
> #   "linux-imx"
> PREFERRED_PROVIDER_virtual/kernel="linux-imx"
> 
> From the above it seems that distro configuration overrides my custom
> machine + glocal conf/local.conf configuration.
> 
> 
> Is it expected? So should I also create a custom DISTRO?
> Is there a way to extend the DISTRO configuration and only override
> virtual/kernel value?
> 
> 
> Any input will be of help to me. Thanks!

Distro overrides are more powerful so yes, this isn't surprising. You
could disable the mx6 override (which is probably added to
MACHINEOVERRIDES or DISTROOVERRIDES)?

Something like:

MACHINEOVERRIDES_remove = ":mx6"

might even work.

Cheers,

Richard


  reply	other threads:[~2015-12-28 13:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-28 13:22 bitbake variable override (virtual/kernel) Prasant J
2015-12-28 13:28 ` Richard Purdie [this message]
2015-12-28 15:24   ` Prasant J
2015-12-28 15:29     ` Richard Purdie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1451309320.4129.25.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=pj0585@gmail.com \
    --cc=poky@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.