how to appendVar via Tinfoil API
I would like temporary appendVar before parsing recipes via Tinfoil API. Specifically, I want to do using Tinfoil API:
BB_MULTI_PROVIDER_ALLOWED += "..."
and then call Tinfoil API to get all providers including skipped one.
Can I do appendVar using Tinfoil?
Hello Vasyl,
The way I did in the past is to create a conf file that is injected to bitbake by making the script set os.environ["BBPOSTCONF"] = "<my special conf>"
This will then be picked up by
https://github.com/openembedded/bitbake/blob/966f25dfc23a6d17b2b6d3e0100e9ae264f99025/lib/bb/main.py#L328
Another way, I haven't tested is that your default configuration includes a variable that is normally unset and then in tinfoil.prepare you pass config_params argument as in
https://github.com/openembedded/bitbake/blob/966f25dfc23a6d17b2b6d3e0100e9ae264f99025/lib/bb/tinfoil.py#L364
For example
BB_MULTI_PROVIDER_ALLOWED += "A B ${EXTRA_MULTIPROVIDER_ALLOWED}"
and then tinfoil.prepare(self, config_only=False, config_params={EXTRA_MULTIPROVIDER_ALLOWED: "C"}, quiet=0, extra_features=None):
Cheers
Paulo Neves
Quoted 8 lines · Vasyl Vavrychuk
I would like temporary appendVar before parsing recipes via Tinfoil API. Specifically, I want to do using Tinfoil API:
BB_MULTI_PROVIDER_ALLOWED+= "..."and then call Tinfoil API to get all providers including skipped one.
Can I do appendVar using Tinfoil?