diff options
| author | Mark Hatle <mark.hatle@amd.com> | 2025-02-25 12:38:53 -0600 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-03-03 21:38:57 +0000 |
| commit | 8ed26544f9dfef5ee42e2981befd7e9076cf5798 (patch) | |
| tree | 5afc6a266503044c40f9090691cb99cbe196d05c /bitbake/lib/bb/runqueue.py | |
| parent | 054875b222c3f93a3dec6d99ddc09d918774af7b (diff) | |
| download | poky-8ed26544f9dfef5ee42e2981befd7e9076cf5798.tar.gz | |
bitbake: bitbake: runqueue: Verify mcdepends are valid
In order to avoid a potentially confusing backtrace, check that the mcdepend
is valid when we add it.
Add a test case to ensure invalid configurations are caught and trigger an
error.
[RP: Reworked test case to simplify and improve code]
(Bitbake rev: ff523497270f37b484b44a4445c2194791bcb6ff)
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
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 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index ad4ce0b0e2..8fadc8338e 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py | |||
| @@ -729,6 +729,8 @@ class RunQueueData: | |||
| 729 | if mc == frommc: | 729 | if mc == frommc: |
| 730 | fn = taskData[mcdep].build_targets[pn][0] | 730 | fn = taskData[mcdep].build_targets[pn][0] |
| 731 | newdep = '%s:%s' % (fn,deptask) | 731 | newdep = '%s:%s' % (fn,deptask) |
| 732 | if newdep not in taskData[mcdep].taskentries: | ||
| 733 | bb.fatal("Task mcdepends on non-existent task %s" % (newdep)) | ||
| 732 | taskData[mc].taskentries[tid].tdepends.append(newdep) | 734 | taskData[mc].taskentries[tid].tdepends.append(newdep) |
| 733 | 735 | ||
| 734 | for mc in taskData: | 736 | for mc in taskData: |
