classes/patch: optionally return non-patch sources
authorBruce Ashfield <bruce.ashfield@windriver.com>
Wed, 1 Feb 2012 18:55:41 +0000 (13:55 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 3 Feb 2012 17:22:12 +0000 (17:22 +0000)
commit121b752d2bfde32bc27ec6581b9111d0c4b9de5d
treeb66277c6d25fcd650b232d28dcdeb8f270893ed9
parent7b49abb882b9b2ad6f8ce569e4df62e8d29fac51
classes/patch: optionally return non-patch sources

commit:

  patch.bbclass: abstract out logic that determines patches to apply

gives the ability for other clases to emit series files for use outside
of a build system, or even within the build system. There are sometimes
elements on the SRC_URI that while not directly applicable to patching,
can be related to patching the package. For example, the yocto kernel
class would like to know about these other source items on the SRC_URI
to locate out of tree kernel features.

This change keeps the default behaviour of returning patches, but adds the
ability to request that non-patch results be returned.  Additional filtering
within the non-patch category, is left up to the caller of the routine.

(From OE-Core rev: 41e92923a0b2fe047ecaa9f9ffb564d6069f784f)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/patch.bbclass