[OE-core] [oe-commits] Robert Yang : perf: fix for rebuilding

Martin Jansa martin.jansa at gmail.com
Thu Jun 4 11:33:40 UTC 2015


I think this commit:

commit 9dafa571ed0a40d21a886dec7704c31150b21942
Author: Robert Yang <liezhi.yang at windriver.com>
Date:   Sun Jan 18 22:46:29 2015 -0800

    perf: fix for rebuilding

    Fix for rebuilding error:
    make[3]: *** No rule to make target `/path/to/sysroots/qemuarm64/usr/src/kernel/tools/lib/traceevent//trace-seq.c',
    needed by `.trace-seq.d'.  Stop.
    make[2]: *** [sub-make] Error 2

    Signed-off-by: Robert Yang <liezhi.yang at windriver.com>

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


is causing occasional do_populate_lic failure with:
ERROR: Build of do_populate_lic failed
ERROR: Traceback (most recent call last):
  File "bitbake/lib/bb/build.py", line 497, in exec_task
    return _exec_task(fn, task, d, quieterr)
  File "bitbake/lib/bb/build.py", line 440, in _exec_task
    exec_func(func, localdata)
  File "bitbake/lib/bb/build.py", line 212, in exec_func
    exec_func_python(func, d, runfile, cwd=adir)
  File "bitbake/lib/bb/build.py", line 237, in exec_func_python
    os.chdir(cwd)
OSError: [Errno 2] No such file or directory: 'BUILD/work/qemux86-webos-linux/perf/1.0-r9/perf-1.0'

ERROR: Task 3216 (oe-core/meta/recipes-kernel/perf/perf.bb, do_populate_lic) failed with exit code '1'

perf.bb sets:
B = "${WORKDIR}/${BPN}-${PV}"

and order of do_configure,do_populate_lic isn't given
meta/classes/license.bbclass:addtask populate_lic after do_patch before do_build

So I think we should backport this change to dizzy as well:
oe-core$ git show -1 jansa/dizzy-backports 
commit 40aeb23c427e0c56f7073fc54ea63bf0eabbe092
Author: Robert Yang <liezhi.yang at windriver.com>
Date:   Wed Mar 11 01:35:38 2015 -0700

    license.bbclass: set dirs for do_populate_lic_setscene
    
    Fixed:
    ERROR: Build of do_populate_lic failed
    ERROR: Traceback (most recent call last):
      File "bitbake/lib/bb/build.py", line 497, in exec_task
        return _exec_task(fn, task, d, quieterr)
      File "bitbake/lib/bb/build.py", line 437, in _exec_task
        exec_func(func, localdata)
      File "bitbake/lib/bb/build.py", line 212, in exec_func
        exec_func_python(func, d, runfile, cwd=adir)
      File "/home/nxadm/nx/ala-blade44.1/builds-2015-03-09-163005/qemuppc_world_oe_bp/bitbake/lib/bb/build.py", line 237, in exec_func_python
        os.chdir(cwd)
    OSError: [Errno 2] No such file or directory: 'bitbake_build/tmp/work/ppc7400-wrs-linux/taglib/1.9.1-r0/build'
    
    When running setscene, the cwd is $B which maybe removed by
    autotools.bbclass or cmake.bbclass when rebuild.
    
    Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>

Regards,



More information about the Openembedded-core mailing list