summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2015-03-11 01:35:38 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-03-16 17:41:55 +0000
commit05a69edeb70c3d19d696a2056d50d89a415889cd (patch)
tree140336135173285f82781808f3444ebec087463b
parent8a9ac1de34e6c23dc04fb1464ad2285d43ad3584 (diff)
downloadpoky-05a69edeb70c3d19d696a2056d50d89a415889cd.tar.gz
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. (From OE-Core rev: b3262af11094f93c9588f2e3edc70a5058491e6d) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/license.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass
index 044b3b063a..95e01213c0 100644
--- a/meta/classes/license.bbclass
+++ b/meta/classes/license.bbclass
@@ -438,6 +438,8 @@ do_populate_lic[sstate-outputdirs] = "${LICENSE_DIRECTORY}/"
438 438
439ROOTFS_POSTPROCESS_COMMAND_prepend = "write_package_manifest; license_create_manifest; " 439ROOTFS_POSTPROCESS_COMMAND_prepend = "write_package_manifest; license_create_manifest; "
440 440
441do_populate_lic_setscene[dirs] = "${LICSSTATEDIR}/${PN}"
442do_populate_lic_setscene[cleandirs] = "${LICSSTATEDIR}"
441python do_populate_lic_setscene () { 443python do_populate_lic_setscene () {
442 sstate_setscene(d) 444 sstate_setscene(d)
443} 445}