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

时间:2019-01-09 05:07:27

标签: linux embedded-linux yocto

在成功构建“ bitbake core-image-sato”之后,我将downloads文件夹移到了我的私有存储库,然后删除了downloads文件夹,并从我的私有存储库中获取了该文件。

我在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'

由于无法访问网络,它试图再次从网络获取源代码。

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

1 个答案:

答案 0 :(得分:0)

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

(请参阅问题注释以获取更多信息,我们在此处讨论了解决方案。感谢@ md.jamal对其进行测试。)

相关问题