All of lore.kernel.org
 help / color / mirror / Atom feed
* bitbake variable override (virtual/kernel)
@ 2015-12-28 13:22 Prasant J
  2015-12-28 13:28 ` Richard Purdie
  0 siblings, 1 reply; 4+ messages in thread
From: Prasant J @ 2015-12-28 13:22 UTC (permalink / raw)
  To: Poky Project

[-- Attachment #1: Type: text/plain, Size: 1456 bytes --]

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!


Regards

[-- Attachment #2: Type: text/html, Size: 1936 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: bitbake variable override (virtual/kernel)
  2015-12-28 13:22 bitbake variable override (virtual/kernel) Prasant J
@ 2015-12-28 13:28 ` Richard Purdie
  2015-12-28 15:24   ` Prasant J
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Purdie @ 2015-12-28 13:28 UTC (permalink / raw)
  To: Prasant J, Poky Project

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: bitbake variable override (virtual/kernel)
  2015-12-28 13:28 ` Richard Purdie
@ 2015-12-28 15:24   ` Prasant J
  2015-12-28 15:29     ` Richard Purdie
  0 siblings, 1 reply; 4+ messages in thread
From: Prasant J @ 2015-12-28 15:24 UTC (permalink / raw)
  To: Richard Purdie; +Cc: Poky Project

On Mon, Dec 28, 2015 at 6:58 PM, Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
> 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.
>

Thanks for inputs!

I'm also building for imx6. Removing override may remove many other
settings that I do not want to change.

Is it possible to extend DISTRO configuration and change
PREFERRED_PROVIDER_virtual/kernel in the  extended configuration?

Regards, PJ


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: bitbake variable override (virtual/kernel)
  2015-12-28 15:24   ` Prasant J
@ 2015-12-28 15:29     ` Richard Purdie
  0 siblings, 0 replies; 4+ messages in thread
From: Richard Purdie @ 2015-12-28 15:29 UTC (permalink / raw)
  To: Prasant J; +Cc: Poky Project

On Mon, 2015-12-28 at 20:54 +0530, Prasant J wrote:
> On Mon, Dec 28, 2015 at 6:58 PM, Richard Purdie
> <richard.purdie@linuxfoundation.org> wrote:

> Thanks for inputs!
> 
> I'm also building for imx6. Removing override may remove many other
> settings that I do not want to change.
> 
> Is it possible to extend DISTRO configuration and change
> PREFERRED_PROVIDER_virtual/kernel in the  extended configuration?

Its possible but I don't think it will do what you need. You really
need an override stronger than imx6. To be honest, I'm not sure this
"distro" include should be defining these as such strong overrides, its
really a machine setting, not a distro setting.

Anyhow, you could define your own override in MACHINEOVERRIDES or
DISTROOVERIDES which would be defined at a higher priority that the
imx6 one, then set

PREFERRED_PROVIDER_virtual/kernel_<OVERRIDE> = "x"

MACHINE is an override, so you could try that in there too:

PREFERRED_PROVIDER_virtual/kernel_<MACHINE> = "x"

Cheers,

Richard


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-12-28 15:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-28 13:22 bitbake variable override (virtual/kernel) Prasant J
2015-12-28 13:28 ` Richard Purdie
2015-12-28 15:24   ` Prasant J
2015-12-28 15:29     ` Richard Purdie

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.