Yocto/bitbake/OpenEmbedded:构建/conf/local.conf 内容的最佳位置? [英] Yocto/bitbake/OpenEmbedded: Best place for build/conf/local.conf's content?

查看:22
本文介绍了Yocto/bitbake/OpenEmbedded:构建/conf/local.conf 内容的最佳位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在试用 yocto(2.0,jethro)并且我想从 core-image-minimal 开始构建一个图像.这工作正常.

I'm trying out yocto (2.0, jethro) and I want to build an image starting from core-image-minimal. This works fine.

那里的每个网站都提到使用我的(一些)自定义修改文件 build/config/local.conf.例如,目标机器(通过MACHINE)或一些全局设置(通过EXTRA_IMAGE_FEATURES).

Every website out there mention modifying the file build/config/local.conf with (some of) my customization. For example, the target machine (through MACHINE) or some global settings (through EXTRA_IMAGE_FEATURES).

我还需要修改一些特定的包,而这样做的方法是创建一个自定义层.到目前为止一切顺利.

I also need to modify some specific packages and the way to do it is to create a custom layer. So far so good.

我不明白的是如何将我的所有配置保存"到版本控制中.我希望我更改的所有内容都位于我可以提交的文件中,以便其他任何人都可以重现完全相同的构建(甚至为该项目做出贡献).将几乎所有内容都放在 build/config/local.conf 中违背了这个目标;该文件位于build"目录下,所以我不能只克隆一个 git repo 并开始构建...

What I don't understand is how to "save" all my configuration to version control. I want everything I change to be locate in files that I can commit so that anybody else can reproduce the exact same build (or even contribute to that project). Putting almost everything in build/config/local.conf goes against that goal; the file is under a "build" directory and so I can't just clone a git repo and start the building...

这真的是 yocto 项目的运作方式吗?或者我是否缺少需要放置这些设置的其他配置文件?我虽然可以将所有这些放在自定义图层中,但它似乎不起作用...

Is it really the way the yocto project works? Or am I missing a different configuration file where I need to put these settings? I though I could place all these in a custom layer but it does not seem to work...

有什么想法或建议吗?

谢谢!

推荐答案

一般来说,local.conf 中作为您的项目"的所有内容都应该移动到您自己的发行版配置(机器、图像功能、包列表).如果您愿意,可以将 DL_DIR 之类的内容移动到公共 site.conf 中.最终你应该得到一个 local.conf,它只设置 DISTRO 和其他一些个人变量.

In general everything in your local.conf that is "your project" should be moved to your own distro configuration (MACHINE, image features, package lists). Stuff like where DL_DIR is can be moved to a common site.conf if you wish. Eventually you should end up with a local.conf which just sets DISTRO and some other personal variables.

这篇关于Yocto/bitbake/OpenEmbedded:构建/conf/local.conf 内容的最佳位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆