diff options
Diffstat (limited to 'meta-initramfs/recipes-devtools')
-rw-r--r-- | meta-initramfs/recipes-devtools/dracut/dracut/0001-fix-broken-symlink-in-dracut-config-examples.patch | 44 | ||||
-rw-r--r-- | meta-initramfs/recipes-devtools/dracut/dracut_106.bb (renamed from meta-initramfs/recipes-devtools/dracut/dracut_102.bb) | 26 | ||||
-rw-r--r-- | meta-initramfs/recipes-devtools/grubby/grubby_git.bb | 12 | ||||
-rw-r--r-- | meta-initramfs/recipes-devtools/klibc/klibc.inc | 2 | ||||
-rw-r--r-- | meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc_2.0.2.bb | 1 |
5 files changed, 70 insertions, 15 deletions
diff --git a/meta-initramfs/recipes-devtools/dracut/dracut/0001-fix-broken-symlink-in-dracut-config-examples.patch b/meta-initramfs/recipes-devtools/dracut/dracut/0001-fix-broken-symlink-in-dracut-config-examples.patch new file mode 100644 index 0000000000..7d0b65a161 --- /dev/null +++ b/meta-initramfs/recipes-devtools/dracut/dracut/0001-fix-broken-symlink-in-dracut-config-examples.patch | |||
@@ -0,0 +1,44 @@ | |||
1 | From 8871c593973d9abfef45408575e5da887830f42e Mon Sep 17 00:00:00 2001 | ||
2 | From: Hongxu Jia <hongxu.jia@windriver.com> | ||
3 | Date: Thu, 22 May 2025 18:07:27 +0800 | ||
4 | Subject: [PATCH] fix broken symlink in dracut config examples | ||
5 | |||
6 | Due to commit [1], it installs dracut config examples under /usr. | ||
7 | But while enable_test=no, the symlink of test in dracut config is broken | ||
8 | ... | ||
9 | root@qemux86-64:~# ls /usr/lib/dracut/dracut.conf.d/test* -ahl | ||
10 | lrwxrwxrwx 1 root root 27 Apr 5 2011 /usr/lib/dracut/dracut.conf.d/test -> ../test/dracut.conf.d/test/ | ||
11 | lrwxrwxrwx 1 root root 36 Apr 5 2011 /usr/lib/dracut/dracut.conf.d/test-makeroot -> ../test/dracut.conf.d/test-makeroot/ | ||
12 | lrwxrwxrwx 1 root root 31 Apr 5 2011 /usr/lib/dracut/dracut.conf.d/test-root -> ../test/dracut.conf.d/test-root | ||
13 | root@qemux86-64:~# realpath /usr/lib/dracut/dracut.conf.d/test* | ||
14 | realpath: /usr/lib/dracut/dracut.conf.d/test: No such file or directory | ||
15 | realpath: /usr/lib/dracut/dracut.conf.d/test-makeroot: No such file or directory | ||
16 | realpath: /usr/lib/dracut/dracut.conf.d/test-root: No such file or directory | ||
17 | ... | ||
18 | |||
19 | This commit cleans up test symlink if enable_test=no | ||
20 | |||
21 | [1] https://github.com/dracut-ng/dracut-ng/commit/0d369e3e30935dffe48dfff1e90463868e7f804a | ||
22 | |||
23 | Upstream-Status: Submitted [https://github.com/dracut-ng/dracut-ng/pull/1344] | ||
24 | |||
25 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
26 | --- | ||
27 | Makefile | 1 + | ||
28 | 1 file changed, 1 insertion(+) | ||
29 | |||
30 | diff --git a/Makefile b/Makefile | ||
31 | index d33aebbc..151d9f79 100644 | ||
32 | --- a/Makefile | ||
33 | +++ b/Makefile | ||
34 | @@ -180,6 +180,7 @@ ifneq ($(enable_test),no) | ||
35 | cp -arx test $(DESTDIR)$(pkglibdir) | ||
36 | else | ||
37 | rm -rf $(DESTDIR)$(pkglibdir)/modules.d/80test* | ||
38 | + rm -rf $(DESTDIR)$(pkglibdir)/dracut.conf.d/test* | ||
39 | endif | ||
40 | ifneq ($(enable_documentation),no) | ||
41 | for i in $(man1pages); do install -m 0644 $$i $(DESTDIR)$(mandir)/man1/$${i##*/}; done | ||
42 | -- | ||
43 | 2.34.1 | ||
44 | |||
diff --git a/meta-initramfs/recipes-devtools/dracut/dracut_102.bb b/meta-initramfs/recipes-devtools/dracut/dracut_106.bb index 39ff265a31..d59b357dc1 100644 --- a/meta-initramfs/recipes-devtools/dracut/dracut_102.bb +++ b/meta-initramfs/recipes-devtools/dracut/dracut_106.bb | |||
@@ -7,9 +7,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | |||
7 | 7 | ||
8 | PE = "1" | 8 | PE = "1" |
9 | 9 | ||
10 | SRCREV = "1a8ee6e00bbe017717a5ef9e9bcfefb3b88f629e" | 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 | file://0001-fix-broken-symlink-in-dracut-config-examples.patch \ | ||
13 | " | 14 | " |
14 | 15 | ||
15 | DEPENDS += "kmod" | 16 | DEPENDS += "kmod" |
@@ -17,24 +18,23 @@ DEPENDS:append:libc-musl = " fts" | |||
17 | 18 | ||
18 | inherit bash-completion pkgconfig | 19 | inherit bash-completion pkgconfig |
19 | 20 | ||
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 DRACUT_FULL_VERSION=${PV}' |
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 | ||
diff --git a/meta-initramfs/recipes-devtools/grubby/grubby_git.bb b/meta-initramfs/recipes-devtools/grubby/grubby_git.bb index ff673e21bb..60f68728e9 100644 --- a/meta-initramfs/recipes-devtools/grubby/grubby_git.bb +++ b/meta-initramfs/recipes-devtools/grubby/grubby_git.bb | |||
@@ -12,7 +12,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=892f569a555ba9c07a568a7c0c4fa63a" | |||
12 | DEPENDS = "popt util-linux rpm" | 12 | DEPENDS = "popt util-linux rpm" |
13 | DEPENDS:append:libc-musl = " libexecinfo argp-standalone" | 13 | DEPENDS:append:libc-musl = " libexecinfo argp-standalone" |
14 | 14 | ||
15 | S = "${WORKDIR}/git" | ||
16 | SRCREV = "c01b0d5bb182bde35b464d14996acf354a3ada2e" | 15 | SRCREV = "c01b0d5bb182bde35b464d14996acf354a3ada2e" |
17 | SRC_URI = "git://github.com/rhboot/grubby.git;protocol=https;;branch=main \ | 16 | SRC_URI = "git://github.com/rhboot/grubby.git;protocol=https;;branch=main \ |
18 | file://0001-rename-grub2-editenv-to-grub-editenv.patch \ | 17 | file://0001-rename-grub2-editenv-to-grub-editenv.patch \ |
@@ -24,12 +23,21 @@ SRC_URI = "git://github.com/rhboot/grubby.git;protocol=https;;branch=main \ | |||
24 | 23 | ||
25 | RDEPENDS:${PN} += "dracut" | 24 | RDEPENDS:${PN} += "dracut" |
26 | 25 | ||
27 | inherit autotools-brokensep ptest | 26 | inherit ptest |
28 | 27 | ||
29 | EXTRA_OEMAKE = "-e 'CC=${CC}' 'LDFLAGS=${LDFLAGS}' 'LIBS=${LIBS}'" | 28 | EXTRA_OEMAKE = "-e 'CC=${CC}' 'LDFLAGS=${LDFLAGS}' 'LIBS=${LIBS}'" |
30 | 29 | ||
31 | LIBS:libc-musl = "-lexecinfo -largp" | 30 | LIBS:libc-musl = "-lexecinfo -largp" |
32 | LIBS ?= "" | 31 | LIBS ?= "" |
32 | |||
33 | do_compile() { | ||
34 | oe_runmake | ||
35 | } | ||
36 | |||
37 | do_install() { | ||
38 | oe_runmake DESTDIR=${D} install | ||
39 | } | ||
40 | |||
33 | do_install_ptest() { | 41 | do_install_ptest() { |
34 | install -d ${D}${PTEST_PATH} | 42 | install -d ${D}${PTEST_PATH} |
35 | cp -r ${S}/test ${S}/test.sh ${D}${PTEST_PATH} | 43 | cp -r ${S}/test ${S}/test.sh ${D}${PTEST_PATH} |
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc.inc b/meta-initramfs/recipes-devtools/klibc/klibc.inc index 6093e19b7c..2af53b18e3 100644 --- a/meta-initramfs/recipes-devtools/klibc/klibc.inc +++ b/meta-initramfs/recipes-devtools/klibc/klibc.inc | |||
@@ -29,7 +29,7 @@ ARMPATCHES:arm = " \ | |||
29 | " | 29 | " |
30 | SRC_URI[sha256sum] = "d673a294f742d59368222ff5c38462d81098c55063799de6fb8a7ba3d4af0436" | 30 | SRC_URI[sha256sum] = "d673a294f742d59368222ff5c38462d81098c55063799de6fb8a7ba3d4af0436" |
31 | 31 | ||
32 | S = "${WORKDIR}/klibc-${PV}" | 32 | S = "${UNPACKDIR}/klibc-${PV}" |
33 | 33 | ||
34 | OPTFLAGS = "${TUNE_CCARGS} -Os -fcommon" | 34 | OPTFLAGS = "${TUNE_CCARGS} -Os -fcommon" |
35 | OPTFLAGS:append = " ${DEBUG_PREFIX_MAP}" | 35 | OPTFLAGS:append = " ${DEBUG_PREFIX_MAP}" |
diff --git a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc_2.0.2.bb b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc_2.0.2.bb index 43ddb82a00..461d75e625 100644 --- a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc_2.0.2.bb +++ b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc_2.0.2.bb | |||
@@ -19,7 +19,6 @@ SRC_URI = "git://git.infradead.org/mtd-utils.git;branch=master \ | |||
19 | file://0001-make-Add-compiler-includes-in-cflags.patch \ | 19 | file://0001-make-Add-compiler-includes-in-cflags.patch \ |
20 | " | 20 | " |
21 | 21 | ||
22 | S = "${WORKDIR}/git" | ||
23 | 22 | ||
24 | EXTRA_OECONF += "--disable-tests --without-jffs --without-ubifs" | 23 | EXTRA_OECONF += "--disable-tests --without-jffs --without-ubifs" |
25 | 24 | ||