[oe-commits] Richard Purdie : bitbake.conf: Assign SRCPV so that it will be tracked correcting in the sstate checksum

git at git.openembedded.org git at git.openembedded.org
Fri Sep 14 08:57:09 UTC 2012


Module: openembedded-core.git
Branch: master
Commit: a9fffadec4fb60547257cb3d7496b6e39ed07be8
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=a9fffadec4fb60547257cb3d7496b6e39ed07be8

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Fri Sep 14 09:41:59 2012 +0100

bitbake.conf: Assign SRCPV so that it will be tracked correcting in the sstate checksum

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 at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/conf/bitbake.conf |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 1d4a83d..9c51630 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -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 = ""
 





More information about the Openembedded-commits mailing list