All of lore.kernel.org
 help / color / mirror / Atom feed
From: Davis Roman <davis.roman84@gmail.com>
To: yocto@lists.yoctoproject.org
Cc: song li <ghosty.lee.1984@gmail.com>
Subject: Installing specific systemd service file according to selected distro
Date: Fri, 14 Jan 2022 00:54:34 -0500	[thread overview]
Message-ID: <CACfi_Z30SFKp0Wb7XQJn-g7=-bZstcjuBoTi9RauWadLHR26CQ@mail.gmail.com> (raw)

Hello,

I have a recipe that contains two service files( A and B) and I build
for two distros where each include the foo recipe.

When I build for distro A, I need to use foo's service file A but when
I build distro B, I need to use foo's service file B.

I could add some logic in the foo recipe to detect the DISTRO and
install the proper service file but I have a feeling this isn't the
yocto way.

Is there a better way of handling this use case?

Thank you,

Davis


             reply	other threads:[~2022-01-14  5:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-14  5:54 Davis Roman [this message]
2022-01-14  8:19 ` [yocto] Installing specific systemd service file according to selected distro Konrad Weihmann

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='CACfi_Z30SFKp0Wb7XQJn-g7=-bZstcjuBoTi9RauWadLHR26CQ@mail.gmail.com' \
    --to=davis.roman84@gmail.com \
    --cc=ghosty.lee.1984@gmail.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.