netdata: Enable network during do_compile only when go support is enabled

Makes the hammer a bit smaller, since we do not enable go by default
in packageconfig's it helps with yocto check layer with default config.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2025-05-13 19:37:20 -07:00
parent 4b2789b90b
commit 09d3af94b0
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -50,7 +50,7 @@ CFLAGS += "${@bb.utils.contains('PACKAGECONFIG', 'go', \
INSANE_SKIP:${PN} = "${@bb.utils.contains('PACKAGECONFIG', 'go', 'already-stripped buildpaths', '', d)}"
# network is required by go to get dependent packages
do_compile[network] = "1"
do_compile[network] = "${@bb.utils.contains('PACKAGECONFIG', 'go', '1', '0', d)}"
#systemd
SYSTEMD_PACKAGES = "${PN}"