[meta-java] openjdk-8-cross.inc: exclude BB_NUMBER_THREADS from sstate hash

Submitted by Michael Ho on Jan. 29, 2021, 9:19 a.m. | Patch ID: 179308

Details

Message ID 1611911961-96454-1-git-send-email-michael.ho@bmw.de
State New
Delegated to: Richard Leitner
Headers show

Commit Message

Michael Ho Jan. 29, 2021, 9:19 a.m.
From: Michael Ho <Michael.Ho@bmw.de>

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.

Signed-off-by: Michael Ho <Michael.Ho@bmw.de>
---
 recipes-core/openjdk/openjdk-8-cross.inc | 2 ++
 1 file changed, 2 insertions(+)

Patch hide | download patch | download mbox

diff --git a/recipes-core/openjdk/openjdk-8-cross.inc b/recipes-core/openjdk/openjdk-8-cross.inc
index 9f68d08..25d971f 100644
--- a/recipes-core/openjdk/openjdk-8-cross.inc
+++ b/recipes-core/openjdk/openjdk-8-cross.inc
@@ -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"