fetch2: Add SRPM knowledge
authorMark Hatle <mark.hatle@windriver.com>
Tue, 8 Feb 2011 00:18:18 +0000 (18:18 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 10 Feb 2011 23:37:32 +0000 (23:37 +0000)
commit3372d84fa90ba51e8b2cd4557ee5ce501d0c6bf7
tree136338daad9a0299745f0ea7c41f61752693996b
parent43b9d70bbad02495af54014a25611f8e0d78d6bf
fetch2: Add SRPM knowledge

Enable the fetcher to be able to unpack and SRPM.  By default the system will
unpack the contents of the SRPM into the WORKDIR.

A new syntax "unpack=file" was developed for the SRC_URI, to allow for a
recipe to extract a specific file within an SRPM.  An unpack operation will
then be executed on the extracted file.

In order to apply extracted patches (or unpack files not specified with
unpack), you must specify the path using WORKDIR, i.e.:

file://${WORKDIR}/mypatch.patch

(From Poky rev: 906285ff00d6ffd3fd7713af52250e7c6503edb7)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/fetch2/__init__.py