mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-26 07:37:14 +00:00
dracut: RDEPEND on systemd optionally
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> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
committed by
Martin Jansa
parent
2ab254ce1a
commit
ea86048c8e
@@ -13,9 +13,6 @@ SRC_URI = "git://git.kernel.org/pub/scm/boot/dracut/dracut.git"
|
|||||||
|
|
||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
inherit distro_features_check
|
|
||||||
REQUIRED_DISTRO_FEATURES = "systemd"
|
|
||||||
|
|
||||||
EXTRA_OECONF = "--prefix=${prefix} \
|
EXTRA_OECONF = "--prefix=${prefix} \
|
||||||
--libdir=${libdir} \
|
--libdir=${libdir} \
|
||||||
--datadir=${datadir} \
|
--datadir=${datadir} \
|
||||||
@@ -25,7 +22,11 @@ EXTRA_OECONF = "--prefix=${prefix} \
|
|||||||
--bindir=${bindir} \
|
--bindir=${bindir} \
|
||||||
--includedir=${includedir} \
|
--includedir=${includedir} \
|
||||||
--localstatedir=${localstatedir} \
|
--localstatedir=${localstatedir} \
|
||||||
--systemdsystemunitdir=${systemd_unitdir}/system"
|
"
|
||||||
|
|
||||||
|
# RDEPEND on systemd optionally
|
||||||
|
PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
|
||||||
|
PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/,,,systemd"
|
||||||
|
|
||||||
do_configure() {
|
do_configure() {
|
||||||
./configure ${EXTRA_OECONF}
|
./configure ${EXTRA_OECONF}
|
||||||
@@ -44,7 +45,7 @@ FILES_${PN} += " ${libdir}/kernel \
|
|||||||
"
|
"
|
||||||
CONFFILES_${PN} += "${sysconfdir}/dracut.conf"
|
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"
|
RDEPENDS_${PN}-bash-completion = "bash-completion"
|
||||||
|
|
||||||
# This could be optimized a bit, but let's avoid non-booting systems :)
|
# This could be optimized a bit, but let's avoid non-booting systems :)
|
||||||
|
|||||||
Reference in New Issue
Block a user