summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-17 14:19:22 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-18 16:23:59 +0100
commit61ed74a72524b7f18fe7e48d5ae7f1f6b5756919 (patch)
treee4620b7dead16ce88749a38594d7c9ea53e078cd /meta/classes
parent96ece9ad1ae027b577098142dfdb2c7ccf1e14c9 (diff)
downloadpoky-61ed74a72524b7f18fe7e48d5ae7f1f6b5756919.tar.gz
utility-tasks: Set T to alternate location during do_clean
There is a race where do_clean tries to clean WORKDIR but there are logfiles written into ${T} by bitbake and this can lead to exceptions due to open files. The easiest solution is to redirect T to a different location for the do_clean task, hence avoiding the errors and also allowing the logfiles to be visible somewhere. ${LOG_DIR} seems an appropriate place for this. [YOCTO #2846] (From OE-Core rev: eef9d6c2d52f5264a6e7a9d882f8323f9793fd7f) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/utility-tasks.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/utility-tasks.bbclass b/meta/classes/utility-tasks.bbclass
index d150ec57ba..bb26eb7e7e 100644
--- a/meta/classes/utility-tasks.bbclass
+++ b/meta/classes/utility-tasks.bbclass
@@ -12,6 +12,7 @@ python do_listtasks() {
12 12
13CLEANFUNCS ?= "" 13CLEANFUNCS ?= ""
14 14
15T_task-clean = "${LOG_DIR}/cleanlogs/${PN}"
15addtask clean 16addtask clean
16do_clean[nostamp] = "1" 17do_clean[nostamp] = "1"
17python do_clean() { 18python do_clean() {