diff options
author | Richard Purdie <rpurdie@rpsys.net> | 2008-05-24 17:13:14 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@rpsys.net> | 2008-05-24 17:13:14 +0000 |
commit | 02390759c9a372ce6946abd89de0cd3936f8ef24 (patch) | |
tree | ad770cefe7f8b3014751cb46cf44d2be491fb3ff /classes/patch.bbclass | |
parent | b968eae41387cf9b11caad9d1ce796ef818dca08 (diff) |
patch.bbclass: Simplify patch task dependency handling and allow packages to override the dependency more easily (from poky)
Diffstat (limited to 'classes/patch.bbclass')
-rw-r--r-- | classes/patch.bbclass | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/classes/patch.bbclass b/classes/patch.bbclass index 6f83d9c88b..075e826523 100644 --- a/classes/patch.bbclass +++ b/classes/patch.bbclass @@ -425,15 +425,8 @@ def patch_init(d): addtask patch after do_unpack do_patch[dirs] = "${WORKDIR}" -python () { - import bb - # do_patch tasks require PATCHTOOL-native to have staged - patchdeps = bb.data.getVar("PATCHTOOL", d, True) - if patchdeps: - patchdeps = "%s-native" % patchdeps - if not patchdeps in bb.data.getVar("PROVIDES", d, True): - bb.data.setVarFlag('do_patch', 'depends', patchdeps + ":do_populate_staging", d) -} +PATCHDEPENDENCY = "${PATCHTOOL}-native:do_populate_staging" +do_patch[depends] = "${PATCHDEPENDENCY}" python patch_do_patch() { import re |