简体   繁体   English

在本地构建一个bitbake组件

[英]Building a bitbake component locally

I am writing a component that goes into the yocto build, but during development I don't want to build the entire image. 我正在编写一个用于yocto构建的组件,但是在开发过程中,我不想构建整个映像。 I want to checkout my component(in its own GIT repo), build it using the cross-compiler used for building the entire tree, and test that before checking in(devtest) and building the entire filesystem for system test. 我想检出我的组件(在其自己的GIT存储库中),使用用于构建整个树的交叉编译器进行构建,并在检入(devtest)和构建整个文件系统以进行系统测试之前进行测试。 I have not found a way to do that. 我还没有找到一种方法。

If I understand your question correctly, what you want to do is to build the SDK? 如果我正确理解了您的问题,那么您想要做的是构建SDK?

Run

bitbake - c populate_sdk <image-name>

that'll give you a nice SDK in a tarball. 这将在压缩包中为您提供一个不错的SDK。 Then you execute that tarball to install it on you desired location. 然后执行该tarball,将其安装在所需的位置。

In the shell where you're developing your application, you source the environment-.... file in the installed location. 在用于开发应用程序的外壳程序中,在安装位置中获取environment-....文件。 Now everything is configured to crosscompile, as long as you're using eg CC instead of directly calling gcc. 现在,只要您使用的是CC而不是直接调用gcc,所有内容都将配置为交叉编译。

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

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