diff options
author | Wenlin Kang <wenlin.kang@windriver.com> | 2015-12-11 14:16:53 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-12-16 12:12:16 +0000 |
commit | a444eb5951112a4900665677b3bff323a8828e3f (patch) | |
tree | 272e6a91b59d954903c9702ed3267c7d7e8d81a3 /meta/recipes-kernel/kexec/kexec-tools_2.0.10.bb | |
parent | be9f7f960c4a0c7f6a7693ce478d75f7464f7e70 (diff) | |
download | poky-a444eb5951112a4900665677b3bff323a8828e3f.tar.gz |
kexec-tools: added the script kdump
Added the script file kdump,it provides the follow support:
1. Load a kdump kernel image into memory;
2. Copy away vmcore when system panic.
(From OE-Core rev: c2492edcb9366ed1741fc6be7d41bc17844041fd)
Signed-off-by: Wenlin Kang <wenlin.kang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/kexec/kexec-tools_2.0.10.bb')
-rw-r--r-- | meta/recipes-kernel/kexec/kexec-tools_2.0.10.bb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/recipes-kernel/kexec/kexec-tools_2.0.10.bb b/meta/recipes-kernel/kexec/kexec-tools_2.0.10.bb index ffdb983a41..f21121733f 100644 --- a/meta/recipes-kernel/kexec/kexec-tools_2.0.10.bb +++ b/meta/recipes-kernel/kexec/kexec-tools_2.0.10.bb | |||
@@ -17,6 +17,14 @@ PACKAGES =+ "kexec kdump vmcore-dmesg" | |||
17 | ALLOW_EMPTY_${PN} = "1" | 17 | ALLOW_EMPTY_${PN} = "1" |
18 | RRECOMMENDS_${PN} = "kexec kdump vmcore-dmesg" | 18 | RRECOMMENDS_${PN} = "kexec kdump vmcore-dmesg" |
19 | 19 | ||
20 | FILES_${PN} =+ "${sysconfig}/init.d/kdump ${sysconfig}/sysconfig/kdump.conf" | ||
20 | FILES_kexec = "${sbindir}/kexec" | 21 | FILES_kexec = "${sbindir}/kexec" |
21 | FILES_kdump = "${sbindir}/kdump" | 22 | FILES_kdump = "${sbindir}/kdump" |
22 | FILES_vmcore-dmesg = "${sbindir}/vmcore-dmesg" | 23 | FILES_vmcore-dmesg = "${sbindir}/vmcore-dmesg" |
24 | |||
25 | do_install_append () { | ||
26 | install -d ${D}${sysconfdir}/init.d | ||
27 | install -m 0755 ${WORKDIR}/kdump ${D}${sysconfdir}/init.d/kdump | ||
28 | install -d ${D}${sysconfdir}/sysconfig | ||
29 | install -m 0644 ${WORKDIR}/kdump.conf ${D}${sysconfdir}/sysconfig | ||
30 | } | ||