[oe-commits] [openembedded-core] 01/03: sstate: Add extra directory level
git at git.openembedded.org
git at git.openembedded.org
Sat Jan 4 22:26:25 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 850812b71ce62760ba2bed57572c2fbc3b73bd05
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