]> code.ossystems Code Review - openembedded-core.git/commit
sanity.bbclass: Improved error message
authorJuro Bystricky <juro.bystricky@intel.com>
Thu, 5 Apr 2018 01:41:40 +0000 (18:41 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 5 Apr 2018 14:22:59 +0000 (15:22 +0100)
commit7b7cbba0bb93893029118e5798ec5831838a5bd9
treeb2851bf2f1554877e415a4c9847a9813734aa3d3
parentccf97c35f6153abc639f01c4940dda5e6e8a3fbe
sanity.bbclass: Improved error message

When a non-existing MACHINE is specified, sanity check issues
the following message:

    Please set a valid MACHINE in your local.conf or environment

However, MACHINE can also be set in multiconfig .conf file(s).
Hence we may have several different MACHINE settings within one
(multiconfig) build, so the present error message is fairly
ambiguous.

This patch remedies this by explicitly naming the offending MACHINE and
by amending the list of places where this erroneous MACHINE definition
could have originated.

    MACHINE=xyz is invalid. Please set a valid MACHINE in your local.conf, environment or other configuration file.

[YOCTO#10810]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a7cb408dd784178197687a2129e936620bf6a0d3)
Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/sanity.bbclass