[bitbake-devel] [RFC PATCH] Allow remote sstate cache fetches when BB_NO_NETWORK set

Joe MacDonald joe.macdonald at windriver.com
Fri Jun 28 15:05:05 UTC 2013


My objective here is to support a very specific scenario.  I have a well-fed
sstate cache on my internal network.  I want to use it for accelerating builds
across a variety of machines where NFS is not really an option.  I don't want
bitbake to ever attempt to fetch sources for packages, though, so I'm always
using BB_NO_NETWORK.

The proposal I have is adding a new local.conf variable that will allow cache
fetches only to be exempt from BB_NO_NETWORK restrictions.  If it is set and
BB_NO_NETWORK is not set, there's no change in behaviour.  If it is not set and
BB_NO_NETWORK is set, again, no change in today's behaviour.  If both are set,
however, then any of the regular fetch2 fetchers will get an "okay" from
check_network_access() if they're invoked by a sstate cache fetch attempt.  Any
other fetch attempt will still hit raise a NetworkAccess exception.

-- 
-Joe MacDonald.
:wq




More information about the bitbake-devel mailing list