diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-06-22 12:51:29 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-06-25 14:57:16 +0100 |
commit | 15a31a93ba382037786aaf9d8105d8cf10c278c0 (patch) | |
tree | d534ac2e534a61d0549b87c3239f764e081656e1 /bitbake/lib/bb/runqueue.py | |
parent | be98c1fc299a3e5355e1d864c9a3f5d1fdf21d9c (diff) | |
download | poky-15a31a93ba382037786aaf9d8105d8cf10c278c0.tar.gz |
bitbake: taskdata.py: Add support for rdepends task flag
Currently its not possible to add arbitrary RDEPENDS to a specific task.
This can be useful and this patch adds functionality equivalent to the
'depends' task flag.
(Bitbake rev: db65080a6199baecc5c422294a4c4a9fd12dc29e)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/runqueue.py')
-rw-r--r-- | bitbake/lib/bb/runqueue.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index bd643ea767..03766adfea 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py | |||
@@ -476,7 +476,19 @@ class RunQueueData: | |||
476 | depends.append(taskid) | 476 | depends.append(taskid) |
477 | if depdata != fnid: | 477 | if depdata != fnid: |
478 | tdepends_fnid[fnid].add(taskid) | 478 | tdepends_fnid[fnid].add(taskid) |
479 | 479 | irdepends = taskData.tasks_irdepends[task] | |
480 | for (depid, idependtask) in irdepends: | ||
481 | if depid in taskData.run_targets: | ||
482 | # Won't be in run_targets if ASSUME_PROVIDED | ||
483 | depdata = taskData.run_targets[depid][0] | ||
484 | if depdata is not None: | ||
485 | dep = taskData.fn_index[depdata] | ||
486 | taskid = taskData.gettask_id(dep, idependtask, False) | ||
487 | if taskid is None: | ||
488 | bb.msg.fatal("RunQueue", "Task %s in %s rdepends upon non-existent task %s in %s" % (taskData.tasks_name[task], fn, idependtask, dep)) | ||
489 | depends.append(taskid) | ||
490 | if depdata != fnid: | ||
491 | tdepends_fnid[fnid].add(taskid) | ||
480 | 492 | ||
481 | # Resolve recursive 'recrdeptask' dependencies (A) | 493 | # Resolve recursive 'recrdeptask' dependencies (A) |
482 | # | 494 | # |