summaryrefslogtreecommitdiffstats
path: root/meta/classes/terminal.bbclass
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2013-07-15 20:10:27 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-07-18 20:23:42 (GMT)
commit3cef1294f22052650675bbce833e275670bb1590 (patch)
tree5e86e8712e040fa53c861d3054d3250a4c14c35a /meta/classes/terminal.bbclass
parent4a6f939b4db2df5b93c9d1388e9d46fe8a7210a3 (diff)
downloadpoky-3cef1294f22052650675bbce833e275670bb1590.tar.gz
terminal.bbclass: Fix BB_RUNFMT processing
BB_RUNFMT can include task and taskfunc, as well as func and pid. Add the two missing items toe the runfmt processing. Also BB_RUNFMT can include arbitrary directory structure. (From OE-Core rev: 95f6e9a3d8fa24acc3bab392719e2d92be25d806) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/terminal.bbclass')
-rw-r--r--meta/classes/terminal.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/terminal.bbclass b/meta/classes/terminal.bbclass
index ae338e9..591b4ac 100644
--- a/meta/classes/terminal.bbclass
+++ b/meta/classes/terminal.bbclass
@@ -18,8 +18,10 @@ def emit_terminal_func(command, envdata, d):
18 envdata.setVarFlag(cmd_func, 'func', 1) 18 envdata.setVarFlag(cmd_func, 'func', 1)
19 19
20 runfmt = d.getVar('BB_RUNFMT', True) or "run.{func}.{pid}" 20 runfmt = d.getVar('BB_RUNFMT', True) or "run.{func}.{pid}"
21 runfile = runfmt.format(func=cmd_func, pid=os.getpid()) 21 runfile = runfmt.format(func=cmd_func, task=cmd_func, taskfunc=cmd_func, pid=os.getpid())
22 runfile = os.path.join(d.getVar('T', True), runfile) 22 runfile = os.path.join(d.getVar('T', True), runfile)
23 bb.mkdirhier(os.path.dirname(runfile))
24
23 with open(runfile, 'w') as script: 25 with open(runfile, 'w') as script:
24 script.write('#!/bin/sh -e\n') 26 script.write('#!/bin/sh -e\n')
25 bb.data.emit_func(cmd_func, script, envdata) 27 bb.data.emit_func(cmd_func, script, envdata)