]> code.ossystems Code Review - openembedded-core.git/commitdiff
bitbake.conf: Assign SRCPV so that it will be tracked correcting in the sstate checksum
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 14 Sep 2012 08:41:59 +0000 (09:41 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 14 Sep 2012 08:49:56 +0000 (09:49 +0100)
Currently, SRCPV is just listed as having a value of ${@bb.fetch2.get_srcrev(d)}
which isn't helpful. This can mean that if PV changes, two recipes can have the
same sstate checksum despite having different PV values since the PV value itself
isn't tracked anywhere.

Adding this line means that the real PV value is expanded and recorded in the sstate
checksum, meaning the sstate packages no longer overlap. This is critical in ensuring
consistent builds for revipes using SRCPV.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/conf/bitbake.conf

index 1d4a83dc8deed3c041f25925bd0668c7c6218f79..9c51630e0bd4097426f4d96ea3121d337827d41e 100644 (file)
@@ -588,6 +588,7 @@ SRCDATE = "${DATE}"
 SRCREV ??= "INVALID"
 AUTOREV = "${@bb.fetch2.get_autorev(d)}"
 SRCPV = "${@bb.fetch2.get_srcrev(d)}"
+SRCPV[vardepvalue] = "${SRCPV}"
 
 SRC_URI = ""