diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-01-27 11:20:50 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-01-27 11:20:58 +0000 |
| commit | c34913ea5a4f20ce4bca3c68a65e9f64f1e3910c (patch) | |
| tree | 1512c47ce59ad1269847ee5dcec019a21868fd8e | |
| parent | e8e9f56057f3732d2550375a23573ab7231eac22 (diff) | |
| download | poky-c34913ea5a4f20ce4bca3c68a65e9f64f1e3910c.tar.gz | |
bitbake/build.py: When looking up extra stamp info for setscene tasks, use the real taskname
(Fixed based on a bug reported by Dongxiao Xu <dongxiao.xu@intel.com>)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | bitbake/lib/bb/build.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py index e723c7ea85..42d1726daa 100644 --- a/bitbake/lib/bb/build.py +++ b/bitbake/lib/bb/build.py | |||
| @@ -384,13 +384,17 @@ def stamp_internal(taskname, d, file_name): | |||
| 384 | In the bitbake core, d can be a CacheData and file_name will be set. | 384 | In the bitbake core, d can be a CacheData and file_name will be set. |
| 385 | When called in task context, d will be a data store, file_name will not be set | 385 | When called in task context, d will be a data store, file_name will not be set |
| 386 | """ | 386 | """ |
| 387 | taskflagname = taskname | ||
| 388 | if taskname.endswith("_setscene") and taskname != "do_setscene": | ||
| 389 | taskflagname = taskname.replace("_setscene", "") | ||
| 390 | |||
| 387 | if file_name: | 391 | if file_name: |
| 388 | stamp = d.stamp[file_name] | 392 | stamp = d.stamp[file_name] |
| 389 | extrainfo = d.stamp_extrainfo[file_name].get(taskname) or "" | 393 | extrainfo = d.stamp_extrainfo[file_name].get(taskflagname) or "" |
| 390 | else: | 394 | else: |
| 391 | stamp = d.getVar('STAMP', True) | 395 | stamp = d.getVar('STAMP', True) |
| 392 | file_name = d.getVar('BB_FILENAME', True) | 396 | file_name = d.getVar('BB_FILENAME', True) |
| 393 | extrainfo = d.getVarFlag(taskname, 'stamp-extra-info', True) or "" | 397 | extrainfo = d.getVarFlag(taskflagname, 'stamp-extra-info', True) or "" |
| 394 | 398 | ||
| 395 | if not stamp: | 399 | if not stamp: |
| 396 | return | 400 | return |
