diff options
-rw-r--r-- | meta/recipes-kernel/kexec/kexec-tools.inc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/meta/recipes-kernel/kexec/kexec-tools.inc b/meta/recipes-kernel/kexec/kexec-tools.inc index 50b448caed..7e3b7adfc7 100644 --- a/meta/recipes-kernel/kexec/kexec-tools.inc +++ b/meta/recipes-kernel/kexec/kexec-tools.inc | |||
@@ -15,3 +15,14 @@ inherit autotools-brokensep | |||
15 | COMPATIBLE_HOST = '(x86_64.*|i.86.*|arm.*|powerpc.*|mips.*)-(linux|freebsd.*)' | 15 | COMPATIBLE_HOST = '(x86_64.*|i.86.*|arm.*|powerpc.*|mips.*)-(linux|freebsd.*)' |
16 | 16 | ||
17 | INSANE_SKIP_${PN} = "arch" | 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 | } | ||