Hi Jose,
On 14/12/2017 13:48, Diaz de Grenu, Jose wrote:
> I am trying to compile Yocto images using the SWUpdate layer, without internet connection. This is explained in the Yocto mega manual section 5.18.1 (
http://www.yoctoproject.org/docs/2.2/mega-manual/mega-manual.html#setting-up-effective-mirrors).
>
> Unfortunately, I get the following ERROR when configuring swupdate:
>
> WARNING: /home/jdepedro/dey-2.2/sources/meta-swupdate/recipes-support/swupdate/
swupdate_git.bb: Exception during build_dependencies for do_configure | ETA: --:--:--
> WARNING: /home/jdepedro/dey-2.2/sources/meta-swupdate/recipes-support/swupdate/
swupdate_git.bb: Error during finalise of /home/jdepedro/dey-2.2/sources/meta-swupdate/recipes-support/swupdate/
swupdate_git.bb
> ERROR: ExpansionError during parsing /home/jdepedro/dey-2.2/sources/meta-swupdate/recipes-support/swupdate/
swupdate_git.bb
> Traceback (most recent call last):
> bb.data_smart.ExpansionError: Failure expanding variable do_configure, expression was cp /home/jdepedro/workspaces-yocto/2.2/ccimx6sbc/tmp/work/cortexa9hf-neon-dey-linux-gnueabi/swupdate/git-r0/defconfig /home/jdepedro/workspaces-yocto/2.2/ccimx6sbc/tmp/work/cortexa9hf-neon-dey-linux-gnueabi/swupdate/git-r0/git//.config
> //merge_config.sh -m .config ${@" ".join(find_cfgs(d))}
> cml1_do_configure
> 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/sbabic/swupdate.git (for url None)
>
It does not seem this is related to SWUpdate - are you sure that you see
this just with SWUpdate and not with other packages ? Are you sure you
run the whole build with own-mirrors set ?
Try the following:
- drop your tmp
- set in your local.conf
SOURCE_MIRROR_URL ?= "file:///home/you/your-download-dir/"
INHERIT += "own-mirrors"
BB_GENERATE_MIRROR_TARBALLS = "1"
as explained in manual
- build swupdate-image:
bitbake swupdate-image
- set BB_NO_NETWORK = "1" in your local.conf
- drop your tmp again
- bitbake swupdate-image
This runs without errors here.
> I don't quite understand why network access would be required to configure the project, but this avoids working offline with Yocto projects that use SWUpdate.
>
> Could this be fixed?
>
No error, no fix.
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone:
+49-8142-66989-53 Fax:
+49-8142-66989-80 Email:
sba...@denx.de
=====================================================================