[yocto] Regarding build Yocto offline

Gunnar Andersson gandersson at genivi.org
Mon Jul 16 01:55:12 PDT 2018


On Fri, 2018-07-13 at 08:58 +0000, S, Karthikeyan wrote:
> Greetings,
>              Initially I was able to built with github access, but our
> requirement is to build offline(without Internet), I followed the steps
> given in https://wiki.yoctoproject.org/wiki/How_do_I#Q:_How_do_I_create_my
> _own_source_download_mirror_.3F
> I added following lines in conf/local.conf (Git enabled machine)
> SOURCE_MIRROR_URL ?= "file:///source_mirror/sources/"
> INHERIT += "own-mirrors"
>  BB_GENERATE_MIRROR_TARBALLS = "1"
> and copied download directory to network disabled system and added
> following in conf/local.conf(network disabled system).
> SOURCE_MIRROR_URL ?= "file:///source_mirror/sources/"
>  INHERIT += "own-mirrors" 
>  BB_GENERATE_MIRROR_TARBALLS = "1" 
>  BB_NO_NETWORK = "1"
> It was throwing error, saying that "Network is disabled through
> BB_NO_NETWORK=1" and build was failed. Please share me the exact procedure
> to build yocto offline.

I used to run into this also.  Please check, and reply to list, if you are
using a tag in any of the recipes, and if changing to SRCREV=<hash> in all
recipes solves the problem.  

Here is a reference to an earlier discussion - I think it is commonly 
recurring question.  (Maybe you can propose a change to the docs, to
indicate this near the description of the BB_NO_NETWORK variable?)

https://lists.yoctoproject.org/pipermail/yocto/2012-September/009586.html

Hope this helps,
- Gunnar

-- 
Gunnar Andersson <gandersson at genivi.org>
Development Lead
GENIVI Alliance




More information about the yocto mailing list