summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorJose Quaresma <quaresma.jose@gmail.com>2023-02-17 09:58:55 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-02-24 17:05:24 +0000
commitcfe5e501998d93bed3e4d89c76732558b89e1acb (patch)
tree6720ddaa8f9584feee4b2a898c36db7f3c29aeaf /meta
parent7159f198b0722fc90af675e671642aa5e38dfb4d (diff)
downloadpoky-cfe5e501998d93bed3e4d89c76732558b89e1acb.tar.gz
icecc: enable the network only when ICECC_DISABLED is not set
Enabling the network uncondictional is not need for some use cases. Such use case is usefull to reuse the sstate-cache of the build and it requires the icecc inherit in all of the builds. The real control control of the icecc is in the variable ICECC_DISABLED so this patch change the logic to enable the network when the icecc is in use. (From OE-Core rev: 0fd3a9c13a30a67ccef6619627efd9613755a0c3) Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/icecc.bbclass10
1 files changed, 6 insertions, 4 deletions
diff --git a/meta/classes/icecc.bbclass b/meta/classes/icecc.bbclass
index 312e0f17b5..159cae20f8 100644
--- a/meta/classes/icecc.bbclass
+++ b/meta/classes/icecc.bbclass
@@ -428,22 +428,18 @@ set_icecc_env() {
428 bbnote "Using icecc tarball: $ICECC_VERSION" 428 bbnote "Using icecc tarball: $ICECC_VERSION"
429} 429}
430 430
431do_configure[network] = "1"
432do_configure:prepend() { 431do_configure:prepend() {
433 set_icecc_env 432 set_icecc_env
434} 433}
435 434
436do_compile[network] = "1"
437do_compile:prepend() { 435do_compile:prepend() {
438 set_icecc_env 436 set_icecc_env
439} 437}
440 438
441do_compile_kernelmodules[network] = "1"
442do_compile_kernelmodules:prepend() { 439do_compile_kernelmodules:prepend() {
443 set_icecc_env 440 set_icecc_env
444} 441}
445 442
446do_install[network] = "1"
447do_install:prepend() { 443do_install:prepend() {
448 set_icecc_env 444 set_icecc_env
449} 445}
@@ -457,3 +453,9 @@ ICECC_SDK_HOST_TASK:pn-uninative-tarball = ""
457 453
458# Add the toolchain scripts to the SDK 454# Add the toolchain scripts to the SDK
459TOOLCHAIN_HOST_TASK:append = " ${ICECC_SDK_HOST_TASK}" 455TOOLCHAIN_HOST_TASK:append = " ${ICECC_SDK_HOST_TASK}"
456
457python () {
458 if d.getVar('ICECC_DISABLED') != "1":
459 for task in ['do_configure', 'do_compile', 'do_compile_kernelmodules', 'do_install']:
460 d.setVarFlag(task, 'network', '1')
461}