Message ID | 20221128104403.617338-1-richard.purdie@linuxfoundation.org |
---|---|
State | Accepted, archived |
Commit | a4693b70764bb394ee2cf8dd12a5f6fce866008b |
Headers | show |
Series | runqueue: Improve error message for missing multiconfig | expand |
diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py index 2c1714da9d..cc36b84781 100644 --- a/lib/bb/runqueue.py +++ b/lib/bb/runqueue.py @@ -698,6 +698,8 @@ class RunQueueData: frommc = mcdependency[1] mcdep = mcdependency[2] deptask = mcdependency[4] + if mcdep not in taskData: + bb.fatal("Multiconfig '%s' is referenced in multiconfig dependency '%s' but not enabled in BBMULTICONFIG?" % (mcdep, dep)) if mc == frommc: fn = taskData[mcdep].build_targets[pn][0] newdep = '%s:%s' % (fn,deptask)
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] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> --- lib/bb/runqueue.py | 2 ++ 1 file changed, 2 insertions(+)