summaryrefslogtreecommitdiff
path: root/classes/patch.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@rpsys.net>2008-05-24 17:13:14 +0000
committerRichard Purdie <rpurdie@rpsys.net>2008-05-24 17:13:14 +0000
commit02390759c9a372ce6946abd89de0cd3936f8ef24 (patch)
treead770cefe7f8b3014751cb46cf44d2be491fb3ff /classes/patch.bbclass
parentb968eae41387cf9b11caad9d1ce796ef818dca08 (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.bbclass11
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