From 1a7cff6077b770083062952ef6f6f7517bfd2c07 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 18 Apr 2007 21:22:03 +0000 Subject: classes: Add support for intertask dependencies to be specified, needed for correct operation with bitbake 1.8.x. Old behaviour is maintained in a special legacy anonymous function in base.bbclass. The patch is an improved version of the one discussed on the mailing list. --- classes/patch.bbclass | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'classes/patch.bbclass') diff --git a/classes/patch.bbclass b/classes/patch.bbclass index a28f8896c9..84cca7f5a0 100644 --- a/classes/patch.bbclass +++ b/classes/patch.bbclass @@ -417,6 +417,17 @@ 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) +} + python patch_do_patch() { import re import bb.fetch -- cgit v1.2.3