($INBOX_DIR/description missing)
 help / color / mirror / Atom feed
From: mattwood2000@gmail.com
To: Josef Holzmayr <jester@theyoctojester.info>
Cc: yocto@lists.yoctoproject.org
Subject: Re: [yocto] Get bitbake build target in recipe
Date: Thu, 2 May 2024 11:06:01 -0400	[thread overview]
Message-ID: <CADjezmb5tkMf=6fFhxc86ZTfm0mtwMvXBHoS5d=TaqGQrVYM+Q@mail.gmail.com> (raw)
In-Reply-To: <CAEt6Nwpb-S4LmBxy_mDpj0uWz=wQ5-PrS4FZ0qWCi0SFCK_c4Q@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1636 bytes --]

Hi Josef,

Ok thanks for the reply.  No problem I can manage it in another way.

Thanks, Matt

On Thu, May 2, 2024 at 10:25 AM Josef Holzmayr <jester@theyoctojester.info>
wrote:

> Hi Matt,
>
> That's just not possible. A recipe can not know which image is being
> built. Reason: the packaged outputs from recipes are used for all images
> that depend on them, so they need to be image agnostic. If you need to
> trigger something across various recipes, then use a DISTRO wide
> configuration variable.
>
> Greetz,
> Josef
>
> On Thu, May 2, 2024 at 3:56 PM Matt Wood via lists.yoctoproject.org
> <mattwood2000=gmail.com@lists.yoctoproject.org> wrote:
>
>> Hi all,
>>
>> I'm trying to set the SRCREV of a recipe based on the image name from the
>> bitbake command line.
>>
>> I have tried getting the IMAGE_BASENAME in various tasks but they all
>> return None presumably because these tasks and anonymous python function
>> are evaluated at parse time?
>>
>> Does anyone know if it is possible to get the name of the recipe or image
>> being passed to bitbake within a recipe?
>>
>> Thanks, Matt.
>>
>> -=-=-=-=-=-=-=-=-=-=-=-
>> Links: You receive all messages sent to this group.
>> You automatically follow any topics you start or reply to.
>> View/Reply Online (#63025):
>> https://lists.yoctoproject.org/g/yocto/message/63025
>> Mute This Topic: https://lists.yoctoproject.org/mt/105862978/4689568
>> Group Owner: yocto+owner@lists.yoctoproject.org
>> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [
>> jester@theyoctojester.info]
>> -=-=-=-=-=-=-=-=-=-=-=-
>>
>>

[-- Attachment #2: Type: text/html, Size: 2886 bytes --]

      reply	other threads:[~2024-05-02 15:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-02 13:56 Get bitbake build target in recipe mattwood2000
2024-05-02 14:24 ` [yocto] " Josef Holzmayr
2024-05-02 15:06   ` mattwood2000 [this message]

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='CADjezmb5tkMf=6fFhxc86ZTfm0mtwMvXBHoS5d=TaqGQrVYM+Q@mail.gmail.com' \
    --to=mattwood2000@gmail.com \
    --cc=jester@theyoctojester.info \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).