mirror of
https://git.yoctoproject.org/git/poky
synced 2026-01-04 16:10:04 +00:00
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>
This commit is contained in:
parent
7159f198b0
commit
cfe5e50199
|
|
@ -428,22 +428,18 @@ set_icecc_env() {
|
|||
bbnote "Using icecc tarball: $ICECC_VERSION"
|
||||
}
|
||||
|
||||
do_configure[network] = "1"
|
||||
do_configure:prepend() {
|
||||
set_icecc_env
|
||||
}
|
||||
|
||||
do_compile[network] = "1"
|
||||
do_compile:prepend() {
|
||||
set_icecc_env
|
||||
}
|
||||
|
||||
do_compile_kernelmodules[network] = "1"
|
||||
do_compile_kernelmodules:prepend() {
|
||||
set_icecc_env
|
||||
}
|
||||
|
||||
do_install[network] = "1"
|
||||
do_install:prepend() {
|
||||
set_icecc_env
|
||||
}
|
||||
|
|
@ -457,3 +453,9 @@ ICECC_SDK_HOST_TASK:pn-uninative-tarball = ""
|
|||
|
||||
# Add the toolchain scripts to the SDK
|
||||
TOOLCHAIN_HOST_TASK:append = " ${ICECC_SDK_HOST_TASK}"
|
||||
|
||||
python () {
|
||||
if d.getVar('ICECC_DISABLED') != "1":
|
||||
for task in ['do_configure', 'do_compile', 'do_compile_kernelmodules', 'do_install']:
|
||||
d.setVarFlag(task, 'network', '1')
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user