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

Command to extract Linux source code in Yocto

我正在研究 Yocto,我在我的 bblayers.conf..

中添加了 meta-intel 层

我需要对 Linux 源代码进行修改,因此我需要查看所有文件的内容..

能否请您提供 bitbake 命令以获取 linux 源代码的位置。

我试过 bitbake -c unpack linux-intel 并转到 build/tmp/work/ 但没有找到源代码..

某些用作多个配方源的组件被提取到共享位置作为构建优化,linux 内核是此类组件之一,因此您可以 运行

bitbake -cshared_workdir virtual/kernel

那么来源将在

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

如果你想修改源代码 有几种方法可以进行内核开发

  1. Devtool

  2. Tradition Kernel Development