[poky] BB_NO_NETWORK - _git.bb recipies

Rami Rosenbaum rami at modularity.co.il
Tue Nov 22 12:23:14 PST 2016


Hi,
I'm trying to create my own source download mirror to my Yocto build.
It's an Atmel-based board, I'm using the meta-atmel layer.
I've made changes in the *at91bootstrap*, *u-boot-at91* and *linux-at91*
(I'm holding these versions on my SVN).
So I added a custom meta-xxx layer, with duplicates of these recipes,
pointing to my repo.
BBFILE_PRIORITY of meta-xxx is higher than meta-atmel !!!

To my problem:
After running a successful build, I moved all tarballs to my
SOURCE_MIRROR_URL.
I added the *BB_NO_NETWORK* flag and ran the build.
I got the following error:
[yocto at yocto: build] > bitbake core-image-minimal
NOTE: Error during finalise of
*./meta-atmel/recipes-bsp/at91bootstrap/at91bootstrap_git.bb
<http://at91bootstrap_git.bb>*                              | ETA:  00:01:54
ERROR: ExpansionError during parsing ./meta-atmel/recipes-bsp/at91bootstrap/
at91bootstrap_git.bb: Failure expanding variable S: ExpansionError: Failure
expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which
triggered exception NetworkAccess: Network access disabled through
BB_NO_NETWORK (or set indirectly due to use of BB_FETCH_PREMIRRORONLY) but
access requested with command git -c core.fsyncobjectfiles=0 ls-remote
git://github.com/linux4sam/at91bootstrap.git  (for url None)
Even though *my at91bootstrap*has higher priority, the atmel recipe (the _
git.bb version) was run, and needed network.
Here's *meta-atmel/recipes-bsp/at91bootstrap/at91bootstrap_git.bb
<http://at91bootstrap_git.bb>*:
require at91bootstrap.inc
DEFAULT_PREFERENCE = "-1"
SRCREV = "${AUTOREV}"
SRC_URI = "git://github.com/linux4sam/at91bootstrap.git;protocol=git \
          "
S = "${WORKDIR}/git"
PV = "3.7+git${SRCPV}"
LIC_FILES_CHKSUM =
"file://main.c;endline=27;md5=a2a70db58191379e2550cbed95449fbd"

If I remove the _git.bb recipes (*u-boot-at91* and *linux-at91* are the
same) - the *BB_NO_NETWORK* build works.

Is this a configuration problem of mine?
Is my conf/local.conf missing anything?
Is the meta-atmel recipe problematic?

I prefer not to touch the meta-atmel layer (though deleting those recipes
is so tempting).

I'm quite new to Yokto/poky, be nice :-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/poky/attachments/20161122/4e50117e/attachment.html>


More information about the poky mailing list