diff options
Diffstat (limited to 'meta/recipes-kernel/kexec/kexec-tools.inc')
-rw-r--r-- | meta/recipes-kernel/kexec/kexec-tools.inc | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/meta/recipes-kernel/kexec/kexec-tools.inc b/meta/recipes-kernel/kexec/kexec-tools.inc new file mode 100644 index 0000000000..7e3b7adfc7 --- /dev/null +++ b/meta/recipes-kernel/kexec/kexec-tools.inc | |||
@@ -0,0 +1,28 @@ | |||
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 | |||
11 | SRC_URI = "${KERNELORG_MIRROR}/linux/utils/kernel/kexec/kexec-tools-${PV}.tar.gz" | ||
12 | |||
13 | inherit autotools-brokensep | ||
14 | |||
15 | COMPATIBLE_HOST = '(x86_64.*|i.86.*|arm.*|powerpc.*|mips.*)-(linux|freebsd.*)' | ||
16 | |||
17 | INSANE_SKIP_${PN} = "arch" | ||
18 | |||
19 | do_compile_prepend() { | ||
20 | # Remove the '*.d' file to make sure the recompile is OK | ||
21 | for dep in `find ${B} -type f -name '*.d'`; do | ||
22 | dep_no_d="`echo $dep | sed 's#.d$##'`" | ||
23 | # Remove file.d when there is a file.o | ||
24 | if [ -f "$dep_no_d.o" ]; then | ||
25 | rm -f $dep | ||
26 | fi | ||
27 | done | ||
28 | } | ||