[oe] [meta-initramfs][PATCH v2 5/5] dracut: recipe cleanup

Dan McGregor danismostlikely at gmail.com
Fri Feb 6 15:03:07 UTC 2015


On 5 February 2015 at 12:44, Koen Kooi <koen at dominion.thruhere.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Dan McGregor schreef op 05-02-15 om 17:29:
>> From: Dan McGregor <dan.mcgregor at usask.ca>
>>
>> Split out bash-completion data Update RDEPENDS: getopt is
>> util-linux-getopt now
>
> So the blanket 'util-linux' RDEPENDS can go away, right?

Yep. I just confirmed that it can. A new version of this is on its way.


>
>> Use distro_features_check to require systemd Recommend busybox
>>
>> Signed-off-by: Dan McGregor <dan.mcgregor at usask.ca> ---
>> .../recipes-devtools/dracut/dracut_git.bb          | 25
>> ++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-)
>>
>> diff --git a/meta-initramfs/recipes-devtools/dracut/dracut_git.bb
>> b/meta-initramfs/recipes-devtools/dracut/dracut_git.bb index
>> ea55a4d..e425845 100644 ---
>> a/meta-initramfs/recipes-devtools/dracut/dracut_git.bb +++
>> b/meta-initramfs/recipes-devtools/dracut/dracut_git.bb @@ -13,8 +13,10 @@
>> SRC_URI = "git://git.kernel.org/pub/scm/boot/dracut/dracut.git"
>>
>> S = "${WORKDIR}/git"
>>
>> -do_configure() { -    ./configure --prefix=${prefix} \ +inherit
>> distro_features_check +REQUIRED_DISTRO_FEATURES = "systemd" +
>> +EXTRA_OECONF = "--prefix=${prefix} \ --libdir=${libdir} \
>> --datadir=${datadir} \ --sysconfdir=${sysconfdir} \ @@ -23,20 +25,31 @@
>> do_configure() { --bindir=${bindir} \ --includedir=${includedir} \
>> --localstatedir=${localstatedir} \ +
>> --systemdsystemunitdir=${systemd_unitdir}/system" + +do_configure() { +
>> ./configure ${EXTRA_OECONF} }
>>
>> do_install() { oe_runmake install DESTDIR=${D} }
>>
>> -FILES_${PN} += "${datadir}/bash-completion \ -
>> ${libdir}/kernel \ +PACKAGES =+ "${PN}-bash-completion" +
>> +FILES_${PN}-bash-completion = "${datadir}/bash-completion" +
>> +FILES_${PN} += " ${libdir}/kernel \ +                ${systemd_unitdir}
>> \ " +CONFFILES_${PN} += "${sysconfdir}/dracut.conf" + +RDEPENDS_${PN} =
>> "systemd findutils cpio util-linux-blkid util-linux-getopt util-linux
>> bash ldd" +RDEPENDS_${PN}-bash-completion = "bash-completion"
>>
>> -# 'getopt' is in the util-linux main package -RDEPENDS_${PN} = "systemd
>> findutils cpio util-linux-blkid util-linux bash ldd" # This could be
>> optimized a bit, but let's avoid non-booting systems :) RRECOMMENDS_${PN}
>> = " \ kernel-modules \ +                     busybox \ coreutils \ "
>>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (Darwin)
> Comment: GPGTools - http://gpgtools.org
>
> iD8DBQFU07n/MkyGM64RGpERAuZ6AKCK1aT62H7XvOeZU2+9RCZnMeMSqACfc/Ej
> 8ubI00/FGsDFssxdkXURRY0=
> =SpL4
> -----END PGP SIGNATURE-----
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel



More information about the Openembedded-devel mailing list