diff mbox series

devtool: Handle workspaces for multiconfig

Message ID 20250702164147.472067-1-JPEWhacker@gmail.com
State New
Headers show
Series devtool: Handle workspaces for multiconfig | expand

Commit Message

Joshua Watt July 2, 2025, 4:41 p.m. UTC
If a multiconfig recipe is passed to devtool, find the correct workspace
name by removing the multiconfig prefix

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
---
 scripts/lib/devtool/__init__.py | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/scripts/lib/devtool/__init__.py b/scripts/lib/devtool/__init__.py
index fa6e1a34fd1..c9d7ade9ff7 100644
--- a/scripts/lib/devtool/__init__.py
+++ b/scripts/lib/devtool/__init__.py
@@ -147,6 +147,8 @@  def check_workspace_recipe(workspace, pn, checksrc=True, bbclassextend=False):
     Check that a recipe is in the workspace and (optionally) that source
     is present.
     """
+    import bb.runqueue
+    _, pn = bb.runqueue.split_mc(pn)
 
     workspacepn = pn