All of lore.kernel.org
 help / color / mirror / Atom feed
From: Quentin Schulz <quentin.schulz@cherry.de>
To: yocto@lists.yoctoproject.org, joseph.maniaci@seagate.com,
	Alexander Kanavin <alex.kanavin@gmail.com>
Subject: Re: [yocto] Environmental variable present in do_compile() {}, bitbake recipe -e, but is missing from do_configure() {} #bitbake
Date: Thu, 17 Jul 2025 18:29:29 +0200	[thread overview]
Message-ID: <e0e5b150-55a2-42ae-9d90-ec2f0023c93b@cherry.de> (raw)
In-Reply-To: <20575.1752769457005932864@lists.yoctoproject.org>

Hi Joseph,

On 7/17/25 6:24 PM, joseph.maniaci via lists.yoctoproject.org wrote:
> So in experimenting, I learned that if I did a 'export ABC=3' in my environment followed by a 'bitbake whatever', the ABC environment variable would persist all the way to the do_compile(). However, what I found weird is that it is not present in the do_configure() step.
> 

You need to allow environment variables to be passed through to bitbake. 
This is done via BB_ENV_PASSTHROUGH/BB_ENV_PASSTHROUGH_ADDITIONS 
variable in your local.conf for example.

So you would have something like

BB_ENV_PASSTHROUGH_ADDITIONS="ABC"

I believe.

I'm surprised though that the variable is found by bitbake at all.

Cheers,
Quentin


  reply	other threads:[~2025-07-17 16:29 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-16 21:20 Environmental variable present in do_compile() {}, bitbake recipe -e, but is missing from do_configure() {} #bitbake joseph.maniaci
2025-07-17  9:46 ` [yocto] " Alexander Kanavin
2025-07-17 16:24   ` joseph.maniaci
2025-07-17 16:29     ` Quentin Schulz [this message]
2025-07-17 16:48       ` joseph.maniaci
2025-07-17 17:20         ` Gyorgy Sarvari
2025-07-17 17:28           ` joseph.maniaci
2025-07-17 18:16             ` joseph.maniaci
2025-07-18  7:43               ` Gyorgy Sarvari
2025-07-18 15:16                 ` joseph.maniaci
2025-07-18 15:17                   ` joseph.maniaci
2025-07-18 15:40                   ` Quentin Schulz
2025-07-17 16:27   ` joseph.maniaci

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e0e5b150-55a2-42ae-9d90-ec2f0023c93b@cherry.de \
    --to=quentin.schulz@cherry.de \
    --cc=alex.kanavin@gmail.com \
    --cc=joseph.maniaci@seagate.com \
    --cc=yocto@lists.yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.