Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "Kexec fast reboot tools" |
| 2 | DESCRIPTION = "Kexec is a fast reboot feature that lets you reboot to a new Linux kernel" |
| 3 | AUTHOR = "Eric Biederman" |
| 4 | HOMEPAGE = "http://kernel.org/pub/linux/utils/kernel/kexec/" |
| 5 | SECTION = "kernel/userland" |
| 6 | LICENSE = "GPLv2" |
| 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=ea5bed2f60d357618ca161ad539f7c0a \ |
| 8 | file://kexec/kexec.c;beginline=1;endline=20;md5=af10f6ae4a8715965e648aa687ad3e09" |
| 9 | DEPENDS = "zlib xz" |
| 10 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 11 | SRC_URI = "${KERNELORG_MIRROR}/linux/utils/kernel/kexec/kexec-tools-${PV}.tar.gz \ |
| 12 | file://kdump \ |
| 13 | file://kdump.conf \ |
| 14 | " |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 15 | |
| 16 | PR = "r1" |
| 17 | |
| 18 | inherit autotools |
| 19 | |
| 20 | COMPATIBLE_HOST = '(x86_64.*|i.86.*|arm.*|aarch64.*|powerpc.*|mips.*)-(linux|freebsd.*)' |
| 21 | |
| 22 | INSANE_SKIP_${PN} = "arch" |
| 23 | |
| 24 | do_compile_prepend() { |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame^] | 25 | # Remove the prepackaged config.h from the source tree as it overrides |
| 26 | # the same file generated by configure and placed in the build tree |
| 27 | rm -f ${S}/include/config.h |
| 28 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 29 | # Remove the '*.d' file to make sure the recompile is OK |
| 30 | for dep in `find ${B} -type f -name '*.d'`; do |
| 31 | dep_no_d="`echo $dep | sed 's#.d$##'`" |
| 32 | # Remove file.d when there is a file.o |
| 33 | if [ -f "$dep_no_d.o" ]; then |
| 34 | rm -f $dep |
| 35 | fi |
| 36 | done |
| 37 | } |