Well, actually I used the find command in that wiki page to find the recipe that uses tag name to chose github revision and it found only one recipe

>meta-openembedded/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc_1.5.1.bb

I masked this recipe in the local.conf file and bitbake failed at parsing other recipes, looking at those recipes I saw that they don't use tag names but they use

>SRCREV = "${AUTOREV}"

which is logical since bitbake has to issue ls-remote to know what is the latest revision on the remote git repo (maybe the wiki page needs update to point this ?)

Now I can't remove this AUTOREV in these recipes since I need bitbake to fetch the latest updates ( I push updates regularly on that repo and I don't want to update the recipe file each time to add the latest revision)

So, here comes the hard part, Is it possible to tell bitbake to issue ls-remote if there is network and to use the latest fetched revision in the sources directory if the network is disabled ? that way I can use ${AUTOREV} in my recipes and bitbake will build from the local repo in the sources directory unless there is network to update the local repo, probably there is no such thing :) .

Thanks


On 07/26/2018 09:26 AM, Paul Eggleton wrote:
Hi Mohammad,

If it's failing during parsing that means you still have a recipe that does
not have a proper SRCREV set, which you need to fix as described by the page
that Alex linked. The error will be reporting which recipe that is.

Cheers,
Paul

On Thursday, 26 July 2018 5:44:26 AM CEST MOHAMMAD RASIM wrote:
I tried that and bitbake still fails when disabling the network


On 07/21/2018 11:42 AM, Alexander Kanavin wrote:
This page has a tip on what might be causing 'git ls-remote':

https://wiki.yoctoproject.org/wiki/
How_do_I#Q:_How_do_I_create_my_own_source_download_mirror_.3F
Alex

2018-07-21 10:32 GMT+02:00 MOHAMMAD RASIM <mohammad.rasi...@gmail.com>:
Hi, is there a way I can run a bitbake build offline? I have all the
required sources of the target in the sources directory, and I have built
the target multiple times with internet connection, but when I build
offline
it fails because it needs internet access during parsing recipes.
Can I tell bitbake to skip running `git ls-remote` during parsing recipes
so
I can build offline?

Thanks
--
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto



--
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to