i delete all my build, download and sstate and rebuild from scratch. the build was long but successful. i then removed the build_xwayland directory (and kept the downloads and sstate path in the site.conf). i added this flags to the
BB_NO_NETWORK = "1"
BB_FETCH_PREMIRRORONLY = "1"
i removed the internet cable to simulate my offline computer. when running the bitbake fsl-image-qt6 it fails in the parsing
WARNING: /workdir/var-fslc-yocto/sources/meta-nxp-connectivity/meta-nxp-matter-baseline/recipes-matter/matter/matter.bb: Exception during build_dependencies for fetcher_hashes_dummyfunc | ETA: 0:00:04
WARNING: /workdir/var-fslc-yocto/sources/meta-nxp-connectivity/meta-nxp-matter-baseline/recipes-matter/matter/matter.bb: Error during finalise of /workdir/var-fslc-yocto/sources/meta-nxp-connectivity/meta-nxp-matter-baseline/recipes-matter/matter/matter.bb
ERROR: ExpansionError during parsing /workdir/var-fslc-yocto/sources/meta-nxp-connectivity/meta-nxp-matter-baseline/recipes-matter/matter/matter.bb
Traceback (most recent call last):
File "/workdir/var-fslc-yocto/sources/poky/bitbake/lib/bb/fetch2/__init__.py", line 1248, in srcrev_internal_helper(ud=<bb.fetch2.FetchData object at 0x78232b81e3d0>, d=<bb.data_smart.DataSmart object at 0x78233207c820>, name='default'):
d.setVar("__BBAUTOREV_ACTED_UPON", True)
> srcrev = ud.method.latest_revision(ud, d, name)
File "/workdir/var-fslc-yocto/sources/poky/bitbake/lib/bb/fetch2/__init__.py", line 1670, in GitSM.latest_revision(ud=<bb.fetch2.FetchData object at 0x78232b81e3d0>, d=<bb.data_smart.DataSmart object at 0x78233207c820>, name='default'):
except KeyError:
> revs[key] = rev = self._latest_revision(ud, d, name)
return rev
File "/workdir/var-fslc-yocto/sources/poky/bitbake/lib/bb/fetch2/git.py", line 850, in GitSM._latest_revision(ud=<bb.fetch2.FetchData object at 0x78232b81e3d0>, d=<bb.data_smart.DataSmart object at 0x78233207c820>, name='default'):
> output = self._lsremote(ud, d, "")
# Tags of the form ^{} may not work, need to fallback to other form
File "/workdir/var-fslc-yocto/sources/poky/bitbake/lib/bb/fetch2/git.py", line 832, in GitSM._lsremote(ud=<bb.fetch2.FetchData object at 0x78232b81e3d0>, d=<bb.data_smart.DataSmart object at 0x78233207c820>, search=''):
if ud.proto.lower() != 'file':
> bb.fetch2.check_network_access(d, cmd, repourl)
output = runfetchcmd(cmd, d, True)
File "/workdir/var-fslc-yocto/sources/poky/bitbake/lib/bb/fetch2/__init__.py", line 970, in check_network_access(d=<bb.data_smart.DataSmart object at 0x78233207c820>, info='git -c gc.autoDetach=false -c core.pager=cat -c safe.bareRepository=all ls-remote https://github.com/NXP/matter.git ', url='https://github.com/NXP/matter.git'):
if bb.utils.to_boolean(d.getVar("BB_NO_NETWORK")):
> raise NetworkAccess(url, info)
elif not trusted_network(d, url):
bb.data_smart.ExpansionError: Failure expanding variable fetcher_hashes_dummyfunc[vardepvalue], expression was ${@bb.fetch.get_hashvalue(d)} 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 gc.autoDetach=false -c core.pager=cat -c safe.bareRepository=all ls-remote https://github.com/NXP/matter.git (for url https://github.com/NXP/matter.git)
The variable dependency chain for the failure is: fetcher_hashes_dummyfunc[vardepvalue]
ERROR: Parsing halted due to errors, see error messages above
Summary: There were 2 WARNING messages.
Summary: There were 2 ERROR messages, returning a non-zero exit code.
to fix it i need to connect to the internet and then run bitbake fsl-image-qt6 --runall=fetch and then offline build works. the problem that in the offline machine i will not be able to do the runall=fetch.
might you know what my error is and why i am not able to build offline
thanks