blob: 7797a257381329ef9ee3d9e706451dc630d38849 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "Kexec fast reboot tools"
2DESCRIPTION = "Kexec is a fast reboot feature that lets you reboot to a new Linux kernel"
3AUTHOR = "Eric Biederman"
4HOMEPAGE = "http://kernel.org/pub/linux/utils/kernel/kexec/"
5SECTION = "kernel/userland"
6LICENSE = "GPLv2"
7LIC_FILES_CHKSUM = "file://COPYING;md5=ea5bed2f60d357618ca161ad539f7c0a \
8 file://kexec/kexec.c;beginline=1;endline=20;md5=af10f6ae4a8715965e648aa687ad3e09"
9DEPENDS = "zlib xz"
10
11SRC_URI = "${KERNELORG_MIRROR}/linux/utils/kernel/kexec/kexec-tools-${PV}.tar.gz"
12
13PR = "r1"
14
15inherit autotools
16
17COMPATIBLE_HOST = '(x86_64.*|i.86.*|arm.*|aarch64.*|powerpc.*|mips.*)-(linux|freebsd.*)'
18
19INSANE_SKIP_${PN} = "arch"
20
21do_compile_prepend() {
22 # Remove the '*.d' file to make sure the recompile is OK
23 for dep in `find ${B} -type f -name '*.d'`; do
24 dep_no_d="`echo $dep | sed 's#.d$##'`"
25 # Remove file.d when there is a file.o
26 if [ -f "$dep_no_d.o" ]; then
27 rm -f $dep
28 fi
29 done
30}