[oe-commits] Richard Purdie : lib/oe/sstatesig.py: Exclude common machine specific dependencies from task signatures

git at git.openembedded.org git at git.openembedded.org
Wed Jan 25 14:41:04 UTC 2012


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

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Tue Jan 24 17:11:14 2012 +0000

lib/oe/sstatesig.py: Exclude common machine specific dependencies from task signatures

Where we have machine specific recipes with well defined behaviour, it makes
no sense to rebuild recipes with these as dependencies whenever the machine
changes. This patch lists those well behaved recipes and excludes them from
the task signatures so we can change MACHINE without invalidating existing
PACKAGE_ARCH binaries.

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/lib/oe/sstatesig.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py
index 247f592..ee7cbad 100644
--- a/meta/lib/oe/sstatesig.py
+++ b/meta/lib/oe/sstatesig.py
@@ -26,6 +26,10 @@ def sstate_rundepfilter(fn, recipename, task, dep, depname):
     if isNative(depname) or isCross(depname) or isNativeSDK(depname):
         return False
 
+    # Exclude well defined machine specific configurations which don't change ABI
+    if depname in ['sysvinit-inittab', 'shadow-securetty', 'opkg-config-base', 'netbase', 'formfactor', 'xserver-xf86-config', 'pointercal', 'base-files']:
+        return False
+
     # Default to keep dependencies
     return True
 





More information about the Openembedded-commits mailing list