All of lore.kernel.org
 help / color / mirror / Atom feed
From: Koen Kooi <koen@dominion.thruhere.net>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH 1/2][meta-initramfs] dracut: RDEPEND on systemd optionally
Date: Thu, 10 Sep 2015 12:36:12 +0200	[thread overview]
Message-ID: <msrmes$se8$1@ger.gmane.org> (raw)
In-Reply-To: <d3f90d1e80c9db274e5d021e5e7973e6fb22a7e6.1441869690.git.wenzong.fan@windriver.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Op 10-09-15 om 09:26 schreef wenzong.fan@windriver.com:
> From: Robert Yang <liezhi.yang@windriver.com>
> 
> Use PACKAGECONFIG to depend on systemd optionally.
> 
> Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by:
> Wenzong Fan <wenzong.fan@windriver.com> --- 
> meta-initramfs/recipes-devtools/dracut/dracut_git.bb | 11 ++++++----- 1
> file changed, 6 insertions(+), 5 deletions(-)
> 
> diff --git a/meta-initramfs/recipes-devtools/dracut/dracut_git.bb
> b/meta-initramfs/recipes-devtools/dracut/dracut_git.bb index
> b7d88fd..3a72251 100644 ---
> a/meta-initramfs/recipes-devtools/dracut/dracut_git.bb +++
> b/meta-initramfs/recipes-devtools/dracut/dracut_git.bb @@ -13,9 +13,6 @@
> SRC_URI = "git://git.kernel.org/pub/scm/boot/dracut/dracut.git"
> 
> S = "${WORKDIR}/git"
> 
> -inherit distro_features_check -REQUIRED_DISTRO_FEATURES = "systemd" - 
> EXTRA_OECONF = "--prefix=${prefix} \ --libdir=${libdir} \ 
> --datadir=${datadir} \ @@ -25,7 +22,7 @@ EXTRA_OECONF =
> "--prefix=${prefix} \ --bindir=${bindir} \ --includedir=${includedir} \ 
> --localstatedir=${localstatedir} \ -
> --systemdsystemunitdir=${systemd_unitdir}/system" +               "
> 
> do_configure() { ./configure ${EXTRA_OECONF} @@ -44,9 +41,13 @@
> FILES_${PN} += " ${libdir}/kernel \ " CONFFILES_${PN} +=
> "${sysconfdir}/dracut.conf"
> 
> -RDEPENDS_${PN} = "systemd findutils cpio util-linux-blkid
> util-linux-getopt bash ldd" +RDEPENDS_${PN} = "findutils cpio
> util-linux-blkid util-linux-getopt bash ldd" 
> RDEPENDS_${PN}-bash-completion = "bash-completion"
> 
> +# RDEPEND on systemd optionally +PACKAGECONFIG ??=
> "${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}" 
> +PACKAGECONFIG[systemd] =
> "--with-systemdsystemunitdir=${systemd_unitdir}/system/,,,systemd"

Since packageconfig deals with do_configure, it needs to go next to
EXTRA_OECONF, not next to R*

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org

iD8DBQFV8V0cMkyGM64RGpERAioKAJ0eFaToEpbhH9mu4J8r02DP9KM1NgCgtHTx
ESYXBkXqAe55sypT5UjiyiE=
=Ueoe
-----END PGP SIGNATURE-----



  reply	other threads:[~2015-09-10 10:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-10  7:26 [PATCH 0/2][meta-initramfs] dracut: RDEPEND on systemd optionally & install modules to /usr/lib wenzong.fan
2015-09-10  7:26 ` [PATCH 1/2][meta-initramfs] dracut: RDEPEND on systemd optionally wenzong.fan
2015-09-10 10:36   ` Koen Kooi [this message]
2015-09-10  7:26 ` [PATCH 2/2][meta-initramfs] dracut: install modules to /usr/lib wenzong.fan

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='msrmes$se8$1@ger.gmane.org' \
    --to=koen@dominion.thruhere.net \
    --cc=openembedded-devel@lists.openembedded.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.