Bug 13933 - Add multiconfig support to devtool
Summary: Add multiconfig support to devtool
Status: NEW
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium enhancement
Target Milestone: Future
Assignee: Anusmita Dutta Mazumder
QA Contact:
URL: https://lists.openembedded.org/g/open...
Whiteboard:
Depends on:
Blocks:
 
Reported: 2020-06-08 08:48 UTC by Ricardo Ribalda
Modified: 2026-10-28 09:50 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments
multiconfig patch (752 bytes, patch)
2020-06-08 08:48 UTC, Ricardo Ribalda
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ricardo Ribalda 2020-06-08 08:48:29 UTC
Created attachment 4690 [details]
multiconfig patch

I have created a very simple multiconfig

cat build/conf/multiconfig/arm.conf
MACHINE = "qemuarm"

And then I want to modify bash:

$ devtool modify mc:arm:bash #this fails
NOTE: Starting bitbake server...
NOTE: Reconnecting to bitbake server...
NOTE: Retrying server connection (#1)...
NOTE: Reconnecting to bitbake server...
NOTE: Previous bitbake instance shutting down?, waiting to retry...
NOTE: Retrying server connection (#2)...
Loading cache: 100% |####################################################################| Time: 0:00:00
Loaded 2643 entries from dependency cache.
Parsing recipes: 100% |##################################################################| Time: 0:00:00
Parsing of 773 .bb files complete (772 cached, 1 parsed). 2644 targets, 163 skipped, 0 masked, 0 errors.
ERROR: Unable to find any recipe file matching "mc:arm:bash"


$devtool modify multiconfig:arm:bash this works as expected

If then I try to run:
devtool build multiconfig:arm:bash
NOTE: Starting bitbake server...
ERROR: No recipe named 'multiconfig:arm:bash' in your workspace

So I run:
devtool build bash

But that builds for x86 instead of for arm...


The attached patch helps a bit, but it is just a horrible hack that should not be merged ;)
Comment 1 Tomasz Dziendzielski 2021-01-24 15:07:58 UTC
I'm afraid full support of multiconfig in devtool would require rewriting major part of devtool. Multiconfig allows you to run multiple machines with
$ bitbake mc:qemux86:bash mc:qemuarm:bash
or
$ bitbake mc:*:bash
while devtool allows to run only one target at a time.
Comment 2 Randy MacLeod 2021-01-25 14:16:02 UTC
Based on the comment by Tomasz, I've changed this issue to an enhancement for some time in the future. I'm not convinced that we'd ever work on it but who knows what the future holds!
Comment 3 Randy MacLeod 2023-10-24 14:24:22 UTC
Bulk move from 4.99 or 0.00 to 5.99
Comment 4 Anusmita Dutta Mazumder 2026-10-28 09:50:16 UTC
I have submitted a five-patch series addressing multiconfig support in devtool:
https://lists.openembedded.org/g/openembedded-core/message/248498

The submitted implementation still keys workspace entries by bare PN, so the same recipe cannot be modified independently in multiple configurations simultaneously.

Review has raised the need to agree on a common workspace design covering multiconfig, native, nativesdk and multilib variants. The discussion includes using one bbappend per recipe file, with settings scoped per variant and compatible variants sharing a source tree.

The series is under review; the workspace design discussion remains ongoing.