如何在 yocto 中将下载文件夹存储在我们的私人仓库中

How to store downloads folder on our private repo in yocto

成功 "bitbake core-image-sato" 构建后,我将下载文件夹移动到我的私人存储库,然后删除下载文件夹并从我的私人存储库中获取它。

我在 local.conf 中添加了 BB_NO_NETWORK = "1",当我尝试 "bitbake core-image-sato" 时失败了。

NOTE: Executing RunQueue Tasks
ERROR: gnu-config-native-20150728+gitAUTOINC+b576fa87c1-r0 do_fetch: Network access disabled through BB_NO_NETWORK (or set indirectly due to use of BB_FETCH_PREMIRRORONLY) but access requested with command LANG=C git -c core.fsyncobjectfiles=0 fetch -f --prune --progress git://git.savannah.gnu.org/config.git refs/*:refs/* (for url git://git.savannah.gnu.org/config.git)
ERROR: gnu-config-native-20150728+gitAUTOINC+b576fa87c1-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/jamal/test/new_repot/build/tmp/work/x86_64-linux/gnu-config-native/20150728+gitAUTOINC+b576fa87c1-r0/temp/log.do_fetch.29816
ERROR: Task (virtual:native:/home/jamal/test/new_repot/sources/poky/meta/recipes-devtools/gnu-config/gnu-config_git.bb:do_fetch) failed with exit code '1'

它正在尝试再次从网络获取源代码,但由于网络访问被禁用,它失败了。

你们能帮我解决这个问题吗?感谢您的时间和耐心。

local.conf 中缺少 BB_GENERATE_MIRROR_TARBALLS = "1" 的问题。由于性能原因,来自 git 个存储库的 Tarball 不会自动创建,请参阅 manual。设置该变量可以创建 tarball,因此以后可以使用它们并且 git 不需要联系服务器。

(请查看问题的评论以获取更多信息,我们在那里讨论了解决方案。感谢@md.jamal 进行了测试。)