过去几周我一直在尝试构建 Ubuntu 内核。(实际上,我不需要内核,我只需要 snd-aloop.ko,它在 Ubuntu 14 服务器发行版中缺少,它在 12 中,但我找不到仅构建此模块的方法我正在运行的最新发布的 Ubuntu(Ubunty/trusty Linux vagrant-ubuntu-trusty-64 3.13.0-30-generic #55-Ubuntu SMP Fri Jul 4 21:40:53 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux)
我按照官方 Ubuntu 网站上的说明进行操作并收到此错误
Using /home/vagrant/linux-3.13.0 as source for kernel
/home/vagrant/linux-3.13.0 is not clean, please run 'make mrproper'
in the '/home/vagrant/linux-3.13.0' directory.
Run Code Online (Sandbox Code Playgroud)
mrproper 所做的事情之一就是删除“debian”目录!
CLEAN /home/vagrant/linux-3.13.0/debian/
CLEAN .config
Run Code Online (Sandbox Code Playgroud)
如何在没有 debian 目录的情况下构建,因为官方 Ubuntu 文档告诉我使用 debian 目录中的“规则”脚本构建内核
fakeroot debian/rules clean
DEB_BUILD_OPTIONS=parallel=3 AUTOBUILD=1 fakeroot debian/rules binary-generic
Run Code Online (Sandbox Code Playgroud)
请注意,我在构建之前运行了 debian/rules clean,但对于 Mr. Proper 来说还不够干净!我会收到这条消息:
/home/vagrant/linux-3.13.0 is not clean, please run 'make …Run Code Online (Sandbox Code Playgroud)