]> code.ossystems Code Review - openembedded-core.git/commit
sanity.bbclass: Add ability to verify toolchain flags
authorMark Hatle <mark.hatle@windriver.com>
Thu, 31 Jul 2014 01:16:27 +0000 (20:16 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 2 Aug 2014 08:25:34 +0000 (09:25 +0100)
commit226f17bfd2ceea7dc5784fbfaa8608f26b90d7f3
treeee5308a63280aa6ed755290d871560d7a1a5970e
parente8ee8b765183fb3ebe5e94df6375c2fad111dcc7
sanity.bbclass: Add ability to verify toolchain flags

When attempting to use a binary toolchain, such as meta-mentor,
we want the ability to verify that the CCARGS, ASARGS and LDARGS
contain the necessary and appropriate flags.

This change specifically verifies, if set:
   TUNEABI_REQUIRED_CCARGS_tune-<tune>
   TUNEABI_REQUIRED_ASARGS_tune-<tune>
   TUNEABI_REQUIRED_LDARGS_tune-<tune>

Each of these, will be processed by the class and verified that the
selected tune's CCARGS, ASARGS, and LDARGS contains the listed item.  This
can be used to validate that the user has not accidently or otherwise
missed an argument.  Note, conflicting arguments are not verified.

Without verification it's possible for a misconfiguration to go
undetected, presenting runtime and debugging errors.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/sanity.bbclass