Skip to contentSkip to conversation

overriding equals

DISCUSSION Trevor Woerner 2 participants 3 messages May 29, 2015 – May 30, 2015

lore
Share & tools
lore
#0 lore raw

If a BSP layer sets a preferred kernel using an equals sign (e.g. PREFERRED_PROVIDER_virtual/kernel = "linux-raspberrypi") is there any way of overriding this decision that doesn't involve:
1) forking the layer
2) hoping the maintainer accepts a relevant patch
3) creating my own DISTRO
?

If I create my own kernel (linux-raspberrypi2-rt) in my own layer and set PREFERRED_PROVIDER_virtual/kernel = "linux-raspberrypi2-rt" in my conf/local.conf, bitbake still complains that there are multiple providers for virtual/kernel and suggests I set PREFERRED_PROVIDER

haha, very funny :-)

#1 lore raw
Quoted 10 lines · Trevor Woerner

If a BSP layer sets a preferred kernel using an equals sign (e.g. PREFERRED_PROVIDER_virtual/kernel = "linux-raspberrypi") is there any way of overriding this decision that doesn't involve:
1) forking the layer
2) hoping the maintainer accepts a relevant patch
3) creating my own DISTRO
?

you may try the following in your config metadata ( local.conf ) PREFERRED_PROVIDER_virtual/kernel_forcevariable = "linux-raspberrypi"

Quoted 12 lines

If I create my own kernel (linux-raspberrypi2-rt) in my own layer and set PREFERRED_PROVIDER_virtual/kernel = "linux-raspberrypi2-rt" in my conf/local.conf, bitbake still complains that there are multiple providers for virtual/kernel and suggests I set PREFERRED_PROVIDER

haha, very funny :-)
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

#2 lore raw
Quoted 11 lines · Khem Raj
Quoted 9 lines · Trevor Woerner

If a BSP layer sets a preferred kernel using an equals sign (e.g. PREFERRED_PROVIDER_virtual/kernel = "linux-raspberrypi") is there any way of overriding this decision that doesn't involve:
1) forking the layer
2) hoping the maintainer accepts a relevant patch
3) creating my own DISTRO
?

you may try the following in your config metadata ( local.conf ) PREFERRED_PROVIDER_virtual/kernel_forcevariable = "linux-raspberrypi"

Thank you! That's exactly what I needed :-)