| Message ID | 20251203113850.3989164-1-alex@linutronix.de |
|---|---|
| State | New |
| Headers | show |
| Series | [auh] modules/bitbake: use fragments to set machine | expand |
diff --git a/modules/utils/bitbake.py b/modules/utils/bitbake.py index a5fc6fa..32c234c 100644 --- a/modules/utils/bitbake.py +++ b/modules/utils/bitbake.py @@ -124,9 +124,10 @@ class Bitbake(object): def complete(self, recipe, machine): if "_" in machine: machine, libc = machine.split("_") - env = "MACHINE={} TCLIBC={}".format(machine, libc) + env = "TCLIBC={}".format(libc) else: - env = "MACHINE={}".format(machine) + env = "" + bb.process.run("bitbake-config-build enable-fragment machine/{}".format(machine)) return self._cmd(recipe, env_var=env) def dependency_graph(self, package_list):
As the autobuilder is also setting machines via fragments, prefixing bitbake invocations with environment assignments no longer works. Signed-off-by: Alexander Kanavin <alex@linutronix.de> --- modules/utils/bitbake.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)