Hi Brati,

On 5/7/24 7:17 AM, Bratiranjan Acharya via lists.yoctoproject.org wrote:
Hello there! I've recently experimented with incorporating the following
lines into my recipe file:
BB_ENV_PASSTHROUGH_ADDITIONS = "BUILD_ID"
BUILD_ID ?= "none"
However, despite these additions, I encountered a persistent issue. Even
after executing the command "BUILD_ID=123456 bitbake custom-img" the value
of BUILD_ID consistently defaults to "none." I'm curious if there's an
alternative approach worth exploring. Any insights would be greatly
appreciated!


https://docs.yoctoproject.org/bitbake/2.8/bitbake-user-manual/bitbake-user-manual-ref-variables.html#term-BB_ENV_PASSTHROUGH_ADDITIONS

"""
You must set this variable in the external environment in order for it to work.
"""

So it needs to be outside any file from Bitbake, just have it in the shell environment before calling Bitbake.

Also, this variable was name something different before Kirkstone so it depends on which version of Yocto you're using here, c.f. https://docs.yoctoproject.org/migration-guides/migration-4.0.html?highlight=bb_env_passthrough_additions#inclusive-language-improvements

Cheers,
Quentin
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#63042): https://lists.yoctoproject.org/g/yocto/message/63042
Mute This Topic: https://lists.yoctoproject.org/mt/105954779/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to