Skip to contentSkip to conversation

ecj: exclude BB_NUMBER_THREADS from sstate hash

PATCH New Wes Lindauer 1 participant 1 message Mar 4, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ecj: exclude BB_NUMBER_THREADS from sstate hash

From: Wes Lindauer <[email protected]>

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

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

Commit message adapted from a5257d41f32812bc9426183cc8d2b6f07617b0d5.

---
 recipes-core/ecj/libecj-bootstrap.inc | 1 +
 1 file changed, 1 insertion(+)
recipes-core/ecj/libecj-bootstrap.inc +1 -0
index 8f84fd0..2f3cc97 100644
@@ -54,6 +54,7 @@ do_compile() {
 
   fastjar -c -C build . -f ${JAR}
 }
+do_compile[vardepsexclude] += "BB_NUMBER_THREADS"
 
 do_install() {
   oe_jarinstall ${JAR} ecj-bootstrap.jar
Signature · 1 line
2.21.3