]> code.ossystems Code Review - openembedded-core.git/commitdiff
bitbake.conf: Account for older versions of bitbake
authorJoshua Watt <jpewhacker@gmail.com>
Wed, 1 May 2019 20:35:23 +0000 (15:35 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 2 May 2019 08:56:14 +0000 (09:56 +0100)
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]

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/conf/bitbake.conf

index d35a6f64d9702555fc9154ed275361202bd4c1f9..14b0764f222782578809225a1357a1e6cde0b338 100644 (file)
@@ -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}"