All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Kanavin <alexander.kanavin@linux.intel.com>
To: colin.helliwell@ln-systems.com, yocto@yoctoproject.org
Subject: Re: Getting a recipe's files from within an image recipe
Date: Fri, 2 Feb 2018 14:24:16 +0200	[thread overview]
Message-ID: <f03dfbe4-9f35-611c-c268-61f8fd39f68b@linux.intel.com> (raw)
In-Reply-To: <05b001d39c1f$b673d4c0$235b7e40$@ln-systems.com>

On 02/02/2018 02:16 PM, colin.helliwell@ln-systems.com wrote:
> I have an app which has a config file, and I'd like my two images
> (production and dev) to have different configs. Obviously it'd be neater to
> keep the two config files within the recipe's directory structure.
> I guess I can't do this in the app's recipe since it has no concept of what
> image it might end up in. So I could have the the app's recipe deploy one of
> the configs by default, and use a step in the 'other' image recipe to
> overwrite it.
> But is there a way to tell the image recipe where the app's workdir/srcdir
> is? Something like ${WORKDIR}_MyRecipe
> Or am I just going to have to hard-code the path in?

Maybe the easiest is to have two separate recipes for the two versions 
of config and have images pull in one or the other?

Alex


  reply	other threads:[~2018-02-02 12:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-02 12:16 Getting a recipe's files from within an image recipe colin.helliwell
2018-02-02 12:24 ` Alexander Kanavin [this message]
2018-02-02 12:30   ` Colin Helliwell
2018-02-02 12:34     ` Alexander Kanavin

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=f03dfbe4-9f35-611c-c268-61f8fd39f68b@linux.intel.com \
    --to=alexander.kanavin@linux.intel.com \
    --cc=colin.helliwell@ln-systems.com \
    --cc=yocto@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.