Patchwork [CONSOLIDATED,PULL,11/36] csl-versions.inc: capture version in signatures

login
register
mail settings
Submitter Saul Wold
Date May 3, 2012, 1:55 a.m.
Message ID <431bc1c6df4ce6578184c7aaaedcf0a5066ac11d.1336008687.git.sgw@linux.intel.com>
Download mbox | patch
Permalink /patch/26893/
State New
Headers show

Comments

Saul Wold - May 3, 2012, 1:55 a.m.
From: Christopher Larson <kergoth@gmail.com>

We want to ensure that changing external toolchain version will change the
metadata checksums of target recipes. This will do so via ensuring that any
variable which references TOOLCHAIN_OPTIONS also pulls in the toolchain
version variables.

Signed-off-by: Christopher Larson <kergoth@gmail.com>
---
 meta/conf/distro/include/csl-versions.inc |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

Patch

diff --git a/meta/conf/distro/include/csl-versions.inc b/meta/conf/distro/include/csl-versions.inc
index 6b8b2c5..ec7a6ba 100644
--- a/meta/conf/distro/include/csl-versions.inc
+++ b/meta/conf/distro/include/csl-versions.inc
@@ -103,3 +103,7 @@  python csl_version_handler () {
     d.setVar('CSL_VER_GDB', csl_get_gdb_version(ld))
 }
 addhandler csl_version_handler
+
+# Ensure that any variable which includes the --sysroot (CC, CXX, etc) also
+# depends on the toolchain version
+TOOLCHAIN_OPTIONS[vardeps] += "CSL_VER_MAIN CSL_VER_GCC"