简体   繁体   English

在Yocto树中使用预构建的工具链

[英]Using Pre Built Toolchain in Yocto Tree

Is there a way to configure Yocto to use Pre Built toolchain (like downloaded from CodeSourcery, etc.). 有没有一种方法可以将Yocto配置为使用内置工具链(例如从CodeSourcery等下载)。 I want to avoid building toolchain because it takes too much time and using new toolchain is not of my concern. 我想避免构建工具链,因为这会花费太多时间,而使用新工具链也不是我关心的问题。

I was using this feature in buildroot. 我在buildroot中使用了此功能。

Thanks in Advance!!! 提前致谢!!!

Sure, though I'm not using it that often. 可以,尽管我不经常使用它。

For the CodeSourcery-toolchains, have a look at meta-sourcery , which is a layer adding support for the CodeSourcery toolchain. 对于CodeSourcery工具链,请看一下meta-sourcery ,它是添加对CodeSourcery工具链的支持的一层。

Basically, you just need to add this layer to BBLAYERS in your conf/bblayers.conf . 基本上,您只需要在conf/bblayers.conf将此层添加到BBLAYERS中。 Though, make sure that you add it before the meta layer. 不过,请确保将其添加到meta层之前。

Then you should just need to add s listed before the meta layer, as this ensures meta-sourcery gets priority over meta. Set EXTERNAL_TOOLCHAIN = "/path/to/your/sourcery-g++-install" 然后,您只需要添加s listed before the meta layer, as this ensures meta-sourcery gets priority over meta. Set EXTERNAL_TOOLCHAIN = "/path/to/your/sourcery-g++-install" s listed before the meta layer, as this ensures meta-sourcery gets priority over meta. Set EXTERNAL_TOOLCHAIN = "/path/to/your/sourcery-g++-install" to your conf/local.conf . s listed before the meta layer, as this ensures meta-sourcery gets priority over meta. Set EXTERNAL_TOOLCHAIN = "/path/to/your/sourcery-g++-install"conf/local.conf

Be sure to checkout the README.md in meta-sourcery, as there are some extra stuff you might need to be aware of. 请务必在元资源中签出README.md,因为您可能需要注意一些额外的内容。 (Depending on your build machine configuration etc). (取决于您的构建机器配置等)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM