]> code.ossystems Code Review - openembedded-core.git/commitdiff
externalsrc: remove nostamp from do_configure
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 22 Mar 2016 16:01:10 +0000 (18:01 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 28 Mar 2016 14:54:52 +0000 (15:54 +0100)
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]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/externalsrc.bbclass

index f98335980f3dccd68002f0f8e6bb6554ce5d5dcf..dff61842f2a1b2fb32e76fea4ba92b01e0177477 100644 (file)
@@ -149,5 +149,5 @@ def srctree_hash_files(d):
             fobj.write(sha1)
         ret = oe_hash_file + ':True'
     else:
-        d.setVarFlag('do_compile', 'nostamp', '1')
+        ret = d.getVar('EXTERNALSRC', True) + '/*:True'
     return ret