我正在编译从 Linus 的 git 存储库克隆的最新内核以应对挑战。以下是我遵循的步骤,
1.安装交叉编译工具
sudo apt-get install git build-essential kernel-package fakeroot libncurses5-dev
Run Code Online (Sandbox Code Playgroud)
2.克隆最新的git仓库
$ git clone https://github.com/torvalds/linux.git
Run Code Online (Sandbox Code Playgroud)
3. 将当前构建配置复制到源代码树的根目录并更新配置文件。
yes '' | make oldconfig
Run Code Online (Sandbox Code Playgroud)
4. make clean
5. 制作linux镜像和头文件.deb
make -j `getconf _NPROCESSORS_ONLN` deb-pkg LOCALVERSION=-custom
Run Code Online (Sandbox Code Playgroud)
编译几分钟后,显示错误
dpkg-genchanges: warning: package linux-firmware-image-4.2.0-rc3-custom listed in files list but not in control info
dpkg-genchanges: warning: package linux-headers-4.2.0-rc3-custom listed in files list but not in control info
dpkg-genchanges: warning: package linux-headers-4.3.0-rc1-eudyptula listed in files list but not in control info
dpkg-genchanges: warning: package …Run Code Online (Sandbox Code Playgroud)