Skip to contentSkip to conversation

Add whitelist of WINDRES and RC to hash

PATCH New Mark Hatle 1 participant 2 messages Nov 8, 2014

lore
Share & tools
lore

Mark Hatle

author
#0 lore raw

PATCH 1/1 Add whitelist of WINDRES and RC to hash

Add the two specific exported values to the hash, otherwise task hashes change and things rebuild unnecessarily. (perl-native may also fail to rebuild.)

Mark Hatle (1):
*-mingw32.conf: Add whitelist of WINDRES and RC to hash

 conf/machine-sdk/i686-mingw32.conf   | 2 ++
 conf/machine-sdk/x86_64-mingw32.conf | 4 +++-
 2 files changed, 5 insertions(+), 1 deletion(-)
Signature · 1 line
2.0.1
author
#1 lore raw

PATCH 1/1 *-mingw32.conf: Add whitelist of WINDRES and RC to hash

WINDRES and RC values are exported when building for a mingw32 target. These values, due to being exported, end up in the signature hash for everything in the system. By adding these to the whitelist we prevent contamination and allow the system to properly reuse existing -native and other sstate-cache.

---
 conf/machine-sdk/i686-mingw32.conf   | 2 ++
 conf/machine-sdk/x86_64-mingw32.conf | 4 +++-
 2 files changed, 5 insertions(+), 1 deletion(-)
conf/machine-sdk/i686-mingw32.conf +2 -0
index eec3ced..0bdedaa 100644
@@ -27,3 +27,5 @@ MACHINEOVERRIDES .= ":sdkmingw32"
 
 export WINDRES = "${HOST_PREFIX}windres --include-dir=${STAGING_INCDIR}"
 export RC = "${WINDRES}"
+
+BB_HASHBASE_WHITELIST_append = " WINDRES RC"
conf/machine-sdk/x86_64-mingw32.conf +3 -1
index be9a8c4..5e80dfa 100644
@@ -26,4 +26,6 @@ SDKPKGSUFFIX = "nativesdk-mingw32"
 MACHINEOVERRIDES .= ":sdkmingw32"
 
 export WINDRES = "${HOST_PREFIX}windres --include-dir=${STAGING_INCDIR}"
-export RC = "${WINDRES}"
\ No newline at end of file
+export RC = "${WINDRES}"
+
+BB_HASHBASE_WHITELIST_append = " WINDRES RC"
Signature · 1 line
2.0.1