diff options
author | Yi Zhao <yi.zhao@windriver.com> | 2025-02-25 23:34:13 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2025-02-25 09:48:25 -0800 |
commit | 9ea6475daa324194184bbec8efa7f73245ff2d60 (patch) | |
tree | 2cd7b6e054f375c23aaa475b6a495c2736f52ead | |
parent | a495fd2a54614ab238e4e87355cc850c68d56fd1 (diff) | |
download | meta-openembedded-9ea6475daa324194184bbec8efa7f73245ff2d60.tar.gz |
dracut: upgrade 103 -> 106
ChangeLog:
https://github.com/dracut-ng/dracut-ng/releases/tag/106
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-initramfs/recipes-devtools/dracut/dracut_106.bb (renamed from meta-initramfs/recipes-devtools/dracut/dracut_103.bb) | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/meta-initramfs/recipes-devtools/dracut/dracut_103.bb b/meta-initramfs/recipes-devtools/dracut/dracut_106.bb index 3ee348dbfd..b474514713 100644 --- a/meta-initramfs/recipes-devtools/dracut/dracut_103.bb +++ b/meta-initramfs/recipes-devtools/dracut/dracut_106.bb | |||
@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | |||
7 | 7 | ||
8 | PE = "1" | 8 | PE = "1" |
9 | 9 | ||
10 | SRCREV = "3fce598fb45aa5618cdf885eb48cf327104ffcb8" | 10 | SRCREV = "956c08774074ddc45b2f975e13d5c13d1fc36eff" |
11 | SRC_URI = "git://github.com/dracut-ng/dracut-ng.git;protocol=http;branch=main \ | 11 | SRC_URI = "git://github.com/dracut-ng/dracut-ng.git;protocol=http;branch=main \ |
12 | file://0001-feat-dracut-install-split-ldd-command-arguments-for-.patch \ | 12 | file://0001-feat-dracut-install-split-ldd-command-arguments-for-.patch \ |
13 | " | 13 | " |
@@ -20,21 +20,21 @@ inherit bash-completion pkgconfig | |||
20 | S = "${WORKDIR}/git" | 20 | S = "${WORKDIR}/git" |
21 | 21 | ||
22 | EXTRA_OECONF = "--prefix=${prefix} \ | 22 | EXTRA_OECONF = "--prefix=${prefix} \ |
23 | --libdir=${prefix}/lib \ | 23 | --libdir=${nonarch_libdir} \ |
24 | --datadir=${datadir} \ | 24 | --datadir=${datadir} \ |
25 | --sysconfdir=${sysconfdir} \ | 25 | --sysconfdir=${sysconfdir} \ |
26 | --sbindir=${sbindir} \ | 26 | --sbindir=${sbindir} \ |
27 | --disable-documentation \ | ||
28 | --bindir=${bindir} \ | 27 | --bindir=${bindir} \ |
29 | --includedir=${includedir} \ | 28 | --includedir=${includedir} \ |
30 | --localstatedir=${localstatedir} \ | 29 | --localstatedir=${localstatedir} \ |
30 | --disable-documentation \ | ||
31 | " | 31 | " |
32 | 32 | ||
33 | # RDEPEND on systemd optionally | 33 | # RDEPEND on systemd optionally |
34 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" | 34 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" |
35 | PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/,,,systemd" | 35 | PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/,,,systemd" |
36 | 36 | ||
37 | EXTRA_OEMAKE += 'libdir=${prefix}/lib LDLIBS="${LDLIBS}"' | 37 | EXTRA_OEMAKE += 'libdir=${nonarch_libdir} LDLIBS="${LDLIBS}" enable_test=no' |
38 | 38 | ||
39 | CFLAGS:append = " -fPIC" | 39 | CFLAGS:append = " -fPIC" |
40 | LDLIBS:append:libc-musl = " -lfts" | 40 | LDLIBS:append:libc-musl = " -lfts" |
@@ -47,22 +47,26 @@ do_install() { | |||
47 | oe_runmake install DESTDIR=${D} | 47 | oe_runmake install DESTDIR=${D} |
48 | # Its Makefile uses cp -arx to install modules.d, so fix the owner | 48 | # Its Makefile uses cp -arx to install modules.d, so fix the owner |
49 | # to root:root | 49 | # to root:root |
50 | chown -R root:root ${D}/${prefix}/lib/dracut/modules.d | 50 | chown -R root:root ${D}/${nonarch_libdir}/dracut/modules.d \ |
51 | ${D}/${nonarch_libdir}/dracut/dracut.conf.d | ||
52 | |||
53 | if ! ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | ||
54 | rm -rf ${D}${nonarch_libdir}/systemd | ||
55 | fi | ||
51 | } | 56 | } |
52 | 57 | ||
53 | FILES:${PN} += "${prefix}/lib/kernel \ | 58 | FILES:${PN} += "${nonarch_libdir}/kernel \ |
54 | ${prefix}/lib/dracut \ | 59 | ${nonarch_libdir}/dracut \ |
55 | ${systemd_unitdir} \ | 60 | ${systemd_unitdir} \ |
56 | " | 61 | " |
57 | FILES:${PN}-dbg += "${prefix}/lib/dracut/.debug" | 62 | FILES:${PN}-dbg += "${nonarch_libdir}/dracut/.debug" |
58 | 63 | ||
59 | CONFFILES:${PN} += "${sysconfdir}/dracut.conf" | 64 | CONFFILES:${PN} += "${sysconfdir}/dracut.conf" |
60 | 65 | ||
61 | RDEPENDS:${PN} = "findutils cpio util-linux-blkid util-linux-getopt util-linux bash ldd" | 66 | RDEPENDS:${PN} = "findutils cpio util-linux-blkid util-linux-getopt util-linux bash ldd" |
62 | 67 | ||
63 | # This could be optimized a bit, but let's avoid non-booting systems :) | 68 | # This could be optimized a bit, but let's avoid non-booting systems :) |
64 | RRECOMMENDS:${PN} = " \ | 69 | RRECOMMENDS:${PN} = "kernel-modules \ |
65 | kernel-modules \ | ||
66 | coreutils \ | 70 | coreutils \ |
67 | " | 71 | " |
68 | 72 | ||