diff options
| author | Jose Quaresma <quaresma.jose@gmail.com> | 2023-02-17 09:58:55 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-02-24 17:05:24 +0000 |
| commit | cfe5e501998d93bed3e4d89c76732558b89e1acb (patch) | |
| tree | 6720ddaa8f9584feee4b2a898c36db7f3c29aeaf /meta/classes/icecc.bbclass | |
| parent | 7159f198b0722fc90af675e671642aa5e38dfb4d (diff) | |
| download | poky-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/classes/icecc.bbclass')
| -rw-r--r-- | meta/classes/icecc.bbclass | 10 |
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 | ||
| 431 | do_configure[network] = "1" | ||
| 432 | do_configure:prepend() { | 431 | do_configure:prepend() { |
| 433 | set_icecc_env | 432 | set_icecc_env |
| 434 | } | 433 | } |
| 435 | 434 | ||
| 436 | do_compile[network] = "1" | ||
| 437 | do_compile:prepend() { | 435 | do_compile:prepend() { |
| 438 | set_icecc_env | 436 | set_icecc_env |
| 439 | } | 437 | } |
| 440 | 438 | ||
| 441 | do_compile_kernelmodules[network] = "1" | ||
| 442 | do_compile_kernelmodules:prepend() { | 439 | do_compile_kernelmodules:prepend() { |
| 443 | set_icecc_env | 440 | set_icecc_env |
| 444 | } | 441 | } |
| 445 | 442 | ||
| 446 | do_install[network] = "1" | ||
| 447 | do_install:prepend() { | 443 | do_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 |
| 459 | TOOLCHAIN_HOST_TASK:append = " ${ICECC_SDK_HOST_TASK}" | 455 | TOOLCHAIN_HOST_TASK:append = " ${ICECC_SDK_HOST_TASK}" |
| 456 | |||
| 457 | python () { | ||
| 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 | } | ||
