summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJose Quaresma <quaresma.jose@gmail.com>2022-02-16 23:26:54 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-02 18:43:24 +0000
commit153d72a91ddaf60dc88823f6de00c9e954d72f0e (patch)
tree909ce09b846b50dbee25cb68c65dba4eaedf7e3a
parent8ff8e727edfbda2bf4cea2b5c6d56e16c44a5d42 (diff)
downloadpoky-153d72a91ddaf60dc88823f6de00c9e954d72f0e.tar.gz
icecc.bbclass: enable networking in all tasks
The icecc.bbclass needs network access to work properly. Currently I build with icecc inside a container with network isolation and my icecc daemon runs outside of the build container in my host. The only thing I need to do for using the icecc inside my build container is mounting the unix socket /var/run/icecc/iceccd.socket inside the container. I think we need something like this mount functionality to have access to some sockets connections inside the tasks that runs on the new namespace created with unshare system call. This patch is not a the real solution for the problem and is more like an hack so we can use the icecc.bbclass again. (From OE-Core rev: 25ea276a13a6ac2342c2b0945c8fafe878d56095) Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/icecc.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/icecc.bbclass b/meta/classes/icecc.bbclass
index a550b6af24..9b912a3083 100644
--- a/meta/classes/icecc.bbclass
+++ b/meta/classes/icecc.bbclass
@@ -423,18 +423,22 @@ set_icecc_env() {
423 bbnote "Using icecc tarball: $ICECC_VERSION" 423 bbnote "Using icecc tarball: $ICECC_VERSION"
424} 424}
425 425
426do_configure[network] = "1"
426do_configure:prepend() { 427do_configure:prepend() {
427 set_icecc_env 428 set_icecc_env
428} 429}
429 430
431do_compile[network] = "1"
430do_compile:prepend() { 432do_compile:prepend() {
431 set_icecc_env 433 set_icecc_env
432} 434}
433 435
436do_compile_kernelmodules[network] = "1"
434do_compile_kernelmodules:prepend() { 437do_compile_kernelmodules:prepend() {
435 set_icecc_env 438 set_icecc_env
436} 439}
437 440
441do_install[network] = "1"
438do_install:prepend() { 442do_install:prepend() {
439 set_icecc_env 443 set_icecc_env
440} 444}