Patchwork autotools: Exclude variables from autotools_copy_aclocals

login
register
mail settings
Submitter Richard Purdie
Date March 18, 2014, 1:31 p.m.
Message ID <1395149516.3808.84.camel@ted>
Download mbox | patch
Permalink /patch/68827/
State Accepted
Commit 08303af44afb1d90068620f36cd3c7f4ee7d5f7c
Headers show

Comments

Richard Purdie - March 18, 2014, 1:31 p.m.
The autotools aclocal copy function should not depend on various variables, these
are accounted for in other parts of the system. Therefore exclude them.

This was causing differences in sstate checksums between different systems and meaning
the sstate cache wasn't being reused as much as it should.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---

Patch

diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass
index 15fcfc6..f8c9b1e 100644
--- a/meta/classes/autotools.bbclass
+++ b/meta/classes/autotools.bbclass
@@ -175,7 +175,7 @@  python autotools_copy_aclocals () {
         if not os.path.exists(t):
             os.symlink(c, t)
 }
-autotools_copy_aclocals[vardepsexclude] += "MACHINE"
+autotools_copy_aclocals[vardepsexclude] += "MACHINE SDK_ARCH BUILD_ARCH BB_TASKDEPDATA"
 
 autotools_do_configure() {
 	# WARNING: gross hack follows: