]> code.ossystems Code Review - openembedded-core.git/commit
base: Improve handling of switching virtual/x providers
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 6 Nov 2015 12:37:01 +0000 (12:37 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 7 Dec 2015 17:59:17 +0000 (17:59 +0000)
commit9a3b992b7339f7aa892f1dff7d159747630b045d
treee803bdb0c68fc102f06f0676cf03ab3527d2879c
parent687e5ef86361a16d6c411386939d4ba96a5909ea
base: Improve handling of switching virtual/x providers

If you build virtual/kernel, then change PREFERRED_PROVIDER_virtual/kernel from say
"linux-yocto" to "linux-yocto-dev", you see errors from the sysroot about overlapping
files. The automatic uninstall logic doesn't trigger since the other recipes is
still technically parsed/buildable.

What we can do is look at the value of PREFERRED_PROVIDER_virtual/X and raise SkipRecipe
(skip parsing) if it provides this thing and its not selected. We skip cases no preferred
provider is set, or the value is in MULTI_PROVIDER_WHITELIST.We also inform the user
if they try to build something which conflicts with the configuration:

$ bitbake linux-yocto-tiny
ERROR: Nothing PROVIDES 'linux-yocto-tiny'
ERROR: linux-yocto-tiny was skipped: PREFERRED_PROVIDER_virtual/kernel set to linux-yocto, not linux-yocto-tiny

[YOCTO #4102]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/base.bbclass