summaryrefslogtreecommitdiffstats
path: root/meta-initramfs
diff options
context:
space:
mode:
Diffstat (limited to 'meta-initramfs')
-rw-r--r--meta-initramfs/recipes-devtools/dracut/dracut_git.bb25
1 files 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 ea55a4dfb..77c137c46 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"
13 13
14S = "${WORKDIR}/git" 14S = "${WORKDIR}/git"
15 15
16do_configure() { 16inherit distro_features_check
17 ./configure --prefix=${prefix} \ 17REQUIRED_DISTRO_FEATURES = "systemd"
18
19EXTRA_OECONF = "--prefix=${prefix} \
18 --libdir=${libdir} \ 20 --libdir=${libdir} \
19 --datadir=${datadir} \ 21 --datadir=${datadir} \
20 --sysconfdir=${sysconfdir} \ 22 --sysconfdir=${sysconfdir} \
@@ -23,20 +25,31 @@ do_configure() {
23 --bindir=${bindir} \ 25 --bindir=${bindir} \
24 --includedir=${includedir} \ 26 --includedir=${includedir} \
25 --localstatedir=${localstatedir} \ 27 --localstatedir=${localstatedir} \
28 --systemdsystemunitdir=${systemd_unitdir}/system"
29
30do_configure() {
31 ./configure ${EXTRA_OECONF}
26} 32}
27 33
28do_install() { 34do_install() {
29 oe_runmake install DESTDIR=${D} 35 oe_runmake install DESTDIR=${D}
30} 36}
31 37
32FILES_${PN} += "${datadir}/bash-completion \ 38PACKAGES =+ "${PN}-bash-completion"
33 ${libdir}/kernel \ 39
40FILES_${PN}-bash-completion = "${datadir}/bash-completion"
41
42FILES_${PN} += " ${libdir}/kernel \
43 ${systemd_unitdir} \
34 " 44 "
45CONFFILES_${PN} += "${sysconfdir}/dracut.conf"
46
47RDEPENDS_${PN} = "systemd findutils cpio util-linux-blkid util-linux-getopt bash ldd"
48RDEPENDS_${PN}-bash-completion = "bash-completion"
35 49
36# 'getopt' is in the util-linux main package
37RDEPENDS_${PN} = "systemd findutils cpio util-linux-blkid util-linux bash ldd"
38# This could be optimized a bit, but let's avoid non-booting systems :) 50# This could be optimized a bit, but let's avoid non-booting systems :)
39RRECOMMENDS_${PN} = " \ 51RRECOMMENDS_${PN} = " \
40 kernel-modules \ 52 kernel-modules \
53 busybox \
41 coreutils \ 54 coreutils \
42 " 55 "