Fetch only using --runall=fetch

12 views
Skip to first unread message

Christian Leeb

unread,
Aug 11, 2025, 9:45:28 AMAug 11
to kas-devel
Hi,

I'm trying to do a kas-container build which does only a fetch

In bitbake I do bitbake <targets> --runall=fetch 

in KAS I tried
scripts/kas-container build --runtime-args '--runall=fetch' <kas config> but it seems that --runall=fetch is ignored. Instead all targets are built.

Any thoughts?

Thanks, 
Chris

Jan Kiszka

unread,
Aug 11, 2025, 9:56:00 AMAug 11
to Christian Leeb, kas-devel
kas-container build ... -- --runall=fetch

should work. All args after the '--' are forwarded to bitbake.
Documentation for that is a bit hidden in [1]

Jan

[1]
https://kas.readthedocs.io/en/latest/userguide/plugins.html#kas.kas-kas_get_argparser-positional-arguments

--
Siemens AG, Foundational Technologies
Linux Expert Center

Christian Leeb

unread,
Aug 11, 2025, 12:32:26 PMAug 11
to kas-devel
Thanks a lot, Jan. That worked.

There seems to also a KAS_EXTRA_BITBAKE_ARGS processed in scripts/kas-container but I did not find it in the documentation 
So, I could do a scripts/kas-container build --runtime-args '-e KAS_EXTRA_BITBAKE_ARGS=--runall=fetch' <kas config>

I did not it work however: -'-runall=fetch' did not appear on the command line

BR, Chris

Jan Kiszka

unread,
Aug 12, 2025, 7:07:02 AMAug 12
to Christian Leeb, kas-devel
On 11.08.25 18:32, Christian Leeb wrote:
> Thanks a lot, Jan. That worked.
>
> There seems to also a KAS_EXTRA_BITBAKE_ARGS processed in scripts/kas-
> container but I did not find it in the documentation 
> So, I could do a scripts/kas-container build --runtime-args '-e
> KAS_EXTRA_BITBAKE_ARGS=--runall=fetch' <kas config>
>
> I did not it work however: -'-runall=fetch' did not appear on the
> command line
>

KAS_EXTRA_BITBAKE_ARGS is an internal variable of kas-container (and it
is a counter, see the script).

And for --runtime-args: "Additional arguments to pass to the *container
runtime* for running the build." And container runtime != bitbake. :)

Jan
Reply all
Reply to author
Forward
0 new messages