mirror of
https://git.yoctoproject.org/poky
synced 2026-04-05 08:02:25 +02:00
trace-cmd: 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. (From OE-Core rev: d56657cf5def88682954a97b4d94603ad81fd6e5) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
4ca81d6af9
commit
f71208fdec
@@ -30,6 +30,11 @@ EXTRA_OEMAKE = "\
|
||||
|
||||
FILES_${PN}-dbg += "${libdir}/trace-cmd/plugins/.debug"
|
||||
|
||||
do_compile_prepend() {
|
||||
# Make sure the recompile is OK
|
||||
rm -f ${B}/.*.d
|
||||
}
|
||||
|
||||
do_install() {
|
||||
oe_runmake DESTDIR="${D}" install
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user