[yocto] Manipulating code and Building in offline environment

Khem Raj raj.khem at gmail.com
Fri Apr 29 13:45:59 PDT 2016


On Wed, Apr 27, 2016 at 4:38 AM, Lars Larsen <lars at visionweeding.com> wrote:
> Hello
>
> I have 2 questions
>
> I have finally managed to build an image like I want it.
>
>
> I consists of a kernel.
>
> The ROS framework.
>
> And our proprietary software under git control
>
>
> What I want to achieve is the following:
>
> When online it should fetch the latest commit (or what ever branch/tag) from
> our git repo.
>
> It should be possible to take a laptop with a fresh checkout of all the
> software, go to the field where the is NO INTERNET access, and be able to
> patch our code on the spot ,and build fresh images, for the target.
>
> When online in our office environment all our own software is correctly
> checked out from our git repo. and build. Beautifully.....
>
> But when offline ( I disconnect the LAN ) I continually gets errors like
> “Failure expanding variable SRCPV” on our software modules.
>
> I have following in build/conf/local.conf
>
>
> BB_GENERATE_MIRROR_TARBALLS = "1"
>
> INHERIT += "own-mirrors"
>
> SOURCE_MIRROR_URL = "file://${DL_DIR}"
>
>
> and I experimented with BB_FETCH_PREMIRRORONLY = "1"
>
> with no appearent effect
>
>
> So question 1:
>
> How do I achieve the offline building. ?
>
> Is should be possible - right ?

Change your BB_SRCREV_POLICY = "cached" in local.conf
see if that helps.

>
>
> Question 2:
>
> Where in the tree is the checked out source code located, that bitbake
> compiles from.
>
>
>
> Kind regards
>
> Lars Larsen
>
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>



More information about the yocto mailing list