]> code.ossystems Code Review - openembedded-core.git/commit
patch.bbclass: Merge patch enhancements from OE by Chris Larson
authorJoshua Lock <josh@linux.intel.com>
Tue, 1 Jun 2010 13:24:13 +0000 (14:24 +0100)
committerJoshua Lock <josh@linux.intel.com>
Tue, 1 Jun 2010 14:17:12 +0000 (15:17 +0100)
commit09536a7592307d4bb87e11c762bddb7ba7a3215a
tree2e4cda6d63ac4e4c79c8e213e334a5cd94e46045
parent1f2646981f17e09342ed3dcff6436f60fb8a800e
patch.bbclass: Merge patch enhancements from OE by Chris Larson

Chris made some interesting changes to the patch handling in OE. Firstly the
patch and pnum parameters have been renamed, to better reflect their function,
to apply and striplevel. The apply parameter now takes either yes or no as its
value.

Therefore a patch line would be changed from:
file://some.patch;patch=1;pnum=2
to:
file://some.patch;apply=yes;striplevel=2

Secondly the apply parameter is inferred if not defined. Entries in SRC_URI
with diff or patch filename extensions will be automatically applied as patches
if the apply parameter is not set to no (or an unknown value).

Note: We have disabled the warnings when using the old style parameters for now

Signed-off-by: Joshua Lock <josh@linux.intel.com>
meta/classes/patch.bbclass