diff options
-rw-r--r-- | meta/classes/terminal.bbclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/terminal.bbclass b/meta/classes/terminal.bbclass index ae338e9f57..591b4acf6d 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) |