diff options
Diffstat (limited to 'meta/recipes-kernel/kexec/kexec-tools_2.0.15.bb')
-rw-r--r-- | meta/recipes-kernel/kexec/kexec-tools_2.0.15.bb | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/meta/recipes-kernel/kexec/kexec-tools_2.0.15.bb b/meta/recipes-kernel/kexec/kexec-tools_2.0.15.bb new file mode 100644 index 0000000000..6bd9025e6f --- /dev/null +++ b/meta/recipes-kernel/kexec/kexec-tools_2.0.15.bb | |||
@@ -0,0 +1,52 @@ | |||
1 | require kexec-tools.inc | ||
2 | export LDFLAGS = "-L${STAGING_LIBDIR}" | ||
3 | EXTRA_OECONF = " --with-zlib=yes" | ||
4 | |||
5 | SRC_URI += "${KERNELORG_MIRROR}/linux/utils/kernel/kexec/kexec-tools-${PV}.tar.gz \ | ||
6 | file://0002-powerpc-change-the-memory-size-limit.patch \ | ||
7 | file://0001-purgatory-Pass-r-directly-to-linker.patch \ | ||
8 | file://0010-kexec-ARM-Fix-add_buffer_phys_virt-align-issue.patch \ | ||
9 | file://kexec-x32.patch \ | ||
10 | file://0001-Disable-PIE-during-link.patch \ | ||
11 | " | ||
12 | |||
13 | SRC_URI[md5sum] = "78906fdc255656fa2b9996c8acb3ef62" | ||
14 | SRC_URI[sha256sum] = "42dbd0dab9964cd1ed89fa4571c8d13191eb7132b361ade5ac44517c91ecb97e" | ||
15 | |||
16 | SECURITY_PIE_CFLAGS_remove = "-fPIE -pie" | ||
17 | |||
18 | PACKAGES =+ "kexec kdump vmcore-dmesg" | ||
19 | |||
20 | ALLOW_EMPTY_${PN} = "1" | ||
21 | RRECOMMENDS_${PN} = "kexec kdump vmcore-dmesg" | ||
22 | |||
23 | FILES_kexec = "${sbindir}/kexec" | ||
24 | FILES_kdump = "${sbindir}/kdump \ | ||
25 | ${sysconfdir}/sysconfig/kdump.conf \ | ||
26 | ${sysconfdir}/init.d/kdump \ | ||
27 | ${libexecdir}/kdump-helper \ | ||
28 | ${systemd_unitdir}/system/kdump.service \ | ||
29 | " | ||
30 | |||
31 | FILES_vmcore-dmesg = "${sbindir}/vmcore-dmesg" | ||
32 | |||
33 | inherit update-rc.d systemd | ||
34 | |||
35 | INITSCRIPT_PACKAGES = "kdump" | ||
36 | INITSCRIPT_NAME_kdump = "kdump" | ||
37 | INITSCRIPT_PARAMS_kdump = "start 56 2 3 4 5 . stop 56 0 1 6 ." | ||
38 | |||
39 | do_install_append () { | ||
40 | install -d ${D}${sysconfdir}/sysconfig | ||
41 | install -m 0644 ${WORKDIR}/kdump.conf ${D}${sysconfdir}/sysconfig | ||
42 | |||
43 | if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then | ||
44 | install -D -m 0755 ${WORKDIR}/kdump ${D}${sysconfdir}/init.d/kdump | ||
45 | fi | ||
46 | |||
47 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | ||
48 | install -D -m 0755 ${WORKDIR}/kdump ${D}${libexecdir}/kdump-helper | ||
49 | install -D -m 0644 ${WORKDIR}/kdump.service ${D}${systemd_unitdir}/system/kdump.service | ||
50 | sed -i -e 's,@LIBEXECDIR@,${libexecdir},g' ${D}${systemd_unitdir}/system/kdump.service | ||
51 | fi | ||
52 | } | ||