[yocto] BB_NO_NETWORK question

Brad Litterell brad at evidence.com
Fri Dec 20 01:01:56 PST 2013


I am having trouble getting my build environment to work offline.  I followed the instructions here:
https://wiki.yoctoproject.org/wiki/How_do_I#Q:_How_do_I_create_my_own_source_download_mirror_.3F

I've built my project, created the tarballs, etc.  However, it appears there is still something I'm missing.  I get an error here:

$ bitbake base-files
...
Loaded 57 entries from dependency cache.
NOTE: Error during finalise of /home/brad/etm2/sources/meta-arago/meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt-legacy_1.0.bb
ERROR: ExpansionError during parsing /home/brad/etm2/sources/meta-arago/meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt-legacy_1.0.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 but access requested with command git ls-remote git://arago-project.org/git/projects/test-automation/ltp-ddt.git master (for url None)
ERROR: Command execution failed: Exited with 1

In this case, the SRC_URI looks like this:

SRCREV = "5fba3d42f126ce13333fb7d0412d729b753ee5a4"
BRANCH ?= "master"
SRC_URI = "git://arago-project.org/git/projects/test-automation/ltp-ddt.git;protocol=git;branch=${BRANCH}"

So, I figured apply  the same fix as mentioned on the Wiki:

SRCREV = "5fba3d42f126ce13333fb7d0412d729b753ee5a4"
#BRANCH ?= "master"
#SRC_URI = "git://arago-project.org/git/projects/test-automation/ltp-ddt.git;protocol=git;branch=${BRANCH}"
SRC_URI = "git://arago-project.org/git/projects/test-automation/ltp-ddt.git;protocol=git"

But I get the same error?  And I'm not even using ltp-ddt...

Is there something I'm missing in setting up BB_NO_NETWORK?

Thanks,
Brad

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20131220/6ebe2bd5/attachment.html>


More information about the yocto mailing list