Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | SUMMARY = "Initramfs generator using udev" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 2 | HOMEPAGE = "https://dracut.wiki.kernel.org/index.php/Main_Page" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 3 | DESCRIPTION = "Dracut is an event driven initramfs infrastructure. dracut (the tool) is used to create an initramfs image by copying tools and files from an installed system and combining it with the dracut framework, usually found in /usr/lib/dracut/modules.d." |
| 4 | |
| 5 | LICENSE = "GPLv2" |
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
| 7 | |
| 8 | PE = "1" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 9 | PV = "049" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 10 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 11 | # v048 tag |
| 12 | SRCREV = "225e4b94cbdb702cf512490dcd2ad9ca5f5b22c1" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 13 | SRC_URI = "git://git.kernel.org/pub/scm/boot/dracut/dracut.git;protocol=http \ |
| 14 | file://0001-util.h-include-sys-reg.h-when-libc-glibc.patch \ |
Brad Bishop | 34ae600 | 2019-04-08 15:21:03 -0400 | [diff] [blame] | 15 | file://0001-dracut.sh-improve-udevdir.patch \ |
Brad Bishop | c8f4712 | 2019-06-24 09:36:18 -0400 | [diff] [blame] | 16 | file://0001-set-viriable-_drv-not-local.patch \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 17 | " |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 18 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 19 | DEPENDS += "kmod" |
| 20 | DEPENDS_append_libc-musl = " fts" |
| 21 | |
| 22 | inherit bash-completion pkgconfig |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 23 | |
| 24 | S = "${WORKDIR}/git" |
| 25 | |
| 26 | EXTRA_OECONF = "--prefix=${prefix} \ |
| 27 | --libdir=${prefix}/lib \ |
| 28 | --datadir=${datadir} \ |
| 29 | --sysconfdir=${sysconfdir} \ |
| 30 | --sbindir=${sbindir} \ |
| 31 | --disable-documentation \ |
| 32 | --bindir=${bindir} \ |
| 33 | --includedir=${includedir} \ |
| 34 | --localstatedir=${localstatedir} \ |
| 35 | " |
| 36 | |
| 37 | # RDEPEND on systemd optionally |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 38 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 39 | PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/,,,systemd" |
| 40 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 41 | EXTRA_OEMAKE += 'libdir=${prefix}/lib LDLIBS="${LDLIBS}"' |
| 42 | |
| 43 | LDLIBS_append_libc-musl = " -lfts" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 44 | |
| 45 | do_configure() { |
| 46 | ./configure ${EXTRA_OECONF} |
| 47 | } |
| 48 | |
| 49 | do_install() { |
| 50 | oe_runmake install DESTDIR=${D} |
| 51 | # Its Makefile uses cp -arx to install modules.d, so fix the owner |
| 52 | # to root:root |
| 53 | chown -R root:root ${D}/${prefix}/lib/dracut/modules.d |
| 54 | } |
| 55 | |
| 56 | FILES_${PN} += "${prefix}/lib/kernel \ |
| 57 | ${prefix}/lib/dracut \ |
| 58 | ${systemd_unitdir} \ |
| 59 | " |
| 60 | FILES_${PN}-dbg += "${prefix}/lib/dracut/.debug" |
| 61 | |
| 62 | CONFFILES_${PN} += "${sysconfdir}/dracut.conf" |
| 63 | |
| 64 | RDEPENDS_${PN} = "findutils cpio util-linux-blkid util-linux-getopt util-linux bash ldd" |
| 65 | |
| 66 | # This could be optimized a bit, but let's avoid non-booting systems :) |
| 67 | RRECOMMENDS_${PN} = " \ |
| 68 | kernel-modules \ |
| 69 | busybox \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 70 | coreutils \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 71 | " |