]> code.ossystems Code Review - openembedded-core.git/commit
perf: fix compile error when rebuilding
authorChangqing Li <changqing.li@windriver.com>
Wed, 1 Apr 2020 02:32:55 +0000 (10:32 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 1 Apr 2020 23:51:45 +0000 (00:51 +0100)
commit57b4745cca8d486c1f20b8f01f4a25cb59c4b968
tree5b866f744689e7403201e592a84f99054e8020c7
parent03e498cd7e35902202579d404f4aad5c92664f18
perf: fix compile error when rebuilding

Fix error like:
Makefile.perf:597: recipe for target
'intel_x86_64-wrs-linux/perf/1.0-r9/perf-1.0/perf-in.o] Error 2
Makefile.perf:220: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
Makefile:69: recipe for target 'all' failed
make: *** [all] Error 2

during rebuilding, when kernel version changed, some
source files also maybe changed. It could happened
that the source under ${S} messed up with some already
dropped files and also new files. Fix by clean the ${S}
before copy source files.

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-kernel/perf/perf.bb