]> code.ossystems Code Review - openembedded-core.git/commit
classes/image: skip recipe on invalid IMAGE_FEATURES item
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 26 Jan 2015 15:32:23 +0000 (15:32 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 3 Feb 2015 14:53:40 +0000 (14:53 +0000)
commitcbe9d2f748125aa2dffc829570d46f8dbc1781a4
tree44aecb846deb27a1c577e1aa8c5549bfb4b55a8e
parentcb217f442b8143d88112bebe4011051efbd905a3
classes/image: skip recipe on invalid IMAGE_FEATURES item

If you add an item to EXTRA_IMAGE_FEATURES in your local.conf that is
not supported by image.bbclass itself (such as "tools-sdk" which is
implemented in core-image.bbclass), it can be somewhat annoying to have
the parse fall over if you have a recipe that inherits image.bbclass
only. Change the error from bb.fatal to skip the recipe instead so that
you only see the error when attempting to build the recipe, plus add a
bit of logic to report if the feature is coming in via
EXTRA_IMAGE_FEATURES.

Fixes [YOCTO #5023].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
meta/classes/image.bbclass