[oe-commits] [openembedded-core] 01/01: sstate: Add extra directory level

git at git.openembedded.org git at git.openembedded.org
Fri Jan 3 22:45:05 UTC 2020


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 8edcd7f8394a6300bd671b54635dc58164bbebb5
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Fri Jan 3 18:03:35 2020 +0000

    sstate: Add extra directory level
    
    We're having speed issues on the autobuilder due to the numbers of files in sstate
    directories. We previously split these by the first two characters of the hash.
    This change extends this to split by the next two characters as well.
    
    The hope is this signifiantly speeds up eSDK builds on the autobuilder in partcular
    as the current sstate layout simply isn't scaling there.
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/sstate.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index c0329cd..c05f708 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -6,7 +6,7 @@ SSTATE_MANFILEPREFIX = "${SSTATE_MANIFESTS}/manifest-${SSTATE_MANMACH}-${PN}"
 def generate_sstatefn(spec, hash, d):
     if not hash:
         hash = "INVALID"
-    return hash[:2] + "/" + spec + hash
+    return hash[:2] + "/" + hash[2:4] + "/" + spec + hash
 
 SSTATE_PKGARCH    = "${PACKAGE_ARCH}"
 SSTATE_PKGSPEC    = "sstate:${PN}:${PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}:${PV}:${PR}:${SSTATE_PKGARCH}:${SSTATE_VERSION}:"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list