[bitbake-devel] [PATCH v3] fetch2: Add BB_ALLOWED_NETWORKS support

Liam R. Howlett Liam.Howlett at windriver.com
Thu Apr 16 17:06:12 UTC 2015


This patch adds support for a new local.conf variable called
BB_ALLOWED_NETWORKS.  BB_ALLOWED_NETWORKS holds a list of hostnames that the
user trusts as a source for downloading content.  If network access is enabled
and the user has configured trusted hosts, then any hosts that are not in the
list will cause an error to occur at fetch.  Any mirrors and pre-mirrors that
are not in the list will result in warnings that these locations will not be
used.

The BB_NO_NETWORK variable still stops all network access.

Please see the comments in the patch for more details and example usage.

Liam R. Howlett (1):
  fetch2: Add BB_ALLOWED_NETWORKS support

 lib/bb/fetch2/__init__.py | 53 +++++++++++++++++++++++++++++++++++++++++++++++
 lib/bb/tests/fetch.py     | 37 +++++++++++++++++++++++++++++++++
 2 files changed, 90 insertions(+)

-- 
2.1.1




More information about the bitbake-devel mailing list