mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 17:39:31 +00:00
lib/oe/sstatesig: Ensure packagegroups don't continually rebuild
packagegroups are allarch and shouldn't change depending on the target or machine selected. In general they should have good stable namespaces for their dependencies. As such we can exclude them from rebuilding when dependency checksums change. (From OE-Core rev: 80b065ff46322ec0cad039dfd9eb2d010168dba6) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -11,6 +11,9 @@ def sstate_rundepfilter(siggen, fn, recipename, task, dep, depname, dataCache):
|
||||
def isKernel(fn):
|
||||
inherits = " ".join(dataCache.inherits[fn])
|
||||
return inherits.find("module-base.bbclass") != -1 or inherits.find("linux-kernel-base.bbclass") != -1
|
||||
def isPackageGroup(fn):
|
||||
inherits = " ".join(dataCache.inherits[fn])
|
||||
return "packagegroup.bbclass" in inherits
|
||||
|
||||
# Always include our own inter-task dependencies
|
||||
if recipename == depname:
|
||||
@@ -27,6 +30,10 @@ def sstate_rundepfilter(siggen, fn, recipename, task, dep, depname, dataCache):
|
||||
|
||||
# Only target packages beyond here
|
||||
|
||||
# packagegroups are assumed to have well behaved names which don't change between architecures/tunes
|
||||
if isPackageGroup(fn):
|
||||
return False
|
||||
|
||||
# Drop native/cross/nativesdk dependencies from target recipes
|
||||
if isNative(depname) or isCross(depname) or isNativeSDK(depname):
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user