md.jamal
md.jamal

Reputation: 4517

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..

Upvotes: 1

Views: 1914

Answers (1)

Khem
Khem

Reputation: 1257

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

Upvotes: 2

Related Questions