summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/build.py
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2011-06-28 17:05:19 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-28 13:44:38 +0100
commit671e580111c3f37f3c7835956db17e0425f9f937 (patch)
tree042cdc41190ccbe14e5be5e616bb57d375283f23 /bitbake/lib/bb/build.py
parenta1f79a7896b6411669b3ccada6204d2695e80fc5 (diff)
downloadpoky-671e580111c3f37f3c7835956db17e0425f9f937.tar.gz
bitbake: Add task specific stamp file support
This patch, based on proof of concept code from Richard adds code to bitbake to allow individual tasks to optionally specify their stamp file using the stamp-base flag. This takes the same form as the STAMP variable but can be specified on a per task basis. Code is also added to runqueue to ensure that if two tasks share the same stamp file, only one will be executed at once. A significant usecase for this code is to share source code (${S}) between recipes where separate build directories (${B}) are used. (Bitbake rev: 41bef02bef8379590ba012319aebe05068a8081e) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/build.py')
-rw-r--r--bitbake/lib/bb/build.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py
index f69464c60b..5c703095b7 100644
--- a/bitbake/lib/bb/build.py
+++ b/bitbake/lib/bb/build.py
@@ -383,10 +383,10 @@ def stamp_internal(taskname, d, file_name):
383 taskflagname = taskname.replace("_setscene", "") 383 taskflagname = taskname.replace("_setscene", "")
384 384
385 if file_name: 385 if file_name:
386 stamp = d.stamp[file_name] 386 stamp = d.stamp_base[file_name].get(taskflagname) or d.stamp[file_name]
387 extrainfo = d.stamp_extrainfo[file_name].get(taskflagname) or "" 387 extrainfo = d.stamp_extrainfo[file_name].get(taskflagname) or ""
388 else: 388 else:
389 stamp = d.getVar('STAMP', True) 389 stamp = d.getVarFlag(taskflagname, 'stamp-base', True) or d.getVar('STAMP', True)
390 file_name = d.getVar('BB_FILENAME', True) 390 file_name = d.getVar('BB_FILENAME', True)
391 extrainfo = d.getVarFlag(taskflagname, 'stamp-extra-info', True) or "" 391 extrainfo = d.getVarFlag(taskflagname, 'stamp-extra-info', True) or ""
392 392