summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/build.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-03-28 15:09:50 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-03-28 15:09:50 +0100
commit12b163dbd81cafafec1ebe3c4039c65af60ee261 (patch)
treebb4b0aed62393b27c05d2a977b256be67c42be58 /bitbake/lib/bb/build.py
parentafd28598368963dc49bfd02ef2d6f54218d663ae (diff)
downloadpoky-12b163dbd81cafafec1ebe3c4039c65af60ee261.tar.gz
bitbake/gcc: Enable a shared common source tree
This patch is a quick proof of concept to show how source code could be shared between recipes which use ${B} to have a separate build directory compared to source directory ${S}. Issues: a) gcc uses sed and creates config files against ${S} which means the directory should not be shared. Need to change the way that works. b) Could be extended to cover eglibc except there is a patch applied against nativesdk versions which again makes the source incompatible. c) Need to clean up the layout in work-shared and make a directory level deeper to ensure patch separation. d) clean task does not remove stamps 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 83a378febb..19a9ba12f1 100644
--- a/bitbake/lib/bb/build.py
+++ b/bitbake/lib/bb/build.py
@@ -382,10 +382,10 @@ def stamp_internal(taskname, d, file_name):
382 taskflagname = taskname.replace("_setscene", "") 382 taskflagname = taskname.replace("_setscene", "")
383 383
384 if file_name: 384 if file_name:
385 stamp = d.stamp[file_name] 385 stamp = d.stamp_base[file_name].get(taskflagname) or d.stamp[file_name]
386 extrainfo = d.stamp_extrainfo[file_name].get(taskflagname) or "" 386 extrainfo = d.stamp_extrainfo[file_name].get(taskflagname) or ""
387 else: 387 else:
388 stamp = d.getVar('STAMP', True) 388 stamp = d.getVarFlag(taskflagname, 'stamp-base', True) or d.getVar('STAMP', True)
389 file_name = d.getVar('BB_FILENAME', True) 389 file_name = d.getVar('BB_FILENAME', True)
390 extrainfo = d.getVarFlag(taskflagname, 'stamp-extra-info', True) or "" 390 extrainfo = d.getVarFlag(taskflagname, 'stamp-extra-info', True) or ""
391 391