]> code.ossystems Code Review - openembedded-core.git/commit
base.bbclass: detect when S has been set incorrectly
authorPetter Mabäcker <petter@technux.se>
Sun, 4 Jan 2015 22:45:46 +0000 (23:45 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 23 Jan 2015 11:35:25 +0000 (11:35 +0000)
commit0d84b9a8ba408d168cb8a92e895d2f7338d6da1b
tree246fb6793956efd98e06bd1b26d0731657a28449
parent9d220b1bfe4589736604dd5a7129e3699377d830
base.bbclass: detect when S has been set incorrectly

Currently base.bbclass is creating S if it's not created by unpacking
an archive or fetching a repository. If we avoid creating S we can detect
when S hasn't been set correctly, since it will not exist. Then we can tell
the user that they should set S to a proper value, instead of just failing
with odd errors in later tasks.

Besides removing the auto-creation of S this change will introduce a warning
if S is set incorrectly. The reason for not display an error and return
is due to all external layers that might have recipes that will fail otherwise
and that might be a bit to hard to start with. So use a warning until people
have had a chance to cleanup affected recipes.

[YOCTO #5627]

Signed-off-by: Petter Mabäcker <petter@technux.se>
meta/classes/base.bbclass