]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
classes/yocto-check-layer: add check for tasks that allow network access
authorRoss Burton <ross.burton@arm.com>
Thu, 1 May 2025 14:02:34 +0000 (15:02 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 5 May 2025 16:22:09 +0000 (17:22 +0100)
commite95b3bd194e294412bc0419c9c74abfc2f37406f
treeaa17b13b621bcaff7d8aaa10901048afdea40b76
parent36658a113811de98249bc1e1b79cfadd405e5391
classes/yocto-check-layer: add check for tasks that allow network access

Add a new test that checks that no tasks between do_fetch (exclusive)
and do_build (inclusive) are allowed to use the network, with rare
exceptions.

The only exception currently is build-appliance-image's do_image task,
as that currently usese pip to install the required Toaster dependencies.

Note that this will mean layers that have Go-based recipes will fail
unless they're using the gomod fetcher and have a complete list of
modules in the SRC_URI.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-global/yocto-check-layer.bbclass