summaryrefslogtreecommitdiffstats
path: root/package/gcc
diff options
context:
space:
mode:
authorArnout Vandecappelle <arnout@mind.be>2015-10-04 17:06:01 +0100
committerPeter Korsgaard <peter@korsgaard.com>2015-10-04 18:22:21 +0200
commitfe3395258c29e1290ead64548c05f34b1ea710ce (patch)
tree7c87531f20253274eb33f78675d52a06a9140d18 /package/gcc
parent1e97b2787331c5f4452d8c9a76961a89ec355d9d (diff)
downloadbuildroot-fe3395258c29e1290ead64548c05f34b1ea710ce.tar.gz
buildroot-fe3395258c29e1290ead64548c05f34b1ea710ce.zip
gcc: remove the --with-pkgversion option from the ccache hash
One of the gcc configure options that we hash for ccache is --with-pkgversion which is set to something like Buildroot 2015.11-git-00426-ge7e7e4f - i.e., it will change with every buildroot commit. That's obviously not wanted, so substitute this away. Also add a \n to the printf so the output is a bit more readable. [Peter: update documentation to match] Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/gcc')
-rw-r--r--package/gcc/gcc.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/package/gcc/gcc.mk b/package/gcc/gcc.mk
index 420c4e9b7c..ead3e150c6 100644
--- a/package/gcc/gcc.mk
+++ b/package/gcc/gcc.mk
@@ -256,10 +256,12 @@ HOST_GCC_COMMON_CCACHE_HASH_FILES += package/gcc/$(GCC_VERSION)/1000-powerpc-lin
endif
endif
-# _CONF_OPTS contains some references to the absolute path of $(HOST_DIR),
+# _CONF_OPTS contains some references to the absolute path of $(HOST_DIR)
+# and a reference to the Buildroot git revision (BR2_VERSION_FULL),
# so substitute those away.
HOST_GCC_COMMON_TOOLCHAIN_WRAPPER_ARGS += -DBR_CCACHE_HASH=\"`\
- printf '%s' $(subst $(HOST_DIR),@HOST_DIR@,$($(PKG)_CONF_OPTS)) \
+ printf '%s\n' $(subst $(HOST_DIR),@HOST_DIR@,\
+ $(subst --with-pkgversion="Buildroot $(BR2_VERSION_FULL)",,$($(PKG)_CONF_OPTS))) \
| sha256sum - $(HOST_GCC_COMMON_CCACHE_HASH_FILES) \
| cut -c -64 | tr -d '\n'`\"
endif # BR2_CCACHE
OpenPOWER on IntegriCloud