Skip to contentSkip to conversation

openjdk-8-cross.inc: exclude BB_NUMBER_THREADS from sstate hash

PATCH In review Michael Ho 2 participants 2 messages Jan 29, 2021 – Feb 5, 2021

lore
Share & tools
lore

Michael Ho

author
#0 lore raw

PATCH 1/1 openjdk-8-cross.inc: exclude BB_NUMBER_THREADS from sstate hash

From: Michael Ho <[email protected]>

The sstate-cache for openjre is not shareable across multiple machines because the parallelisation configuration of Bitbake is being embedded into the sstate hash of openjre.

Exclude BB_NUMBER_THREADS from the do_install sstate hashing to avoid this issue.

---
 recipes-core/openjdk/openjdk-8-cross.inc | 2 ++
 1 file changed, 2 insertions(+)
recipes-core/openjdk/openjdk-8-cross.inc +2 -0
index 9f68d08..25d971f 100644
@@ -99,6 +99,8 @@ do_install_append() {
     fi
 }
 
+do_install[vardepsexclude] += "BB_NUMBER_THREADS"
+
 export MAKE_VERBOSE = "y"
 export MFLAGS="${@jdk_make_options(d)} MAKE_VERBOSE=y QUIETLY= VERBOSE=-s LOG_LEVEL=trace STRIP_POLICY=no_strip"
 
Signature · 1 line
2.7.4
#1 lore raw

Hi Michael,
thanks for you patch!

I will review/test it in the comming days and give feedback!

regards;rl

Quoted 34 lines · Michael Ho

From: Michael Ho <[email protected]>

The sstate-cache for openjre is not shareable across multiple machines because the parallelisation configuration of Bitbake is being embedded into the sstate hash of openjre.

Exclude BB_NUMBER_THREADS from the do_install sstate hashing to avoid this issue.

---
 recipes-core/openjdk/openjdk-8-cross.inc | 2 ++
 1 file changed, 2 insertions(+)
recipes-core/openjdk/openjdk-8-cross.inc +2 -0
index 9f68d08..25d971f 100644
@@ -99,6 +99,8 @@ do_install_append() {
     fi
 }
 
+do_install[vardepsexclude] += "BB_NUMBER_THREADS"
+
 export MAKE_VERBOSE = "y"
 export MFLAGS="${@jdk_make_options(d)} MAKE_VERBOSE=y QUIETLY= VERBOSE=-s LOG_LEVEL=trace STRIP_POLICY=no_strip"
 
Signature · 1 line
2.7.4
Signature · 10 lines
Richard Leitner
Hardware R&D / Senior Embedded Linux Engineer

SKIDATA
We change the world of welcoming people

SKIDATA GmbH
Untersbergstraße 40 | 5083 Grödig/Salzburg | Austria
[t] +43-6246-888-4245 | [m] +43-664-88616370
[e] [email protected] | [w] www.skidata.com