简体   繁体   English

在Yocto中提取Linux源代码的命令

[英]Command to extract Linux source code in Yocto

I am working on Yocto, and I added meta-intel layer to my bblayers.conf.. 我正在研究Yocto,并在我的bblayers.conf中添加了meta-intel层。

I need to make modifications to Linux source code, so I need to look at what all files are present.. 我需要对Linux源代码进行修改,所以我需要查看所有存在的文件。

Can you please provide the bitbake command to get the location of linux source code. 您能否提供bitbake命令来获取linux源代码的位置。

I tried bitbake -c unpack linux-intel and went to build/tmp/work/ and did not find source code.. 我尝试了bitbake -c unpack linux-intel然后去了build / tmp / work /,却没有找到源代码。

Certain components which are used as source for multiple recipes are extracted into a shared place as a build optimization and linux kernel is one of such components so you can run 用作多个配方来源的某些组件作为构建优化被提取到一个共享的位置,而Linux内核就是此类组件之一,因此您可以运行

bitbake -cshared_workdir virtual/kernel

then the sources will be in 然后源将在

 <TMPDIR>/work-shared/<MACHINE>/kernel-source

If you then want to modify sources then there are couple of ways to do kernel development 如果您随后要修改源代码,则有几种方法可以进行内核开发

  1. Devtool Devtool

  2. Tradition Kernel Development 传统内核开发

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

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