diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2014-08-06 20:05:22 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-11 10:46:58 +0100 |
commit | 46b697b5861041dc3f67723efae301163b623f22 (patch) | |
tree | 89c0f0e3e141715bf04f79d3b62c2483d6420c11 /meta/recipes-kernel/trace-cmd | |
parent | 674e14555e6912453a96747ff017f49ac9350a52 (diff) | |
download | openembedded-core-46b697b5861041dc3f67723efae301163b623f22.tar.gz openembedded-core-46b697b5861041dc3f67723efae301163b623f22.tar.bz2 openembedded-core-46b697b5861041dc3f67723efae301163b623f22.zip |
kernelshark: fix recompile error
Fixed:
make: *** No rule to make target `/path/to/sysroot/4.9.0/include/stddef.h', needed by `parse-events.o'. Stop.
make: *** Waiting for unfinished jobs....
ERROR: oe_runmake failed
This happens when upgrade gcc from 4.9.0 to 4.9.1, and the
.parse-events.d isn't regenerated when recompile, the content of it are:
[snip]
parse-events.o: /path/to/sysroot/4.9.0/include/stddef.h
[snip]
And Makefile includes the .parse-events.d file if it exists, so there
would be errors when /path/to/sysroot/4.9.0/include/stddef.h doesn't
exist.
Remove .*.d (a few .d files, its Makefile uses this wildcard) will fix
the problem.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-kernel/trace-cmd')
-rw-r--r-- | meta/recipes-kernel/trace-cmd/kernelshark_1.2.bb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-kernel/trace-cmd/kernelshark_1.2.bb b/meta/recipes-kernel/trace-cmd/kernelshark_1.2.bb index 9af91c9599..99de97bcc7 100644 --- a/meta/recipes-kernel/trace-cmd/kernelshark_1.2.bb +++ b/meta/recipes-kernel/trace-cmd/kernelshark_1.2.bb @@ -13,6 +13,11 @@ SRC_URI_append = "file://kernelshark-fix-syntax-error-of-shell.patch" EXTRA_OEMAKE = "'CC=${CC}' 'AR=${AR}' 'prefix=${prefix}' gui" +do_compile_prepend() { + # Make sure the recompile is OK + rm -f ${B}/.*.d +} + do_install() { oe_runmake CC="${CC}" AR="${AR}" prefix="${prefix}" DESTDIR="${D}" install_gui rm ${D}${bindir}/trace-cmd |