All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Chris Laplante" <chris.laplante@agilent.com>
To: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Cc: "bitbake-devel@lists.openembedded.org"
	<bitbake-devel@lists.openembedded.org>
Subject: Re: [bitbake-devel] Trouble capturing layer revision as variable in recipe
Date: Wed, 25 Aug 2021 15:27:41 +0000	[thread overview]
Message-ID: <DM8PR12MB5430C33E152645FD5498CB888BC69@DM8PR12MB5430.namprd12.prod.outlook.com> (raw)
In-Reply-To: <20210819080219.sd2huy4uh4vpniwe@fedora>

> > OUR_LAYER_PATH := "${@get_layer_path(d, "meta-our-layer")}"
> >
> 
> Maybe LAYERDIR works?
> 
> But for sure THISDIR would work.
> 
> So just replace cwd with d.getVar("THISDIR") instead of the complex
> handling since git rev-parse can run in a dir different from the root.

Thanks, but one detail I left out is that this is a bbappended recipe. The bbappend lives in meta-our-layer, so LAYERDIR/THISDIR won't work here.

Chris

  reply	other threads:[~2021-08-25 15:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-18 19:21 Trouble capturing layer revision as variable in recipe Chris Laplante
2021-08-18 22:20 ` [bitbake-devel] " Richard Purdie
2021-08-25 15:26   ` Chris Laplante
2021-08-25 15:34     ` Richard Purdie
2021-08-19  8:02 ` Quentin Schulz
2021-08-25 15:27   ` Chris Laplante [this message]
2021-08-19  8:36 ` Enrico Scholz

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=DM8PR12MB5430C33E152645FD5498CB888BC69@DM8PR12MB5430.namprd12.prod.outlook.com \
    --to=chris.laplante@agilent.com \
    --cc=bitbake-devel@lists.openembedded.org \
    --cc=quentin.schulz@theobroma-systems.com \
    /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.