summaryrefslogtreecommitdiffstats
path: root/meta/classes/externalsrc.bbclass
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2016-03-22 18:01:10 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-28 15:55:50 +0100
commite2b919c1f48ed5eb4816d2fee898fd9fcea6a467 (patch)
tree1f2e95aca5fac62f0e34ace62fd99f1afb6d1168 /meta/classes/externalsrc.bbclass
parentbbfc2100515fc4b972fd012ce22c20863212c0c4 (diff)
downloadpoky-e2b919c1f48ed5eb4816d2fee898fd9fcea6a467.tar.gz
externalsrc: remove nostamp from do_configure
Extend the srctree_hash_files() function in externalsrc.bbclass to handle non-Git source trees. If the source tree is not a git repository, srctree_hash_files() now simply adds the whole source tree as a dependency, causing bitbake to basically hash every file in it. Hidden files and directories in the source tree root are ignored by the glob currently used. This has the advantage of automatically ignoring .git directory, for example. During the first bitbake run preparing of the task runqueue may take much longer if the source tree is not a git repository. The reason is that all the files in the source tree are hashed. Subsequent builds are not significantly slower because (most) file hashes are found from the cache. [YOCTO #8853] (From OE-Core rev: a797abe08bfe4144e120c984d1718c2cc3d87c0a) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/externalsrc.bbclass')
-rw-r--r--meta/classes/externalsrc.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/externalsrc.bbclass b/meta/classes/externalsrc.bbclass
index f98335980f..dff61842f2 100644
--- a/meta/classes/externalsrc.bbclass
+++ b/meta/classes/externalsrc.bbclass
@@ -149,5 +149,5 @@ def srctree_hash_files(d):
149 fobj.write(sha1) 149 fobj.write(sha1)
150 ret = oe_hash_file + ':True' 150 ret = oe_hash_file + ':True'
151 else: 151 else:
152 d.setVarFlag('do_compile', 'nostamp', '1') 152 ret = d.getVar('EXTERNALSRC', True) + '/*:True'
153 return ret 153 return ret