diff options
| author | Wang Mingyu <wangmy@fujitsu.com> | 2024-01-15 16:59:23 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-01-19 12:21:23 +0000 |
| commit | 23311babb0dc922f2c20ce85b211136346085802 (patch) | |
| tree | 0916c15d5b7c06552537587bb74f5932e7060cd9 /meta/recipes-kernel/kexec/kexec-tools_2.0.28.bb | |
| parent | b9fee5ff9e53e21707383c7c70bd204b21c37520 (diff) | |
| download | poky-23311babb0dc922f2c20ce85b211136346085802.tar.gz | |
kexec-tools: upgrade 2.0.27 -> 2.0.28
0002-purgatory-Pass-r-directly-to-linker.patch
0003-kexec-ARM-Fix-add_buffer_phys_virt-align-issue.patch
0005-Disable-PIE-during-link.patch
refreshed for 2.0.28
(From OE-Core rev: ad748d0cf6ed87edcd33a13ed8aae11690d4d8ab)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/kexec/kexec-tools_2.0.28.bb')
| -rw-r--r-- | meta/recipes-kernel/kexec/kexec-tools_2.0.28.bb | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/meta/recipes-kernel/kexec/kexec-tools_2.0.28.bb b/meta/recipes-kernel/kexec/kexec-tools_2.0.28.bb new file mode 100644 index 0000000000..c2141e6716 --- /dev/null +++ b/meta/recipes-kernel/kexec/kexec-tools_2.0.28.bb | |||
| @@ -0,0 +1,85 @@ | |||
| 1 | |||
| 2 | SUMMARY = "Kexec fast reboot tools" | ||
| 3 | DESCRIPTION = "Kexec is a fast reboot feature that lets you reboot to a new Linux kernel" | ||
| 4 | HOMEPAGE = "http://kernel.org/pub/linux/utils/kernel/kexec/" | ||
| 5 | SECTION = "kernel/userland" | ||
| 6 | LICENSE = "GPL-2.0-only" | ||
| 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=ea5bed2f60d357618ca161ad539f7c0a \ | ||
| 8 | file://kexec/kexec.c;beginline=1;endline=20;md5=af10f6ae4a8715965e648aa687ad3e09" | ||
| 9 | DEPENDS = "zlib xz" | ||
| 10 | |||
| 11 | SRC_URI = "${KERNELORG_MIRROR}/linux/utils/kernel/kexec/kexec-tools-${PV}.tar.gz \ | ||
| 12 | file://kdump \ | ||
| 13 | file://kdump.conf \ | ||
| 14 | file://kdump.service \ | ||
| 15 | file://0001-powerpc-change-the-memory-size-limit.patch \ | ||
| 16 | file://0002-purgatory-Pass-r-directly-to-linker.patch \ | ||
| 17 | file://0003-kexec-ARM-Fix-add_buffer_phys_virt-align-issue.patch \ | ||
| 18 | file://0005-Disable-PIE-during-link.patch \ | ||
| 19 | file://0001-arm64-kexec-disabled-check-if-kaslr-seed-dtb-propert.patch \ | ||
| 20 | " | ||
| 21 | |||
| 22 | SRC_URI[sha256sum] = "f33d2660b3e38d25a127e87097978e0f7a9a73ab5151a29eb80974d169ff6a29" | ||
| 23 | |||
| 24 | inherit autotools update-rc.d systemd | ||
| 25 | |||
| 26 | export LDFLAGS = "-L${STAGING_LIBDIR}" | ||
| 27 | EXTRA_OECONF = " --with-zlib=yes" | ||
| 28 | |||
| 29 | do_compile:prepend() { | ||
| 30 | # Remove the prepackaged config.h from the source tree as it overrides | ||
| 31 | # the same file generated by configure and placed in the build tree | ||
| 32 | rm -f ${S}/include/config.h | ||
| 33 | |||
| 34 | # Remove the '*.d' file to make sure the recompile is OK | ||
| 35 | for dep in `find ${B} -type f -name '*.d'`; do | ||
| 36 | dep_no_d="`echo $dep | sed 's#.d$##'`" | ||
| 37 | # Remove file.d when there is a file.o | ||
| 38 | if [ -f "$dep_no_d.o" ]; then | ||
| 39 | rm -f $dep | ||
| 40 | fi | ||
| 41 | done | ||
| 42 | } | ||
| 43 | |||
| 44 | do_install:append () { | ||
| 45 | install -d ${D}${sysconfdir}/sysconfig | ||
| 46 | install -m 0644 ${WORKDIR}/kdump.conf ${D}${sysconfdir}/sysconfig | ||
| 47 | |||
| 48 | if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then | ||
| 49 | install -D -m 0755 ${WORKDIR}/kdump ${D}${sysconfdir}/init.d/kdump | ||
| 50 | fi | ||
| 51 | |||
| 52 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | ||
| 53 | install -D -m 0755 ${WORKDIR}/kdump ${D}${libexecdir}/kdump-helper | ||
| 54 | install -D -m 0644 ${WORKDIR}/kdump.service ${D}${systemd_system_unitdir}/kdump.service | ||
| 55 | sed -i -e 's,@LIBEXECDIR@,${libexecdir},g' ${D}${systemd_system_unitdir}/kdump.service | ||
| 56 | fi | ||
| 57 | } | ||
| 58 | |||
| 59 | PACKAGES =+ "kexec kdump vmcore-dmesg" | ||
| 60 | |||
| 61 | ALLOW_EMPTY:${PN} = "1" | ||
| 62 | RRECOMMENDS:${PN} = "kexec kdump vmcore-dmesg" | ||
| 63 | |||
| 64 | FILES:kexec = "${sbindir}/kexec" | ||
| 65 | FILES:kdump = "${sbindir}/kdump \ | ||
| 66 | ${sysconfdir}/sysconfig/kdump.conf \ | ||
| 67 | ${sysconfdir}/init.d/kdump \ | ||
| 68 | ${libexecdir}/kdump-helper \ | ||
| 69 | ${systemd_system_unitdir}/kdump.service \ | ||
| 70 | " | ||
| 71 | |||
| 72 | FILES:vmcore-dmesg = "${sbindir}/vmcore-dmesg" | ||
| 73 | |||
| 74 | INITSCRIPT_PACKAGES = "kdump" | ||
| 75 | INITSCRIPT_NAME:kdump = "kdump" | ||
| 76 | INITSCRIPT_PARAMS:kdump = "start 56 2 3 4 5 . stop 56 0 1 6 ." | ||
| 77 | |||
| 78 | SYSTEMD_PACKAGES = "kdump" | ||
| 79 | SYSTEMD_SERVICE:kdump = "kdump.service" | ||
| 80 | |||
| 81 | SECURITY_PIE_CFLAGS:remove = "-fPIE -pie" | ||
| 82 | |||
| 83 | COMPATIBLE_HOST = '(x86_64.*|i.86.*|arm.*|aarch64.*|powerpc.*|mips.*)-(linux|freebsd.*)' | ||
| 84 | |||
| 85 | INSANE_SKIP:${PN} = "arch" | ||
