summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/runqueue.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-11-28 10:22:11 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-11-29 10:25:51 +0000
commit70a7e7337bb62bc511972f710fd56a5ac627c8cc (patch)
tree2ed845896e6cb3a12f723da3545cf64885b60ca7 /bitbake/lib/bb/runqueue.py
parentc57ace2460d54fd7291feca4fddef39638d673fd (diff)
downloadpoky-70a7e7337bb62bc511972f710fd56a5ac627c8cc.tar.gz
bitbake: runqueue: Improve error message for missing multiconfig
If you place a multiconfig which isn't enabled into an mcdepends you currently get a traceback from runqueue. We can do better, add some code to tell the user what happened in a more readable way without the traceback. [YOCTO #14970] (Bitbake rev: a4693b70764bb394ee2cf8dd12a5f6fce866008b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/runqueue.py')
-rw-r--r--bitbake/lib/bb/runqueue.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index 2c1714da9d..cc36b84781 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -698,6 +698,8 @@ class RunQueueData:
698 frommc = mcdependency[1] 698 frommc = mcdependency[1]
699 mcdep = mcdependency[2] 699 mcdep = mcdependency[2]
700 deptask = mcdependency[4] 700 deptask = mcdependency[4]
701 if mcdep not in taskData:
702 bb.fatal("Multiconfig '%s' is referenced in multiconfig dependency '%s' but not enabled in BBMULTICONFIG?" % (mcdep, dep))
701 if mc == frommc: 703 if mc == frommc:
702 fn = taskData[mcdep].build_targets[pn][0] 704 fn = taskData[mcdep].build_targets[pn][0]
703 newdep = '%s:%s' % (fn,deptask) 705 newdep = '%s:%s' % (fn,deptask)