简体   繁体   中英

Command to extract Linux source code in Yocto

I am working on Yocto, and I added meta-intel layer to my bblayers.conf..

I need to make modifications to Linux source code, so I need to look at what all files are present..

Can you please provide the bitbake command to get the location of linux source code.

I tried bitbake -c unpack linux-intel and went to build/tmp/work/ and did not find source code..

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

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

  2. Tradition Kernel Development

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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