All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Burton, Ross" <ross.burton@intel.com>
To: S.Jaritz@esa-grimma.de
Cc: "yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: if else blocks in recipes(bitbake)
Date: Fri, 12 Aug 2016 10:51:03 +0100	[thread overview]
Message-ID: <CAJTo0LZGydoC2+_x-rWrz5CzUHNb3XJT1B1twALKe=nx9ys4AA@mail.gmail.com> (raw)
In-Reply-To: <OF32FA6141.8D0EA4BB-ONC125800D.002EFDC8-C125800D.00302AD6@esa-grimma.de>

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

On 12 August 2016 at 09:46, <S.Jaritz@esa-grimma.de> wrote:

>
> If have a simple problem. On one system a program is started as a daemon
> and on the other one not. In my recipe the program is build. by using
> update-rc.d I create the init script for systemV. The code looks like:


The easy solution here is to build two packages, one with the app in and
another that just contains the init script.  Then systems where you just
want the applications can install just the application, and systems where
you want the init script too can install both.

Or, always build with the init script and use a rootfs post-image hook to
remove it.

Ross

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

      reply	other threads:[~2016-08-12  9:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-12  8:46 if else blocks in recipes(bitbake) S.Jaritz
2016-08-12  9:51 ` Burton, Ross [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='CAJTo0LZGydoC2+_x-rWrz5CzUHNb3XJT1B1twALKe=nx9ys4AA@mail.gmail.com' \
    --to=ross.burton@intel.com \
    --cc=S.Jaritz@esa-grimma.de \
    --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.