]> code.ossystems Code Review - openembedded-core.git/commit
sanity.bbclass: Clean up various MACHINE checks
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 30 Aug 2011 16:14:55 +0000 (17:14 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 31 Aug 2011 18:30:17 +0000 (19:30 +0100)
commit02aceca132f9e259cdc5283c4bfe84e6a55df54d
tree892db0cac5b5f2c3b7547d66f332dc5de6731cb5
parentab44ec9618109b0852d9441b6dd065c72c86acb2
sanity.bbclass: Clean up various MACHINE checks

[YOCTO #1398]

Firstly we should start checking if MACHINE is set. It if isn't lets
make this a sanity warning since its very hard to successfully build
without setting one (and anyone wanting to do that can disable the
sanity checks easily enough anyway).

Some of the checks depend on a MACHINE being specified. This change
moves those checks to a separate function so they only run if MACHINE
has been set correctly.

Both these issues combine to ensure the user sees a sane message
and avoids the nasty tracebacks in the bug report referenced above.

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