[OE-core] [PATCH 4/4] perf: fix for rebuilding

Robert Yang liezhi.yang at windriver.com
Tue Jan 20 23:45:26 UTC 2015



On 01/21/2015 01:00 AM, Burton, Ross wrote:
>
> On 20 January 2015 at 16:01, Bruce Ashfield <bruce.ashfield at gmail.com
> <mailto:bruce.ashfield at gmail.com>> wrote:
>
>     The kernel source is no longer in this location .. so at a minimum the header
>     needs to be updated to log the work-shared directory .. and better, make sure
>     that this is still happening with the latest master changes.
>
>
> As I understand it the bug is stale .d files being used to add dependencies,
> which refer to stale paths instead of being re-generated.  This is why we
> encourage S!=B with deletion of B when starting builds.

Updated in the repo:

   git://git.openembedded.org/openembedded-core-contrib rbt/4fixes


diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index bd57c6c..6925eb2 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -115,6 +115,10 @@ do_install() {
  }

  do_configure_prepend () {
+    # Fix for rebuilding
+    rm -rf ${B}/
+    mkdir ${B}/
+
      #kernels before 3.1 do not support WERROR env variable
      sed -i 's,-Werror ,,' ${S}/tools/perf/Makefile
      if [ -e "${S}/tools/perf/config/Makefile" ]; then

// Robert

>
> Ross



More information about the Openembedded-core mailing list