Skip to contentSkip to conversation

bitbake.conf: Account for older versions of bitbake

PATCH New Joshua Watt 1 participant 1 message May 1, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bitbake.conf: Account for older versions of bitbake

Older versions of bitbake (prior to 1.42) don't expose the BB_UNIHASH variable which is being used by sstate. For compatibility with these older versions of bitbake, set BB_UNIHASH to BB_TASKHASH (which is the value it should be for non-hash equivalent aware signature generators). if bitbake hasn't already set it.

[YOCTO #13314]

---
 meta/conf/bitbake.conf | 6 ++++++
 1 file changed, 6 insertions(+)
meta/conf/bitbake.conf +6 -0
index d35a6f64d97..14b0764f222 100644
@@ -901,3 +901,9 @@ BB_SIGNATURE_EXCLUDE_FLAGS ?= "doc deps depends \
 
 MLPREFIX ??= ""
 MULTILIB_VARIANTS ??= ""
+
+# Older versions of bitbake (< 1.42) don't set BB_UNIHASH. For compatibility with these
+# versions, set BB_UNIHASH equivalent to BB_TASKHASH if unspecified, which is
+# what it would be anyway if the signature generator (e.g. OEEquivHash) doesn't
+# support unihashes.
+BB_UNIHASH ?= "${BB_TASKHASH}"
Signature · 1 line
2.20.1