mirror of
https://git.yoctoproject.org/poky
synced 2026-09-16 09:49:35 +02:00
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>
This commit is contained in:
@@ -384,13 +384,17 @@ def stamp_internal(taskname, d, file_name):
|
|||||||
In the bitbake core, d can be a CacheData and file_name will be set.
|
In the bitbake core, d can be a CacheData and file_name will be set.
|
||||||
When called in task context, d will be a data store, file_name will not be set
|
When called in task context, d will be a data store, file_name will not be set
|
||||||
"""
|
"""
|
||||||
|
taskflagname = taskname
|
||||||
|
if taskname.endswith("_setscene") and taskname != "do_setscene":
|
||||||
|
taskflagname = taskname.replace("_setscene", "")
|
||||||
|
|
||||||
if file_name:
|
if file_name:
|
||||||
stamp = d.stamp[file_name]
|
stamp = d.stamp[file_name]
|
||||||
extrainfo = d.stamp_extrainfo[file_name].get(taskname) or ""
|
extrainfo = d.stamp_extrainfo[file_name].get(taskflagname) or ""
|
||||||
else:
|
else:
|
||||||
stamp = d.getVar('STAMP', True)
|
stamp = d.getVar('STAMP', True)
|
||||||
file_name = d.getVar('BB_FILENAME', True)
|
file_name = d.getVar('BB_FILENAME', True)
|
||||||
extrainfo = d.getVarFlag(taskname, 'stamp-extra-info', True) or ""
|
extrainfo = d.getVarFlag(taskflagname, 'stamp-extra-info', True) or ""
|
||||||
|
|
||||||
if not stamp:
|
if not stamp:
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user